multiple languages
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3340 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
88de3fab4b
commit
531d8673f0
1 changed files with 5 additions and 3 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
Loads a language file for the construction of a language table. All of the language files that come with NSIS are in \L{../Contrib/Language files}{Contrib\\Language Files}
|
||||
|
||||
For ease of use LoadLanguageFile defines $\{LANG_language_file\} as the language id. Use it with \R{langstring}{LangString}, LangDLL and \R{viaddversionkey}{VIAddVersionKey}.
|
||||
After you have inserted the language file $\{LANG_langfile\} will be defined as the language id (for example, $\{LANG_ENGLISH\} will be defined as 1033). Use it with \R{langstring}{LangString}, \R{licenselangstring}{LicenseLangString}, LangDLL and \R{viaddversionkey}{VIAddVersionKey}.
|
||||
|
||||
\S2{langstring} LangString
|
||||
|
||||
|
@ -16,6 +16,8 @@ Defines a multilingual string. This means the its value will be different (or no
|
|||
|
||||
Each LangString has a name that identifies it and a value for each language used by the installer. To use a LangString you must know its name. LangStrings can be used in any runtime string in the script. To use a LangString all you need to add to the string is $(LangString_name_here) where you want the LangString to be inserted.
|
||||
|
||||
If you set the ID to 0 it will use the ID of the last inserted language file.
|
||||
|
||||
\\<b\\>Note:\\</b\\> Unlike defines that use curly braces - \{\}, multilingual strings use parenthesis - ().
|
||||
|
||||
For example, instead of:
|
||||
|
@ -37,7 +39,7 @@ Use:
|
|||
|
||||
\S2{licenselangstring} LicenseLangString
|
||||
|
||||
\c name lang_id license_path
|
||||
\c name language_id license_path
|
||||
|
||||
Does the same as \R{langstring}{LangString} only it loads the string from a text/RTF file and defines a special LangString that can be used only by \R{alicensedata}{LicenseData}.
|
||||
|
||||
|
@ -71,7 +73,7 @@ When the installer starts up it goes through these steps to select the interface
|
|||
|
||||
\S1{langdll} LangDLL Plug-in
|
||||
|
||||
The LangDLL plug-in allows you to give the user an option to choose the language of the installer. Just push the language id ($\{LANG_*\}) and its name for every language in your installer, then the number of languages pushed, the caption, and the text that tells the user to select the language, call the plug-in function named LangDialog, pop the returned value into $LANGUAGE and you're good to go. If the user clicks on the cancel button the return value will be "cancel".
|
||||
The LangDLL plug-in allows you to give the user an option to choose the language of the installer. Just push the language id ($\{LANG_langfile\}) and its name for every language in your installer, then the number of languages pushed, the caption, and the text that tells the user to select the language, call the plug-in function named LangDialog, pop the returned value into $LANGUAGE and you're good to go. If the user clicks on the cancel button the return value will be "cancel".
|
||||
|
||||
For an example of usage see \L{../Examples/languages.nsi}{languages.nsi}.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue