Archive: Language loading


Language loading
It seems I'm bumping into all sorts of problems today. I'm doing the below:


VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "XXX"
VIAddVersionKey /LANG=${LANG_ENGLISH} "Comments" "Windows 2000, XP"
VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "YYY"
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "X"
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalTrademarks" "X"
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "©"
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "1.0.0"
VIAddVersionKey /LANG=${LANG_ENGLISH} "OriginalFilename" "Setup.exe"
VIProductVersion "1.0.0.0"

Upon compiler I get several messages (9 in total) as:

VIAddVersionKey: /LANG=${LANG_ENGLISH} language not loaded, using default "1033-English" (C:\XXX\YYY\Install\Install_NSIS\Setup.nsi:27)

So I then go and do:

;--------------------------------
;LANGUAGES

:!insertmacro MUI_LANGUAGE "English"
LoadLanguageFile "Data\English.nlf"

That does NOT fix those errors and creates yet new ones such as:

LangString "MUI_TEXT_WELCOME_INFO_TITLE" is not set in language table of language 1033


All in all 39 compile warnings this time......

I am doing something very foolish aren't I? I'm confusing something or missing a vital component out.

The language file is there in the Data folder as specified.

Thank you so much.


Okay got it down to 31 errrors now.

The language file is loaded but now this happens to various text captions of the installer it seems:


31 warnings:
LangString "MUI_TEXT_WELCOME_INFO_TITLE" is not set in language table of language 1033
LangString "MUI_TEXT_WELCOME_INFO_TEXT" is not set in language table of language 1033
LangString "MUI_INNERTEXT_LICENSE_BOTTOM_CHECKBOX" is not set in language table of language 1033
LangString "MUI_TEXT_LICENSE_TITLE" is not set in language table of language 1033
LangString "MUI_TEXT_LICENSE_SUBTITLE" is not set in language table of language 1033
LangString "MUI_INNERTEXT_LICENSE_TOP" is not set in language table of language 1033
LangString "MUI_TEXT_DIRECTORY_TITLE" is not set in language table of language 1033
LangString "MUI_TEXT_DIRECTORY_SUBTITLE" is not set in language table of language 1033
LangString "MUI_TEXT_INSTALLING_TITLE" is not set in language table of language 1033
LangString "MUI_TEXT_INSTALLING_SUBTITLE" is not set in language table of language 1033
LangString "MUI_TEXT_FINISH_TITLE" is not set in language table of language 1033
LangString "MUI_TEXT_FINISH_SUBTITLE" is not set in language table of language 1033
LangString "MUI_TEXT_ABORT_TITLE" is not set in language table of language 1033
LangString "MUI_TEXT_ABORT_SUBTITLE" is not set in language table of language 1033
LangString "MUI_TEXT_STARTMENU_TITLE" is not set in language table of language 1033
LangString "MUI_TEXT_STARTMENU_SUBTITLE" is not set in language table of language 1033
LangString "MUI_INNERTEXT_STARTMENU_CHECKBOX" is not set in language table of language 1033
LangString "MUI_INNERTEXT_STARTMENU_TOP" is not set in language table of language 1033
LangString "MUI_BUTTONTEXT_FINISH" is not set in language table of language 1033
LangString "MUI_TEXT_FINISH_INFO_REBOOT" is not set in language table of language 1033
LangString "MUI_TEXT_FINISH_REBOOTLATER" is not set in language table of language 1033
LangString "MUI_TEXT_FINISH_INFO_TEXT" is not set in language table of language 1033
LangString "MUI_UNTEXT_CONFIRM_TITLE" is not set in language table of language 1033
LangString "MUI_UNTEXT_CONFIRM_SUBTITLE" is not set in language table of language 1033
LangString "MUI_UNTEXT_UNINSTALLING_TITLE" is not set in language table of language 1033
LangString "MUI_UNTEXT_UNINSTALLING_SUBTITLE" is not set in language table of language 1033
LangString "MUI_UNTEXT_FINISH_TITLE" is not set in language table of language 1033
LangString "MUI_UNTEXT_FINISH_SUBTITLE" is not set in language table of language 1033
LangString "MUI_UNTEXT_ABORT_TITLE" is not set in language table of language 1033
LangString "MUI_UNTEXT_ABORT_SUBTITLE" is not set in language table of language 1033
Variable "MUI_TEXT" not referenced, wasting memory!


Fixed all the errors now except one. It turns out the order in which an installer is coded is very important.

The only error now left to which I have no idea is:
1 warning:
Variable "MUI_TEXT" not referenced, wasting memory!


You probably forgot to add component descriptions.


Originally posted by Joost Verburg
You probably forgot to add component descriptions.
I don't use components as I have turned that page off. However they are declared as below:

;--------------------------------
;DESCRIPTIONS

;**************************************************************************************************
;Language strings
;**************************************************************************************************
LangString DESC_StandardInstall ${LANG_ENGLISH} "Standard installation."

;**************************************************************************************************
;Assign language strings to sections
;**************************************************************************************************
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${StandardInstall} $(DESC_StandardInstall)
!insertmacro MUI_FUNCTION_DESCRIPTION_END

then you must not use the description code.
it only works with the components page.


Originally posted by Comm@nder21
then you must not use the description code.
it only works with the components page.
You're a star, it worked no more warnings in the compile. Thanks very much, who would of expected it was this causing the error.