Skip to content
⌘ NSIS Forum Archive

InstallButtonText with MultiLanguage

4 posts

casioclave#

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#
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#
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#
Originally Posted by jiake View Post
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