>Hello everybody!
>I would like to write a app with multi langues. How to change the languese on my app? Please give me some ideas about it.
>Thanks.
>Canh
With languages that use the Latin alphabet, it is relatively easy. For other alphabets, I understand that VFP is quite limited.
You can have a table of equivalents, with fields like key value, language1, language2, etc. (or a more normalized structure; i.e., one record for each language), and a function that retrieves the value based on the key and the language. This would assign the Label.Caption, Header.Caption, etc., in each form. Since you will need to do this all over the place, you should do this in your base classes, to save work.
For your menu, you should generate it once, and then do modifications to the MPR file. Don't generate your menu again, or you will overwrite these changes.
If you want a commercial solution, I understand that the Intl Toolkit, by Steven Black, helps you in this kind of work, but I never used it. I have heard different opinions on it - both positive and negative, but usually positive.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)