[Lazarus] Resource strings and newline

Václav Valíček vaclav at valicek.name
Tue Jun 17 19:34:08 CEST 2014


Václav Valíček
vaclav at valicek.name

Dne 17.6.2014 11:24, Juha Manninen napsal(a):
>> Format should not convert \n. This is the job of the .po reader.
> Right, the .po reader converts it back to system specific line-ending.
>
> Václav, apparently it works if you add #13#10 to a resource string. It
> shows as \n in .po files and you can use it in translations, too.
> No need for an extra tool for that.
Okay.
>
> This whole question started from my cleanup work in Lazarus IDE
> sources for quotation chars '"' which were also passed as Format()
> params but now they are hardcoded in resource strings.
> Line-endings are still passed as params. It would be possible to
> replace them, too, but that is a huge task and I am not planning to do
> it now.
>
> I must apologize for the extra work for translators caused by my
> cleanup. There are many fuzzy translations now with wrong number of
> parameters. Finally please use the PoChecker tool to ensure there are
> no hidden errors left.
> This creates more work in short term but makes things easier in long term.

> The long param sequences like %s%s%s%s%s are gone now.
This is why I was using gettext from Delphi in my own projects.
>
> Regards.
> Juha
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus





More information about the Lazarus mailing list