Brummelchen
29th June 2003 15:36 UTC
readout language and branch on it (strcmp)
how can i read out the language (depending on this script)
http://forums.winamp.com/showthread....hreadid=140416
and to branch on it (StrCmp $. "bla" yes no)
i need some different text here:
!insertmacro MUI_HEADER_TEXT "Choose Shortcuts" "Choose the additional shortcuts to create for xyz."
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "shortcuts.ini"
kichik
29th June 2003 15:48 UTC
The language id is saved in $LANGUAGE after .onInit. After you load a language file using LoadLanguageFile (MUI_LANGUAGE does that) you can use ${LANG_name} as the language id to compare to. For example, the language id of English is ${LANG_ENGLISH}.
Brummelchen
29th June 2003 15:54 UTC
so i have to compare a number instead a name?
StrCmp $LANGUAGE "1033" yes no
or
StrCmp $LANGUAGE "English" yes no
?
kichik
29th June 2003 15:56 UTC
You have to compare to ${LANG_name}. You can also compare to the number, but ${LANG_ENGLISH} is just defined to 1033, so it's the same thing.
Brummelchen
29th June 2003 15:59 UTC
so that is the only one:
StrCmp $LANGUAGE ${LANG_ENGLISH} yes no
(to make it very easy to me)
thx