Weird behavior in MUI_LANGUAGE
Hi everybody. I found out a strange thing today when I was preparing a kit for my freeware application (soon to be released on the internet, yay!). I put several languages in the installer:
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "Romanian"
!insertmacro MUI_LANGUAGE "Dutch"
!insertmacro MUI_LANGUAGE "German"
!insertmacro MUI_LANGUAGE "Swedish"
!insertmacro MUI_LANGUAGE "Danish"
However. The Romanian language DID NOT APPEAR in the dropdown list. That left me a bit amazed. So I spent about 1 hour just to see why that happens. I messed around a lot with the files in the NSIS language folders. Ultimately, I made it work. Here's what I did: I modified the Romanian.nlf file. The code page was set to 1250. I changed it to 1252 to work. That was for example the Dutch code page and when I put Romanian content in the Dutch file, it worked. Anyway, I spent a lot of time finding this out, but it's only a workaround. Any ideas why this happens? Should I specify some special codepage instructions in the installer?
By the way, in case you're interested, here's how I call that language dialogue:
# Installer functions
Function .onInit
InitPluginsDir
Push $R1
File /oname=$PLUGINSDIR\spltmp.bmp !Resources\Splash.bmp
advsplash::show 2000 500 500 -1 $PLUGINSDIR\spltmp
Pop $R1
Pop $R1
!insertmacro MUI_LANGDLL_DISPLAY
FunctionEnd
Also, maybe someone could tell me how to stop NSIS' ordering of languages as per alphabetic order. How do I sort the languages in my own way?
Thank you in advance.