Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Localizing application
Message
De
06/01/2007 11:42:50
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01182888
Message ID:
01183155
Vues:
20
>If this question was asked here many times before, I apologize for repeating.
>
>I am thinking/making initial steps in localizing an application. A way I see doing it is to create a library with a label control for each and every label used by various forms of the application. This could amount to a couple of thousand labels. I realized that labels in a .VCX library are simply records in a table. But I was wondering, will this approach have any negative effects on the application?
>
>Thank you in advance for any questions and/or input.

I would use one of the following two approaches, to store the texts in several languages:

1) Keep the texts for several languages in several fields in a table. The advantage of this method is that you can see the translations side by side, fairly easy.

2) Keep the data in a text file, similar to an INI file:
; Optional comments are preceded by a semicolon
Variable = Value
Variable2 = Value2
...
The advantage in this case is that the user can easily adapt the application to additional languages - with a plain text editor. (The Opera browser uses this approach.)

In either case, the captions should be set when the form starts, for instance, in Form.Init(). You might also consider having some property for each Label (the key to look up the caption), which the form then checks, to set the Label caption - or, instead of the form, each individual label.
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