Archive: How to move LangString's in header


How to move LangString's in header
Hello. I try to move all LangString definitions in a header file. And I have a following problem. When I define LangString in main string, all works fine:

LangString corefiles ${LANG_ENGLISH} "Core Files (Required)"
LangString corefiles ${LANG_RUSSIAN} "some russian text"

Section "$(corefiles)"
SectionIn RO
...
SectionEnd

But when I move this LangStrings to external "languages.nsh" and include it to the main script, strange effect apperas. This section does not appear in the setup (hides). Additionally, result depends on lines order in "languages.nsh" (when choosing English languages, section appears, but with Russian title)

Many thanks!


PLease make sure your LoadLanguageFiel lines are before the LangString lines. Include your "languages.nsh" file after calling the LoadLanguageFile or the MUI_LANGUAGE macro if using Modern UI. The LANG_ defines are not defined until LoadLanguageFile is called (or indirectly via MUI_LANGUAGE).


The LANG_ defines are not defined until LoadLanguageFile is called (or indirectly via MUI_LANGUAGE).
This is a point. Big thanks, saivert! Now all worked well. Thanks again.

Appreciate it.