Old 6th January 2009, 20:27   #1
Ivan Andreevich
Junior Member
 
Join Date: Nov 2003
Location: Vancouver, BC
Posts: 48
Question 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:

code:
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?
Ivan Andreevich is offline   Reply With Quote
Old 6th January 2009, 22:58   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 7th January 2009, 00:12   #3
Ivan Andreevich
Junior Member
 
Join Date: Nov 2003
Location: Vancouver, BC
Posts: 48
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.
Ivan Andreevich is offline   Reply With Quote
Old 7th January 2009, 05:55   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
It does

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 7th January 2009, 17:06   #5
Ivan Andreevich
Junior Member
 
Join Date: Nov 2003
Location: Vancouver, BC
Posts: 48
You are right, I wasn't reading from the beginning.

Quote:
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?
Ivan Andreevich is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump