Talk:German localization notes

From Free Pascal wiki
Jump to navigationJump to search

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


Maybe it could be Windoze who automatically does that translation (just came to my mind). If that is the case (or it proves to be limited in some other ways), I'll certainly remove this note -- Thomas