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'+Directoryseparator+LangName+'.mo');
end;
thats all, now you can create .mo files how to do take a look at the lazarus
makefile
you have to use makeres to create .po from .rst and then you can translate
at example with poEdit
witch creates .mo automatically that can uses by TranslateResourcestrings
....
or you take a look at great lazarus documantation in the wiki that had made
it unuseable that i have
written this mail lol but i have forgot about that
have fun
Christian Ulrich
----- Original Message -----
From: "Alexandre Leclerc" <[EMAIL PROTECTED]>
To: "lazarus mailinglist" <lazarus@miraclec.com>
Sent: Tuesday, May 09, 2006 7:38 PM
Subject: [lazarus] Lazarus for core devel in one of our project! --
Multilangual support
Hi all,
finally it has been decided to Lazarus was given a chance in a small
project (300hrs) as a test platform for probable future
developpements. The application will be included inside our main
application (it will be called as an external exe.)
So this is great news. It might go further in the future; we will see
and will depend of other factors.
*multilangual gui*
Now on the technical side, many new features are new to me in Laz and
I would like to use them in the project I'm responsible of. I talk
about multilangual support.
I know Laz is already doing this, but I simply do not know how to do
it actually in my application and found no example on the wiki. At
first I need a french/english translation of the app. The string must
be loaded at start-up (one application could be started in many
languages.)
Is there any info out there or can someone send a crash-course example
(teach yourself in 60 sec.)?
Best regards.
--
Alexandre Leclerc
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives