wrong GetText.pp (fcl-base package) code and example
Original Reporter info from Mantis: Awkward
-
Reporter name:
Original Reporter info from Mantis: Awkward
- Reporter name:
Description:
GetText.pp have not only mixed formatting (letter case, tabulations, no "const" before string arguments) but commented line
procedure TranslateUnitResourceStrings(const AUnitName:string; AFile: TMOFile);
begin
// SetUnitResourceStrings(AUnitName,@Translate,AFile);
end;
and don't set value of FallbackLang variable in non-windows GetLanguageIDs function (when environment variable for Loag is empty or not found)
in compiled (release) compiler verison example restest.pp will compile but not work properly because "Intl" directory with test locale files (*.mo and *.po) not presents. and even if it will be present, "make" file for PO to MO translation will not work becouse refers to msgfmt executive which not presented anywhere (and no info where to get it)
Mantis conversion info:
- Mantis ID: 36886
- OS: Windows
- OS Build: 7
- Platform: i386
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 44644 (#9327ab7a)
- Target version: 4.0.0