Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to write an app with multi langues
Message
De
19/04/2005 08:36:14
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
19/04/2005 06:37:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01006096
Message ID:
01006119
Vues:
15
This message has been marked as a message which has helped to the initial question of the thread.
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform