Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ammar Hadi
  Where is Ammar Hadi?
 Al-Samawah
 Iraq
 Ammar Hadi
 To: Riaz Ahmed
  Where is Riaz Ahmed?
 Karachi
 Pakistan
 Riaz Ahmed
 Tags
Subject: RE: International Application
Thread ID: 228853 Message ID: 228858 # Views: 3 # Ratings: 1
Version: Visual FoxPro 9 SP2 Category: Projects and Design
Date: Friday, May 22, 2009 8:03:15 AM         
   


> Hi All,
>
> How could an English application be converted to other languages.
>
> regards
> -

Hi Riaz,

1)One of the ways is that you create a translation tables to the captions and to error messages.
Such a table containing at least 3 fields, an Id field, an english caption field and the third is for the equivalent translation of the caption in that language.
You assign the captions like at the init event by assigning objects with captions by locating its id field value and assigning its caption according to the selected language.
Some use a table for each language.
2)Many important issue for Right-to-Left languages like the Keyboardlayout during text entry. So that you better shift the cursor from left to right upon entry to the textbox that need to be entered from right to left. Use the KeyboardLayout Api calls for that.
3)An important thing is the code page. You should be sure that the requested code page is available in the client machine. Use some functions like CPCURRENT(). And read about SET CPDIALOG.
4)The collate sequence of the indexes. should be changed according to the content of your tables. So, ordering character fields in English is not the same if they where in Arabic. manipulate the command INDEX ON ... COLLATE for that purpose.
5)When you build your application be sure to include the language support specific foxpro dlls like if you want to use Korean language you include: VFP9KOR . DLL

6)Another minor issue is that you need to be sure that the length assigned to objects like labels should fit both language texts.

7) There are many other issues in this subject. Read the related chapter in vfp help too.

this is just some of the issues.

For me I prefer to develop a separate version for each language ... :-)

Ammar Hadi ................IRAQ

My Foxite Weblog

---------------
I I I really love foxite
___________________________

ENTIRE THREAD

International Application Posted by Riaz Ahmed @ 5/22/2009 6:00:19 AM
RE: International Application Posted by Ammar Hadi @ 5/22/2009 8:03:15 AM
RE: International Application Posted by Riaz Ahmed @ 5/23/2009 6:12:18 AM
RE: International Application Posted by Ammar Hadi @ 5/23/2009 6:23:25 AM
RE: International Application Posted by Riaz Ahmed @ 5/26/2009 5:32:32 AM
RE: International Application Posted by Ammar Hadi @ 5/26/2009 5:08:49 PM
RE: International Application Posted by Marcia Akins @ 5/24/2009 4:07:59 PM
RE: International Application Posted by Riaz Ahmed @ 5/26/2009 5:34:47 AM
RE: International Application Posted by Marcia Akins @ 5/22/2009 4:52:31 PM