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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

set default language to english within exe 2

Status
Not open for further replies.

taterday

Programmer
Jan 28, 2009
183
US
I have a user that travels to Japan and wants to log his trip into a reporting system written in VFP 9. He needs his system to be Japan language to use some of their software when he is there and sets it somehow.

How to set the language within the software to stay English? Are do you think this will solve my problem?

Thank you for any help.
 
see command-line options -L to specify using the ENU resource Dll.

Afaik foxpro has no japanese support anyway, so running it on a japenese windows will use the englich runtime anyway and the IDE is english only always.

To display and manage japanese text is not impossible, but takes several extra steps, running on a japanese windows alone does not change to japanese.

While that is not your goal, you can see how complicated that is: and
This may also help to understand what's going on, if I am wrong and use the knowlegde to revert to english.

Bye, Olaf.
 
Also: In windows since vista you can install several languages and easily switch via toolbar/systray and hotkey ALT+SHIFT.

Bye, Olaf.
 
As usual I wasn't clear. I would like to set the envirnoment to English within a program exe or the config file. I know how within the development version. The program is English but their envirnoment is Japanese that he has to connected to.

Is there a way to do set the codepage to 1252? I know the switching is not what they want. They would like it to be seamless.



Thank you,

 
The config options are exactly the same for an exe. Codepage is set by a config.fpw and you can determine the exe to use the vfp9rENU.dll, the simplest is to only ship that dll and no other runtime dll and the exe will automatically use it.

Bye, Olaf.
 
Do you somehow think that running an exe in Japanese windows translates the application to Japanese? It doesn't.

At most you might get surprised by system-provided buttons in MessageBox(), and system error messages will likely be localized, but that's pretty much the extent of it. The English strings you've compiled into the EXE will still be in English when displayed in any other language-version of Windows.

If you paint a sign in English saying "CLOSED!" it won't be magically translated if you hold it up in Japan.

As Olaf says, you set codepage in config.fpw no matter where the exe runs, and VFP9 now allows both internal and external config.fpw files. But PLEASE study codepages to make sure you know what you're getting yourself into if you go mucking with it.
 
I clicked submit too soon. I meant to add that on study you may find that all you need is SET NOCPTRANS on selected fields.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top