Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 17th November 2009, 13:36   #1
rzc1
Junior Member
 
Join Date: Nov 2009
Location: Germany
Posts: 2
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.

PHP Code:
# 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 is offline   Reply With Quote
Old 9th December 2009, 07:52   #2
rzc1
Junior Member
 
Join Date: Nov 2009
Location: Germany
Posts: 2
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:

PHP Code:
Auto-generated by EclipseNSIS InstallOptions Script Wizard
May 62008 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
rzc1 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump