Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multilanguage apps ... any experiences ?
Message
From
03/04/1998 01:41:45
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00088883
Message ID:
00089166
Views:
81
>>>>>>>Which langauges? And is the language used determined on a runtime, per-user basis or will you be compiling the app into different languages and distributing it to run set in a given language?
>>>>>>
>>>>
>>>>ok, sorry for 1st reply.
>>>>Actually I've no idea of how apps will be , because at the moment I'm only looking for possible solutions and know how ( ... the boss want to know if it is possible, and what we've to do, to develop a multilanguage app)
>>>>So any solution it's a good solution ... which differences between your solutions ? Thanks for your reply.
>>>
>>>If an application has to make a language determination at runtime, it's necessary to develop code to track which language and to change to Caption property (at the very least!) of all controls on the fly. This is hard to develop but very flexible.
>>>
>>>On the other hand, if you want distinct versions of the application in different languages, you just have to change the Captions at development time and compile that distinct version.
>>
>>You probably want to use Steven Blacks INTL application. We've used it for a sytem running in Poland, Switzerland, Hungary and Romania. You use a standard naming convention :-
>>
>>a code field on customer form could be called:
>>
>>lblCustomerCode
>>
>>This would then be translated into whichever language you want - It works out based on a table of these label names with the translations in other columns.
>>
>>You can also use it for multi language messages, with paramters as well.
>>
>>We had t make a few changes to it but on the whole it is excellent!
>>
>>Ian
>
>
>Another way would be with a resource file if that is possible in VFP(?) For example, in VB, you could store the Resource ID in the control's TAG property, then you just loop through all controls and call the function to load that valeu into the control's caption or other. By using a language modifier constant (i.e. English is 0 to 1999, French 2000-3999, Italian 4000-5999, etc), you could just declare a global variable for each language, such as glngEnglish = 0, glgnFrench = 2000, and so on. At load time, you load that modifier into memory as a global variable and load all your resources by number plus the modifier. Then only time you have to be careful is when you "construct" a string with resource strings, due to the differing grammar and language rules.
>
>Hugo Dahl

of cos, but where you would like to put it?!
**** At every Init, Public curLanguage or using SYS(300?) to store!

#define EnglblCust__idcap "Cust_id"
....
Do case
case curLanguage = 'English'
  this.caption = EnglblCust__idcap
...
endcase
or use a header file 'Langcap.h' to hold all Caption and then reuse the caption
for every forms?!

when some change on Language show, call all .init event again! ^_^;
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Previous
Reply
Map
View

Click here to load this message in the networking platform