[Lazarus] Resource strings and newline

Sven Barth pascaldragon at googlemail.com
Tue Jun 17 11:19:16 CEST 2014


Am 17.06.2014 07:37 schrieb "Juha Manninen" <juha.manninen62 at gmail.com>:
>
> Could somebody please explain what happens when there is #13#10 in a
> resource string.
>
> See issue
>   http://bugs.freepascal.org/view.php?id=26343
> and a note:
>   http://bugs.freepascal.org/view.php?id=26343#c75738
>
> It is converted to \n in .po file strings.
> However Format() does not convert \n. How can it work?
> I will do more experiments later today.

As Michael wrote Format() does not need to deal with it. The translated
value of the resourcestring constant should already contain the correct
line ending and thus the .po-reader needs to handle this when it sets up
the translated strings.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140617/1577cc8e/attachment-0003.html>


More information about the Lazarus mailing list