Archive: Language not loaded after calling MUI_LANGDLL_DISPLAY


Language not loaded after calling MUI_LANGDLL_DISPLAY
  Hi All,

i have problem when using multi language.
i have 2 language header files (english and Japanese)
each language file have this string
LangString errorMessage ${LANG_ENGLISH} "Error English"
LangString errorMessage ${LANG_JAPANESE} "Error Japanese"

after the language selection. i want to show the specified error message. but i got this warning and when run the installer, i got an empty error message

LangString "errorMessage" is not set in language table of language English
LangString "errorMessage" is not set in language table of language Japanese

here my nsis code.



"Japanese"

>!include "LangJapanese.nsh"

>!insertmacro MUI_LANGUAGE "English"
>!include "LangEnglish.nsh"

>Function .onInit
SetOverwrite try
!insertmacro MUI_LANGDLL_DISPLAY
MessageBox MB_OK
|MB_ICONEXCLAMATION $(errorMessage)

>FunctionEnd
>
2. how to change the sequence of language selection? i want english will show after japanese.

!include "LangJapanese.nsh"
!insertmacro MUI_LANGUAGE "Japanese"

!include "LangEnglish.nsh"
!insertmacro MUI_LANGUAGE "English"


Hi Jiake,

thank you very much for your help. It solved the problem.
Btw, do you know how to change the language selection sequence?
i want to show japanese text first before English.


The first defined language is default.
So if you want to use Japanese define it as the very first language.
But English has a special place between languages, there is something in the code probably...

look also here: http://forums.winamp.com/showthread.php?p=2719750


Hi All,

i facing a strange problem. previously the code above can work in my pc.
and now i try to recompile again my nsis code. and suddenly the error message prompt is an english language. no matter if you choose japanese in language selection. it still showing english.

attach is my sample script. any one facing this problem before? how to solve it?
thank you very much for your help.


Visit this topic: http://forums.winamp.com/showthread....argetMinimalOS

I assume you need to specify TargetMinimalOS 5.0 or more to create fully compatible Unicode installers.
But this feature is not supported in version 2.46, there are a lot of problems with it...

Anyway I compiled your script in Non-Unicode mode and I found out the MUI_LANGDLL_DISPLAY is not shown at all...
I suppose there is an unknown error in MUI2 and there is no solution for it at this time.

I advise you to use only Japanese language....
If you need two installers just create one for English and one for Japanese.