![]() |
MUI + Languages + Override default text
i try use simple code:
PHP Code:
i try search in forum and find that i must use !insertmacro MUI_LANGUAGE "English" before use ${LANG_RUSSIAN}. but if i move !insertmacro MUI_LANGUAGE "English" on top i get many errors. also i find information about using !insertmacro MUI_LANGUAGEFILE_STRING MUI_WELCOMEPAGE_TEXT "..." instead of !define MUI_WELCOMEPAGE_TEXT but in my versions MUI (i try 1.69 and 1.70) this macro is undefied. i don't want edit languages files and system.nsh because i need override only some string. where is my mistake? P.S. i read faq/doc and i try search answers this forum. P.P.S. changing texts in Sections work fine. |
Move:
LangString WELCOME_TEXT ${LANG_RUSSIAN} "RUSSIAN" LangString WELCOME_TEXT ${LANG_ENGLISH} "ENGLISH" to the bottom. |
incredable. it's work. i can't understand: definition WELCOME_TEXT after use... %-)
|
Language string names are always unique, the place of the definition doesn't make any difference.
It should be below the language macro in this case because ${LANG_ENGLISH}, the Enlish language ID (1033) is set when the language file is loaded. |
i have a little prob...
i tried this first with Misha v.3s code, and it worked... but i'm not able to get it started in mine PHP Code:
|
There should be a MUI_WELCOMEPAGE_TEXT setting.
|
no i don't get the box in which i can choose between the languages
|
There is a probably already a language setting in the registry, you didn't define MUI_LANGDLL_ALWAYSSHOW.
|
oh i found the problem...
.onInit have to be on the bottom of the document. at least after the welcome pages, i haven't tried... but thx for the quickie info |
| All times are GMT. The time now is 04:40. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.