Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help on INTL Toolkit
Message
De
20/08/2003 21:13:38
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00820972
Message ID:
00822070
Vues:
16
Hi,

Thank a lot for your help.
I finally managed to get help from Steven black.
FYI, the function to stop INTL from updating
the strings file is .oINTL.SetUpdate(.F.)



>Hi,
>
>Couple of things...
>
>_SCREEN.oINTL.SetConfig(11) should work, but you could replace this line with the following (which does the same thing as the SetConfig command)
>
>_SCREEN.oINTL.SetStrategy( "String", "cINTLString")
>_SCREEN.oINTL.SetStrategy( "Font", "cINTLFont")
>_SCREEN.oINTL.SetStrategy( "Picture", "cINTLPicture")
>
>Also, all of those SetConfig(1)s are not necessary because 1 is the default for all of the strategies.
>
>>02) As my application is based mainly on a form
>>with a pageframe for switching between different
>>pages, how do I enable the displaying of different
>>language.
>
>>I set the following code for each activate method of each page of
>>the pageframe like this, am I right ?
>>
>> _SCREEN.oINTL.Localise(_SCREEN.ActiveForm)
>
>Unless you need to be able to switch languages while you are in the application, that line of code should go in the Init of the base your form's base class, so that the translation only occurs when the form is initialized, rather than every time it gets activated.
>
>>03) Finally, why do my strings.dbf file keep adding new
>>records of my other language string when I change to
>>display other language. All those string that I want to display
>>is all in the strings file, I don't want to INTL to auto
>>add in those caption or fonts. How do that I achieve that.
>
>If I understand you correctly, this may be being caused by the call to Localize being in the Activate rather than Init. It sounds like INTL is trying to translate things that have already been translated.
>
>Are you adding things on the fly using AddObject? There can be issues with that as well.
>
>From what I remember of INTL, it leaves a cINTLMemento on any container class that has been translated, so that even if you call localize more than once, it only translates if the language has changed.
>
>I'm not sure but I believe there is a property that can be set so that INTL doesnt add things to STRINGS.
>
>Hope this helps,
>Rick
Best Regards
Virusim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform