Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Spanish Messageboxes
Message
From
22/01/2013 10:26:31
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01563612
Message ID:
01563614
Views:
69
>Hi Gang!
>Another Spanish Translation question.
>We got everything up and running in Spanish now.... working great, EXCEPT the messagboxes are still in English (Yes / No).
>Anyway to get it to be SI / NO ??


I believe this depends on the resource file you're using.
c:\Develop\FoxPro\VFP9\vfp9.exe -Lc:\Develop\FoxPro\VFP9\vfp9ES.dll

To modify the default ENU DLL to ES DLL there are Win32 functions you can use which enumerate the strings, bitmaps, icons, and other resource entries within the resource DLL. There are probably 3rd party utilities which do this as well.

Here's the general idea from CodeProject:
http://www.codeproject.com/Articles/3087/Reading-and-Using-Resources-in-an-Executable-file

And here is a place to get started with string translations already done by the Spanish community:
http://www.portalfox.com/vfpespanol/

To convert to Spanish, open the existing ENU DLL and enumerate through the strings. Find the ones which you wish to translate, then replace those entries as needed, then use your DLL at startup. You can rename it vfp9ENU.dll if you like as well, with your modified strings within.

A small C++ DLL and a VFP9 project would make a great way to port resource texts to any other language.

Also, the VFP9ES.DLL may be available out there somewhere already. I don't know.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform