[Lazarus] DefaultTranslator, LCLGetLanguageIDs and Portuguese language trouble...

Marcelo B de Paula marcbp at terra.com.br
Sat Jan 29 18:33:04 CET 2011


Please, revert this submit. This will not work.
By renaming the files you disrupted the IDE translations.

Before taking any actions, we must decide the best thing to do.

Renaming the files, as you did, will frustrate our collegues from Portugal, 
since their locale will not find the correct
files and they will end up with the english version.

Did you read my previous post ?

Option 01: Rename the files to "*.pt.po" instead of  "pt_BR.po"
                  Change IDETranslations.pas ( Portuguese ) "pb -> pt"

Option 02: Make a statement on Lazarus wiki to permit language variations.
                  Brazilizan Portuguese files will be renamed to ".pt_BR.po"
                  Portugal Portuguese should provide their own translations 
files (".pt_PT" or whatever.)
                  Change IDETranslations to identify Portuguese Brazilian, 
Portuguese Portugal, .....
                  Modify LCLProc (Linux) to return the entire Locale 
variable, instead of Copy(1,2)..

Option 03: Do not touch any files or any code, except LCLProc to return 
locale which starts with "pt" to "pb".
                  Do not change what is stated on wiki.
                  Do not permit language variations. Mantain the already 
implemented rule. So Portugal Portuguese will have to use
                  Brazilian Portuguese language files.

Please, think on this with care. This is not a matter to rename files only. 
This is about to change a rule.
Will be great if other Lazarus Team take a look on this, before any actions.

Regards,

MarceloB. Paula



29.01.2011 13:34, Maxim Ganetsky wrote:

> Yes, it works. But this not solve our problem. If i do the same with
> lazaruside.pb.po it disrupts the IDE translations.
> IDE itself maps the ".pb.po" files.

Changed. I have renamed .pb.po files to .pt_BR.po. Please test.

> See attached image.
> I still think it would be better to put a line of code in lclproc.pas.

No.

-- 
Best regards,
  Maxim Ganetsky                  mailto:ganmax at narod.ru







More information about the Lazarus mailing list