Archive: How can I use my string in the welcome page use I18N/L10N?


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)


When referring to LangStrings, use $(NAME), not ${NAME}. Curly braces are used for other things.


Thanks!
Thanks!