Ivan Andreevich
6th January 2009 21:27 UTC
Lots of LangString warnings
I think I deleted an include which loads the default values for all of these, so now I am getting a lot of warnings, and the text is missing, unless I define each of these myself. Sample:
LangString "MUI_TEXT_COMPONENTS_TITLE" is not set in language table of language English
LangString "MUI_TEXT_COMPONENTS_SUBTITLE" is not set in language table of language English
LangString "MUI_INNERTEXT_COMPONENTS_DESCRIPTION_TITLE" is not set in language table of language English
Checked the Scripting Reference and the MUI readme but wasn't able to figure what the include or macro is for loading default values.
Any ideas?
kichik
6th January 2009 23:58 UTC
Make sure the macro insertion order is right. See Examples\Modern UI\*.nsi for the basic stuff. Also make sure you have MUI_LANGUAGE inserted.
Ivan Andreevich
7th January 2009 01:12 UTC
Figure it out. In the code, you must have !insertmacro MUI_LANGUAGE "English" after ALL the pages. Otherwise it gives tons of errors and doesn't fill in the language tables.
I think the documentation needs to specifically state that it must appear after the pages.
kichik
7th January 2009 06:55 UTC
It does :)
Ivan Andreevich
7th January 2009 18:06 UTC
You are right, I wasn't reading from the beginning.
The settings for the Modern UI should be inserted in the header of the script file. It's important to follow the same order as the items below.
Maybe make the IMPORTANT more visible? Capital, red? :)