Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yousfi Benameur
  Where is Yousfi Benameur?
 El Bayadh
 Yousfi Benameur
 To: podala balaji
  Where is podala balaji?
 podala balaji
Subject: RE: Localization
Thread ID: 310919 Message ID: 310971 # Views: 49 # Ratings: 0
Version: Visual FoxPro 9 Category: VFP and .NET
Date: Monday, June 27, 2011 4:30:13 PM         

> Can Any Body Suggest how can i Include Localization in Vfp9 SP1.
> I Would like to provide an option for to Change the language in my software So any body suggest for me how to do
> this.
> Thanks
> Balaji.P

I give you an idea simply
build a permanent table with fields the diffrent languages you goal to translate to (base=english,hindi,arabic,turkish,russe,french....)
then you can add records 1,2,3,....n with all what you want to translate (control names,title form names,......)
Detecting the lnguage you can select all the records concerned and load them to populate what you need in your application.
NB: vfp is not unicode then for the table records use the encoded data with strconv() function
strconv(string,15)  &&encode string to hexbinary

and retrieve in specified installed language with
strconv(string,16)  &&decode string from hexbinary

Yousfi Benameur


Localization Posted by podala balaji @ 6/27/2011 9:42:35 AM
RE: Localization Posted by Yousfi Benameur @ 6/27/2011 4:30:13 PM