On Thu, 21 Feb 2008 21:46:39 +0100
Tomasz Wojtyś <[EMAIL PROTECTED]> wrote:
> > > >> 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'.
> >
>
> I have a problem with translations too.
>
> var
> _PODirectory, _Lang, _FallbackLang: string;
> begin
> _PODirectory := 'po/';
> GetLanguageIDs (_Lang, _FallbackLang);
> TranslateUnitResourceStrings ('Lang', _PODirectory + 'puzle.%s.po',
> _Lang, _FallBackLang);
> ...
>
> where the Lang is an unit contains resource-strings.
>
> I take generated puzle.po, rename it to, for exaple puzle.pl.po, and
> translate. Later I added some strings in application and the new
> puzle.po file was generated. How can I update my translation in
> puzle.pl.po?
/path/to/lazarus/tools/updatepofiles originalpofile.po
This will update all originalpofile.*.po
Eventually this function will be executed by the IDE.
Mattias
_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus