 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Peter Beno Guest
|
Posted: Wed Jul 09, 2003 7:10 am Post subject: How to put translated strings into executable? |
|
|
Hi
Is there any way how to put translated strings (for standard delphi units
like dbconsts) right into executable? I want to build executable that have
default language other then english, but i found no way how to change
strings of standard delphi units (other then create language dll, which is
what i want avoid).
I tried to use microsoft rc, but it does not work with rc created by delphi
translation manager for some reason, and borland's brc32 wants ilink32 which
i have not found in my delphi - it is delphi 7 btw.
Thanks
Pete
|
|
| Back to top |
|
 |
Peter Beno Guest
|
Posted: Wed Jul 09, 2003 1:48 pm Post subject: Re: How to put translated strings into executable? |
|
|
Either i dont understand what is it doing, or you misunderstood me.
There are some default (english) resurse strings in standrad delphi units
(like in DBConsts: SFieldRequired = 'Field ''%s'' must have a value' , and
this is what is compiled into executable. What i want is to change it, to
change what is compiled into executable, so when i run my exe (without any
language dll or any .po file for getext) i get my translared message for
SFieldRequired.
Obviously there is one way - extract resource strig with for example visual
studio, chage then and merge them back to executable. But im looking for
something that can be more automatized - much more automatized :)
"Lars B. Dybdahl" <Lars (AT) dybdahl (DOT) dk> wrote
| Quote: | Peter Beno wrote:
Is there any way how to put translated strings (for standard delphi
units
like dbconsts) right into executable?
I want to build executable that have
default language other then english
Yes - use GNU Gettext for Delphi like this:
http://dybdahl.dk/dxgettext/docs/howto-mono.php
Lars.
--
Dybdahl Engineering
Denmark
Free GNU gettext for Delphi i18n/localization tool:
http://dybdahl.dk/dxgettext/
|
|
|
| Back to top |
|
 |
Chris Pettingill Guest
|
Posted: Wed Jul 09, 2003 8:41 pm Post subject: Re: How to put translated strings into executable? |
|
|
I think what you're asking for is what Multilizer
(http://www.multilizer.com) is supposed to do. I am just looking into
translation stuff now, too. There may be other options, but at the very
least check out Multilizer. Oh, and let us/me know what you think when you
decide on a solution!
"Peter Beno" <@> wrote
| Quote: | Either i dont understand what is it doing, or you misunderstood me.
There are some default (english) resurse strings in standrad delphi units
(like in DBConsts: SFieldRequired = 'Field ''%s'' must have a value' ,
and
this is what is compiled into executable. What i want is to change it, to
change what is compiled into executable, so when i run my exe (without any
language dll or any .po file for getext) i get my translared message for
SFieldRequired.
Obviously there is one way - extract resource strig with for example
visual
studio, chage then and merge them back to executable. But im looking for
something that can be more automatized - much more automatized :)
"Lars B. Dybdahl" <Lars (AT) dybdahl (DOT) dk> wrote in message
news:3f0bc3ec (AT) newsgroups (DOT) borland.com...
Peter Beno wrote:
Is there any way how to put translated strings (for standard delphi
units
like dbconsts) right into executable?
I want to build executable that have
default language other then english
Yes - use GNU Gettext for Delphi like this:
http://dybdahl.dk/dxgettext/docs/howto-mono.php
Lars.
--
Dybdahl Engineering
Denmark
Free GNU gettext for Delphi i18n/localization tool:
http://dybdahl.dk/dxgettext/
|
|
|
| Back to top |
|
 |
Lars B. Dybdahl Guest
|
Posted: Wed Jul 09, 2003 9:29 pm Post subject: Re: How to put translated strings into executable? |
|
|
Peter Beno wrote:
| Quote: | Either i dont understand what is it doing, or you misunderstood me.
|
No. The link I gave you makes it possible to write a full program in just
one .exe file in just one language. If, for example, you want to create a
German language program, where everything is in German, but you then find
out that the runtime messages are English, you can use the link to make
sure that the runtime messages are German, just like the rest of the
program.
It works like this: You add one file to your project named gnugettext.pas.
This file patches the resourcestring retrieval, so that the resourcestrings
from the Delphi runtime are translated when retrieved. The translations are
embedded right into the .exe file, which means that you end up with only
one file, the executable file.
The Delphi runtime library translations can be downloaded from the site,
too, for many languages. Everything you need is there to create a single
exe file that only does one non-English language.
This way, SFieldRequired won't become 'Field %s', but 'Felt %s' or whatever
you want.
Have a look again. The HOW-TO that describes exactly what you want, is here:
http://dybdahl.dk/dxgettext/docs/howto-mono.php
And you can download the runtime library translation for your language here:
http://dybdahl.dk/dxgettext/translations/
Lars.
--
Dybdahl Engineering
Denmark
Free GNU gettext for Delphi i18n/localization tool:
http://dybdahl.dk/dxgettext/
|
|
| Back to top |
|
 |
Alexander Melnychenko Guest
|
Posted: Thu Jul 10, 2003 12:44 pm Post subject: Re: How to put translated strings into executable? |
|
|
AFAIK the simplest way to do what you want is to copy needed units to you
project folder and translate them (.pas files) to German. The EXE will
contain translated resourcestrings.
--
Best regards,
Alex Melnychenko, Localizer Team
http://www.korzh.com
"Peter Beno" <@> wrote
| Quote: | Either i dont understand what is it doing, or you misunderstood me.
There are some default (english) resurse strings in standrad delphi units
(like in DBConsts: SFieldRequired = 'Field ''%s'' must have a value' ,
and
this is what is compiled into executable. What i want is to change it, to
change what is compiled into executable, so when i run my exe (without any
language dll or any .po file for getext) i get my translared message for
SFieldRequired.
Obviously there is one way - extract resource strig with for example
visual
studio, chage then and merge them back to executable. But im looking for
something that can be more automatized - much more automatized :)
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|