[Lazarus] Resource strings and newline

Sven Barth pascaldragon at googlemail.com
Wed Jun 18 19:56:03 CEST 2014


Am 18.06.2014 18:32 schrieb "Péter Gábor" <ptrg at freemail.hu>:
>
>
>
> 2014-06-18 09:44 keltezéssel, Mattias Gaertner írta:
> > In the old days special characters were not converted properly.
> >
> > I just tested:
> >
> > 'A'#10'BC' is converted to
> > msgid ""
> > "A\n"
> > "BC\n"
> >
> > Note the new line behind BC. When this is fixed, I can adapt the 'Make
> > resourcestring dialog'.
> >
> > Also all line breaks (#10, #13, #13#10) are converted to \n and on
> > loading to the system line break. That's ok for all strings
> > passed to the LCL, but all other must be checked manually.
> >
> > Mattias
>
> What is about that all systems has its own LineEnding?
> eg.: a single #10 or a single #13 is not marking EOL on windows, #13 is
> not marking EOL on Linux, etc.

\n is automatically converted using the LineEnding variable when the
PO-reader parses it. So you are only out of luck if you want a
resourcestring that should contain e.g. #13#10 on e.g. a Linux system.

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


More information about the Lazarus mailing list