Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ER - another LanguageMgr suggestion
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00688781
Message ID:
00688924
Views:
19
>Paul,
>
>>I added a new parameter to SetCurrentLanguage() called tlDoNotRefresh (so it now reads: LPARAMETERS tiLanguage, tlDoNotRefresh). I added a IF statement before it attempts to localize the forms:
>
>So, are you saying that you want everything BUT the forms to be localized?
>
>Regards,

Actually, what I want is for GetLocalizedText to return the localized version of some chunk of text, which is different than the language the application is currently localized as. I don't want SetCurrentLanguage to modify my menus, forms, or toolbars to this "new" language. I guess code could be moved around so I could pass the language ID as a parameter to GetLocalizedText. However, I figured this was simplier.

The modified code would look like:
IF This.iCurrentLanguage != tiLanguage
   * Current code still here

   IF !tlDoNotRefresh
        *-------------------------------------
  	*--- Localize all forms on the desktop
	*-------------------------------------
        * Code removed...

	*---------------------
	*--- Localize the menu
	*---------------------
        * Code removed..

	*---------------------
	*--- Localize Toolbars
	*---------------------
        * Code removed...

   ENDIF
ENDIF
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Reply
Map
View

Click here to load this message in the networking platform