PDA

View Full Version : Localized strings in Dialog.Message


Superbank
06-08-2009, 07:15 AM
I am new to "Setup Factory 8", I only worked with "Setup Factory 5" long time ago...

Now I have a problem with localized strings in all Dialog.Message boxes, the text is being displayed in the default project language (English).

Please advise.

My Windows XP is an English version but the deafault System language is set to Russian.

When my SF8 project setup is running on my computer the static text on lables and buttons is in Russian according to the respective localized strings found in the saved XML files in Exported Screen Strings folder.

However the text in all pop-up Dialog.Message boxes (the localized strings that are supposed to be taken from the "Russian.XML" file in the "Languages" folder) is replaced by the text in the default project's language (English).

:huh

Superbank
06-08-2009, 08:21 AM
Here are some more details.

I found that SetupData.GetLocalizedString is not actually fetching a localized string but instead it is fetching a string in the default project language (English) probably because SetupData.GetLocalizedString can not properly detect that the default System language is in fact Russian...

The Application.GetLastError is giving a zero value, meaning that SetupData.GetLocalizedString was successful...

SetupJuggler
06-08-2009, 09:20 AM
Hi Superbank,

the online help within "Language/Settings" describes "... If the user's detected language is not present in the supported language list, the setup will use this language for its messages and screens."

In your case the detected language is english, and so it is used for your setup. You have to set it manually to russion. In On Startup Action use the script command "Application.SetInstallLanguage()".


-- set russian lang in On Startup Action
Application.SetInstallLanguage(25, 0);


I've made a suggestion for a language select dialog. Check out this link http://www.indigorose.com/forums/showthread.php?t=25669

Greetings,
Udo