PDA

View Full Version : Problem with LangString.


afuchi
24th March 2003, 18:20
Hi all.

I've forced the comparation with "1.5" in order to force the display of the string JRE_INSTALL but always is shown in Spanish. What's the problem?

Thank's in advance.
César.

kichik
24th March 2003, 19:45
From the documentation (section 4.10 (http://nsis.sourceforge.net/Docs/Chapter4.html#4.10)):

When the installer starts up it goes through these stages to select the interface language:

1. Find a perfect match between the user default language (GetUserDefaultLangID())
2. If there is no perfect match, find a primary language match
3. If no match, take the first language defined in the script
4. If $LANGUAGE has changed during .onInit, go through steps 1 to 3 with the language inside $LANGUAGE instead of the default user language.

This means the value you set in .onInit will only be set after .onInit returns. While in .onInit the installer language will be the language choosen by NSIS as the best match, next best, or the default.

Joel
24th March 2003, 20:21
I you read multilanguage example:
$NSISDIR\Examples\languages.nsi
You get more help about this.
:D