Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-06

Lazarus and it's i18n usage

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Žilvinas Ledas

Hello all,

is it possible to use integrated i18n and .po generation functions only with some units?
For example I do not want to generate translation strings from my main form components .caption fields as I assign resource strings to them from another unit myself. How can I instruct Lazarus to generate .po files only from resource strings in certain unit?
Thanks.

Regards
?ilvinas Ledas

Reply by email

Maxim Ganetsky
to Žilvinas Ledas

10.06.2010 0:11, ?ilvinas Ledas ?????:

Show quoted text 9 lines
Hello all, is it possible to use integrated i18n and .po generation functions only with some units? For example I do not want to generate translation strings from my main form components .caption fields as I assign resource strings to them from another unit myself. How can I instruct Lazarus to generate .po files only from resource strings in certain unit? Thanks.

This is not yet possible AFAIK. In order to achieve the desired result you should use Translations unit and disable automatic .po generation by IDE.

Best regards, Maxim Ganetsky mailto:

Reply by email

Žilvinas Ledas
to Maxim Ganetsky
Maxim Ganetsky wrote 15 lines
10.06.2010 0:11, ?ilvinas Ledas ?????: > Hello all, > > is it possible to use integrated i18n and .po generation functions only > with some units? > For example I do not want to generate translation strings from my main > form components .caption fields as I assign resource strings to them > from another unit myself. How can I instruct Lazarus to generate .po > files only from resource strings in certain unit? > Thanks. This is not yet possible AFAIK. In order to achieve the desired result you should use Translations unit and disable automatic .po generation by IDE.

Yes, I am using Translations unit. I am searching for a fast and simple way to update and merge .po files now.
I found updatepofiles utility - I hope it will do what I need. Thanks for info.

Regards
?ilvinas Ledas

Reply by email

Mattias Gaertner
to Maxim Ganetsky: 10.06.2010 0:11, ?ilvinas Ledas ?????: This is not yet possible AFAIK. In order to…
Show quoted text 12 lines
10.06.2010 0:11, ?ilvinas Ledas ?????: > Hello all, > > is it possible to use integrated i18n and .po generation functions only > with some units? > For example I do not want to generate translation strings from my main > form components .caption fields as I assign resource strings to them > from another unit myself. How can I instruct Lazarus to generate .po > files only from resource strings in certain unit? > Thanks. This is not yet possible AFAIK.

Now you can disable the .po file creation for every lfm via the project inspector.

See here:
http://wiki.lazarus.freepascal.org/IDE_Window:_Project_Inspector#Disable_I18N_for_lfm

In order to achieve the desired result you should use Translations unit and disable automatic .po generation by IDE.

Mattias

Reply by email