Skip to content
⌘ NSIS Forum Archive

Default buttons on custom page won't appear in chosen language

2 posts

rzc1#

Default buttons on custom page won't appear in chosen language

Hi all,

I have trouble with the default buttons "Next", "Back", "Cancel" on my custom pages.

My installer supports german and english. Language selection is done with langdll.

The default buttons show "Next", "Back", "Cancel" on builtin pages when I chose english as the installer language. But on my custom pages still the german texts "Weiter", "Zurück" and "Abbrechen" show up.

This happens only on custom pages. The result is that my installer is "mixed-languaged".

What do I have to do to get my custom pages in the chosen installer language?

Here is some code from my nsi file.

# Installer pages
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_STARTMENU Application $StartMenuGroup
!insertmacro MUI_PAGE_INSTFILES
Page Custom initfunction leavefunction 
!insertmacro MUI_PAGE_FINISH
...
# Installer languages
!insertmacro MUI_LANGUAGE "German" ;first language is the default language
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_RESERVEFILE_LANGDLL
...
# Installer functions
Function .onInit
    !insertmacro MUI_LANGDLL_DISPLAY
    InitPluginsDir
FunctionEnd
Function initfunction 
 ...
FunctionEnd
Function leavefunction 
 ...
FunctionEnd 
Every idea is welcome
rzc1
rzc1#
Hi,

I finally found the reason for the button texts only to appear in german.

The custom pages where created using the graphical editor from the Eclipse NSIS plugin. The editor runs on a system with a german Windows installed and added the following lines automatically to every ini file:

; Auto-generated by EclipseNSIS InstallOptions Script Wizard
; May 6, 2008 2:44:14 PM
[Settings]
NumFields=7
CancelButtonText=Abbrechen
NextButtonText=Weiter
BackButtonText=Zurück 
After removing the "CancelButtonText", "NextButtonText" and "BackButtonText" lines the installer now uses the os language depending texts for the buttons.


rzc1