Talk:Translations / i18n / localizations for programs

From Free Pascal wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Resource format

The article discusses including .lrs/Lazarus resources. Can you also use .rc/regular Windows resources? These are a bit smaller than Laz resources...

--BigChimp 16:30, 27 February 2013 (UTC)

TranslateUnitResourceStrings defined in two modules

If you use 'gettext' and 'translations' units together, don't forget to specify unit when using TranslateUnitResourceStrings function, because it defined in both, and only God knows which one your compiler will choose. Wrong: TranslateUnitResourceStrings('LCLStrConsts', PODirectory + 'lclstrconsts.%s.po', Lang, FallbackLang); Correct: Translations.TranslateUnitResourceStrings('LCLStrConsts', PODirectory + 'lclstrconsts.%s.po', Lang, FallbackLang);