Difference between revisions of "Talk:German localization notes"
Tom at work (talk | contribs) |
Tom at work (talk | contribs) |
||
Line 11: | Line 11: | ||
---- | ---- | ||
− | |||
This is a feature of GNU gettext() which automatically translates the C escape characters into their real values when retrieving translated values =) | This is a feature of GNU gettext() which automatically translates the C escape characters into their real values when retrieving translated values =) | ||
− | This behaviour has been verified by simply trying it on some labels. | + | This behaviour has been verified by simply trying it on some labels. |
+ | -- Thomas | ||
+ | ---- | ||
+ | Correction (for now): at least \" works (verified a few moments ago), and I think the others too, maybe only under certain circumstances (e.g. '\n' with multiline labels only?). I remember that when trying I managed to get a linebreak in an otherwise unbroken label. Will investigate that further... | ||
+ | Summing it up, C style escape strings work for resourcestrings which are used in conjunction with GNU gettext (only). | ||
+ | -- Thomas |
Revision as of 12:09, 17 March 2005
Die möglichen Schreibweisen für FreePascal sind "Free Pascal" und "FreePascal". --FPK 11:58, 16 Mar 2005 (PST)
Formatting newlines
Since when can we use C style formatting in FPC ?
The current tools for translating dont support the #13#10 in the next line. That is why Lazarus currently uses a %s as placeholder. In the future we might use a custom format where C style formatting is allowed.
myLocalizableString := 'This can be easily localized.'#13#10'Translators will hug you for that.'
This is a feature of GNU gettext() which automatically translates the C escape characters into their real values when retrieving translated values =) This behaviour has been verified by simply trying it on some labels. -- Thomas
Correction (for now): at least \" works (verified a few moments ago), and I think the others too, maybe only under certain circumstances (e.g. '\n' with multiline labels only?). I remember that when trying I managed to get a linebreak in an otherwise unbroken label. Will investigate that further... Summing it up, C style escape strings work for resourcestrings which are used in conjunction with GNU gettext (only). -- Thomas