2006/5/9, Mattias Gaertner <[EMAIL PROTECTED]>:
On Tue, 9 May 2006 20:35:53 +0200
"Christian U." <[EMAIL PROTECTED]> wrote:
> Lazarus itself maybe a good crash course example :)
>
> every String in your application you want to translate have to be an
>
> resourcestring
> strtest = 'You can declare me like an constant';
>
>
> uses gettext;
>
> Formcreate or simelar
> begin
> TranslateResourcestrings(ProgramDirectory+'languages'+Directoryseparato
> r+LangName+'.mo');
> end;
>
> thats all, now you can create .mo files how to do take a look at the
> lazarus makefile
Lazarus does not use .mo files anymore. It uses the .po files directly.
See unit lcl/translations.pas. The header contains an example.
Thanks guys, I'm now playing arround with this. This was the kind of
60 sec. course I wanted! ;)
Best Regards.
--
Alexandre Leclerc
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives