Alain Valancogne

Show:

What's happening?

  • GetListOfLanguages

    Hello Lars, In gnugettext.pas, I don't understand this line: langcode := lowercase(sr.name); I think there must be a reason... But with sublanguages (like en_GB or pt_BR) the name cannot be resolved by languagecodes (po or pas method). I have to change this line by: langcode := sr.name; And everything work fine! Please, have you got any advice about this? Best regards...

    2008-11-05 09:17:15 UTC in GNU Gettext for Delphi, C++ and Kylix

  • Comment: Limited length of resourcestrings

    LoadString returns a size which does not include the trailing #0 of the resulting buffer. That's why, when the buffer size is not large enough (Length(Result) is initialized to 1024), Len is not equal to Length(Result) (the Len value returned by LoadString is 1023) and the loop condition is not verified! I add 2 lines to the LoadResString function to have a cleaner code than modifying the while...

    2007-12-14 10:36:57 UTC in GNU Gettext for Delphi, C++ and Kylix

About Me

  • 2007-12-14 (2 years ago)
  • 1959869
  • valanc (My Site)
  • Alain Valancogne

Send me a message