Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Language for MessageDlg

Status
Not open for further replies.

LastCyborg

Programmer
Feb 7, 2003
256
MX
I was programming my own dialogs, but i think that should be an easier way to do this

How can I change the language for the Dialogs?
I mean
when I put this code -> MessageDlg (&quot;Any String&quot;, mtConfirmation, TMsgDlgButtons ()<<mbYes<<mbNo,0)

a Dialog Message appears but the caption for the buttons is &quot;Yes&quot; & &quot;No&quot;

is there a way to change it to &quot;Oui&quot;, &quot;Non&quot; or &quot;Sí&quot; & &quot;No&quot; ,&quot;Aceptar&quot;, &quot;Cancelar&quot;



---LastCyborg---
 
Have you checked your manual/help files for &quot;Creating International applications&quot;. In BCB 6 it's chapter 16.


James P. Cottingham

When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.
[tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
 
I'm been trying, Creating International applications as 2ffat said, but I some problems with that:

1.-I have translated all the messages, but in my application the text don't appear, the buttons & dialogs are no labeled.

2.-When I run the example file (the path is: ...examples\apps\richEdit) don't change the languages.



---LastCyborg---
 
Dear LastCyborg,

are you rebelling with the 3rd terminator?

Anyway, I had a problem to get the real english messages.
I used to program with the german version of BCB5.
So, all messages, which are not created by myself, were in german, although I keep my program steady in english.

This includes the buttoncaptions You mention.

But, after a bit searching, I found one of the LIB's which the compiler uses to create these messages and changed it to the one from the english BCB. This helped only a little.

A complete workaround was to rename the german Lib folder in the $BCB directory and to copy the english $BCB\Lib folder to my original $BCB folder. (maybe it was the $BCB/Include instead of $BCB whereever I mentioned it here).

Now I am workung with the english version of BCB5 and do not have a problem (I get always proper english messages, although I am running a german Windows 98).

My suggestion is:

Try to get internationalized copies of Your BCB and rebuild Your project in these particular languages.
(be sure to make backups before You do this!!!!!!!)

Maybe it is enough, when You have the different Libs residing on Your machine and set the Options/linker path values to these libs...
I have tried to change the texts in the libs, what DID NOT work properly :-(

Best regards,

Michael



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top