Old 3rd September 2008, 10:55   #1
iamzlp
Junior Member
 
Join Date: Sep 2008
Posts: 2
How can I use my string with I18N/L10N in the welcome page?

When I use the MUI_WELCOMEPAGE_TEXT such as:

;--------------------------------
;Pages
!define MUI_WELCOMEPAGE_TEXT "${MY_STRING}"
!insertmacro MUI_PAGE_WELCOME

the Languages setion must after the Pages setion, when it before the Pages setion, it will report a lot of warning

;--------------------------------
;Languages

!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "SimpChinese"

;--------------------------------

; English
LangString MY_STRING ${LANG_ENGLISH} "Test"
LangString DESC_SecDummy ${LANG_ENGLISH} "A test section."

; Simple Chinese
LangString MY_STRING ${LANG_SIMPCHINESE} "测试"
LangString DESC_SecDummy ${LANG_SIMPCHINESE} "测试."


So how can I use the ${MY_STRING}?

Now it report:
1 warning:
unknown variable/constant "{MY_STRING}" detected, ignoring (macro:MUI_FUNCTION_WELCOMEPAGE:42)
Attached Files
File Type: nsi welcomefinish.nsi (2.3 KB, 262 views)

Last edited by iamzlp; 3rd September 2008 at 11:55.
iamzlp is offline   Reply With Quote
Old 4th September 2008, 10:40   #2
Pidgeot
Senior Member
 
Pidgeot's Avatar
 
Join Date: Jan 2002
Location: Denmark
Posts: 136
When referring to LangStrings, use $(NAME), not ${NAME}. Curly braces are used for other things.
Pidgeot is offline   Reply With Quote
Old 4th September 2008, 10:58   #3
iamzlp
Junior Member
 
Join Date: Sep 2008
Posts: 2
Thanks!

Thanks!
iamzlp 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