kzdown
asked on
localization
i want to localize my program, but i have problem changing captions of some standard windows dialogs,
for example: print dialog, standard msg dialog etc... can someone tell me how to do it and is it possible to do this
at runtime?
thanks in advance.
for example: print dialog, standard msg dialog etc... can someone tell me how to do it and is it possible to do this
at runtime?
thanks in advance.
ASKER
what about buttons captions.. etc..?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
DELPHI allows you to work on multi language appllication.
It provides ITE functionality
See menu Project/Languages/Add...
Please remember that you will need to declare all your String constants as resourcestrings in code. Therefore the titles of all your dealogs should be declared like resourcestring too.
It provides ITE functionality
See menu Project/Languages/Add...
Please remember that you will need to declare all your String constants as resourcestrings in code. Therefore the titles of all your dealogs should be declared like resourcestring too.
What version of Delphi use you penich ?
I have Delphi6 Pro and nothing about Languages option in Project menu :(
I have Delphi6 Pro and nothing about Languages option in Project menu :(
about changing the consts.pas unit
you should first copy it to your projects folder
then do whatever changes you need
ginsonic:
dunno if D6 pro has this but in Ent. you simply install the "Borland Integrated Translation Environment" package
I couldn't find it myself so I looked up in the Packages and found it :)
you should first copy it to your projects folder
then do whatever changes you need
ginsonic:
dunno if D6 pro has this but in Ent. you simply install the "Borland Integrated Translation Environment" package
I couldn't find it myself so I looked up in the Packages and found it :)
I am using DEPLHI 5
ASKER
my final need is to make progrm available to change from one lang to another at runtime...
I do that "the hard way" by pulling the texts from a database. That way dealers can translate my app for their country.
ASKER
hi mikepj.
yes. that what i need to do also. i can do that without problems on the forms i have creted, but when i need to applay changes to some standard windows dialogs (print dialog etc..) i got problems. do you know how to sove these problems?
yes. that what i need to do also. i can do that without problems on the forms i have creted, but when i need to applay changes to some standard windows dialogs (print dialog etc..) i got problems. do you know how to sove these problems?
Hi kzdown,
The other experts have provided ways to do that (they will work).
The other experts have provided ways to do that (they will work).
why not simply have an ini file like most of the apps have ?
you could make resoruce dlls but then users can't make their own translations
you could make resoruce dlls but then users can't make their own translations
begin
SetWindowText(PrinterSetup
end;
This is a sample for PrinterSetupDialog but work for the rest of dialogues is the same way.