language strings, BringToFront

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3373 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
joostverburg 2004-01-08 16:45:10 +00:00
parent 5c98fc6db9
commit 66151af376
2 changed files with 12 additions and 13 deletions

View file

@ -14,22 +14,19 @@ After you have inserted the language file $\{LANG_langfile\} will be defined as
Defines a multilingual string. This means the its value will be different (or not, it's up to you) for every language. It allows you to easily make your installer multilingual without the need to add massive switches to the script.
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.
Each language string has a name that identifies it and a value for each language used by the installer. They can be used in any runtime string in the script. To use a language string 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 last used language by LangString or \R{loadlanguagefile}{LoadLanguageFile}.
\\<b\\>Notes:\\</b\\>
\\<b\\>Note:\\</b\\> Unlike defines that use curly braces - \{\}, multilingual strings use parenthesis - ().
\b Unlike defines that use curly braces - \{\}, language strings use parenthesis - ().
For example, instead of:
\b If you change the langauge in the .onInit function, note that language strings in .onInit will still use the detected language based on the user's default Windows language, because the language is initialized after .onInit.
\c StrCmp $LANGUAGE ${LANG_ENGLISH} 0 +2
\c MessageBox MB_OK "English message"
\c StrCmp $LANGUAGE ${LANG_FRENCH} 0 +2
\c MessageBox MB_OK "French message"
\c StrCmp $LANGUAGE ${LANG_KOREAN} 0 +2
\c MessageBox MB_OK "Korean message"
\b Always set langauge strings for every language in your script.
Use:
\b If you set the language ID to 0 the last used language by LangString or \R{loadlanguagefile}{LoadLanguageFile} will be used.
\\<b\\>Example of usage:\\</b\\>
\c LangString message ${LANG_ENGLISH} "English message"
\c LangString message ${LANG_FRENCH} "French message"
@ -63,7 +60,7 @@ When the installer starts up it goes through these steps to select the interface
\n Get user's default Windows language
\n Find a perfect match for the default langauge
\n Find a perfect match for the langauge
\n If there is no perfect match, find a primary language match

View file

@ -2,7 +2,9 @@
\S2{BringToFront} BringToFront
Makes the installer window visible and brings it to the top of the window list (i.e. if a command was executed that shows itself in front of the installer, a BringToFront would bring the installer back in focus).
Makes the installer window visible and brings it to the top of the window list. If an application was executed that shows itself in front of the installer, a BringToFront would bring the installer back in focus.
Recent Windows versions restrict the setting of foreground windows. If the user if working with another application during installation, the user may be notifed using a different method.
\S2{createfont} CreateFont