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

Maxim Ganetsky ganmax at narod.ru
Sat Jan 29 01:01:47 CET 2011


29.01.2011 3:29, Marcelo B de Paula пишет:
> Hi list,
>
> I am having some trouble using my native language with Lazarus
> applications (Brazilian Portuguese).
> IDE itself works fine with its translated language files, but the tools
> included with it (lazde for example) and programs using
> DefaulTranslator, do not recognize the correct language files.
>
> The portuguese language files have an extension ".pb.po".
> Unfortunatelly, function LCLGetLanguageIDS returns "pt_BR" or "pt" as a
> locale identification. Its correct in OS point of view, but make
> translations routines unusable since they can´t find the correct files.
>
> I really don´t know why these files was standardized with "pb" instead
> of "pt".

Please check if LazDE translation works when you rename its .pb.po file 
to .pt_BR.po.

If it works, we can solve all these problems by renaming all .pb.po 
files to .pt_BR.po.

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




More information about the Lazarus mailing list