[Lazarus] Resource strings

Alex du Plessis alexdup01 at telkomsa.net
Thu Feb 21 13:46:28 CET 2008


That is exactly what I did (using Project/Project Options/il8n/enable 
il8n) initially and that is when I got the jumbled (and unwanted) 
strings from it seems my .lpr file. No .mo file associated with my unit 
file that contains the resource strings.  The .rst file for the unit 
file did get created though and using rstconv still works.

I am running on WinXP with the snapshot from 20/02/2008.  I know that 
the enable il8n option worked in previous snapshots, but something seems 
to have changed.  I did a completely new(clean) install of Lazarus using 
a new directory and it still does the same.Maybe something wrong in my 
project file?  It still compiles without a hitch though.

Mattias Gaertner wrote:
> On Thu, 21 Feb 2008 09:55:00 +0200
> Alex du Plessis <alexdup01 at telkomsa.net> wrote:
>
>   
>> Graeme Geldenhuys wrote:
>>     
>>> On 21/02/2008, Alex du Plessis <alexdup01 at telkomsa.net> wrote:
>>>   
>>>       
>>>> Hello list
>>>>
>>>>  I have an application which implements resource sections.  When I
>>>>  compile, only the main file .po file is created and not a .po
>>>> file for the unit in which the resourcestring section resides.
>>>>         
>
> check IDE / Project / Project options / i18n / enable i18n
> and set a subdirectory. For example 'languages'.
>
>
>   
>>> Compiling a project that uses the resourcestring section doesn't
>>> create .po files. It creates *.rst files.  You first need to run a
>>> conversion tool to get it into a .po file format.
>>>
>>> eg:
>>>    rstconv -i uitext.rst -o languages/uitext.po
>>>       
>
> In the old days.
>
>
> Mattias
>   




More information about the Lazarus mailing list