casioclave
30th January 2011 20:59 UTC
InstallButtonText with MultiLanguage
Hi, I need to change text of Install button.
I use
InstallButtonText "my text"
How can I use this command for Russian Language?
I try
LangString "InstallButtonText" ${LANG_ENGLISH} "my text"
LangString "InstallButtonText" ${LANG_RUSSIAN} "my Russian text"
it doesn't work..
T.Slappy
3rd March 2011 09:05 UTC
Hi
Make sure you used !insertmacro MUI_LANGUAGE before LangString.
This is correct order:
!insertmacro MUI_LANGUAGE "English"
>!insertmacro MUI_LANGUAGE "Slovak"
>; !include "your_translation_file.nsh" ; here or:
>LangString GraphicalInstallerButtonPrint ${LANG_SLOVAK} "Vytlacit"
>LangString GraphicalInstallerButtonPrint ${LANG_ENGLISH} "Print"
This is important when you have your translation in some .nsh file and you !include it.
That !include call must be after !insertmacro MUI_LANGUAGE too!
jiake
3rd March 2011 11:51 UTC
It seems that NSIS doesn't support ${LANG_*} constants now.
You must use id instead, for example, English (US) is 1033.
LangString GraphicalInstallerButtonPrint 1033 "Print"
Afrow UK
3rd March 2011 14:54 UTC
Originally posted by jiake
It seems that NSIS doesn't support ${LANG_*} constants now.
You must use id instead, for example, English (US) is 1033.
LangString GraphicalInstallerButtonPrint 1033 "Print"
Since when? The LANG_ define is only set after you include the nlf (language file) so you need to do that before using LangString.
Stu