[Lazarus] POFile ommission

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Sep 10 00:15:45 CEST 2015


On Fri, 28 Aug 2015 16:22:28 +0200
JuuS <JuuS at mykolab.ch> wrote:

> Hi all,
> 
> Recently got into PO files and want to translate a program.
> 
> Turns out, however, that multi-line hints in lfm files are not brought
> over correctly - only the first line of the multi-line hint.
> 
> This is by design as can be seen in the Translations unit
> TPOFile.TranslateStrings procedure in the condition:
> 
> if SType=stLrt then (at around line 1217)

Feel free to extend this to support multi line strings.

 
> Multi-Line resourcestrings from the rst files are handled fine.
> 
> 
> I was going to take a stab at writing some code for this but then was
> stopped because I saw that there was some utf8 (?) translation going on
> when the rst file is created. 

What do you mean?


> In a related question: Combobox contents (and I presume listbox
> contents) are not written to the lrt files. I would find this useful
> also as currently I have to make the combobox contents a resourcestring
> and then assign at runtime. But maybe this is a limitation of the
> po_file translation system itself?

At the moment the IDE only translates string properties of type
TTranslateString.
TComboBox.Items is TStrings, which is not supported.


Mattias




More information about the Lazarus mailing list