[Lazarus] Resource strings and newline

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Jun 19 11:50:00 CEST 2014


On Thu, 19 Jun 2014 12:01:57 +0300
Juha Manninen <juha.manninen62 at gmail.com> wrote:

> On Wed, Jun 18, 2014 at 10:44 AM, Mattias Gaertner
> <nc-gaertnma at netcologne.de> wrote:
> > 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'.
> 
> Mattias, what tool exactly does it wrong?

The rst to po converter.


> >From the new message:
> > To be safe: use LineEnding instead of #10,#13.
> 
> Already a long time ago I changed all #13 parameters to LineEnding in
> Format() calls.
> #13 did not work on Linux, the lines were concatenated in message boxes etc.

#13 works in message dialogs on all platforms. What message boxes do
you mean?

AFAIK the WinAPI and VCL allows to use #13 for line breaks in message
dialogs too.


Mattias




More information about the Lazarus mailing list