Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using #include #define
Message
 
À
28/04/2000 05:16:11
Denis Filer
University of Oxford
Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00364371
Message ID:
00364403
Vues:
22
>I am creating a multilingual app. in VFP. Ive been trying to use a common.h file and include this in a form. There are many forms ...
>
>No success yet to map the variables into the form though. Any suggestions/hints about using #include files would be most welcome.

Maybe this can help you. I also did a multilingual app. The approach I took is a bit different than a .h file: I created a language table containing the translation for other languages. The main key is something like language_code+form_name+full_field_name. In the init of my forms (well really in my form class), I verify if the current language is different. If yes, I loop into each fields of the form and replace the caption and tooltip with whatever is in the language table. It is pretty fast and it allow the users to translate themselve the application. It is also dynamic. No need to recompile.

If you want, I can send you the code to do this.

Eric
Eric Crespin
Consultant
PC PLUS Software Inc.
www.pcplus.ca
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform