Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   MessageBox Displays English Buttons when German/Japanese was chosen as Setup Language (http://forums.winamp.com/showthread.php?t=451926)

xbarns 23rd October 2017 10:27

MessageBox Displays English Buttons when German/Japanese was chosen as Setup Language
 
Hi all,

i have a problem with an Installer displaying english buttons in a MessageBox, when german (or japanese, other languages not tested) are chosen as the installers language.

http://fs5.directupload.net/images/171023/7dogfht4.png

The code is use to reproduce this issue ist as follows:

PHP Code:

Name "MUI_ABORTWARNING"
Caption "MUI_ABORTWARNING"

Unicode true
SetCompressor 
/FINAL /SOLID lzma        
OutFile MUI_ABORTWARNING
.exe

!include "MUI2.nsh"
    
!define MUI_ABORTWARNING

!insertmacro MUI_PAGE_WELCOME  

!insertmacro MUI_LANGUAGE English
!insertmacro MUI_LANGUAGE German
!insertmacro MUI_LANGUAGE Japanese

Function .onInit
    InitPluginsDir
    
!define MUI_LANGDLL_ALWAYSSHOW
    
!insertmacro MUI_LANGDLL_DISPLAY
FunctionEnd


Section 
"TEST"

SectionEnd 

This only seems to happen on Server OS (tested on 2016, 2012Rs, 2008R2) on Client OS (tested on Win10, Win 8.1) the buttons are correctly displayed in german language.

Any ideas where i could look for the solution to this? I thought maybe the Regional Settings affect this, but all settings i found where turned to german, so i tend to rule this out.

As always, any help is appreciated :)

[Edit]: NSIS is version 3.01

Thanks a lot
x

Anders 23rd October 2017 13:13

The button text comes from Windows.

NSIS does not call InitMUILanguage nor SetProcessPreferredUILanguages but I don't think they would help.

xbarns 24th October 2017 11:24

Hi Anders,

thanks for clearing that up, i suspected something like this.

x


All times are GMT. The time now is 17:43.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.