---+!! Language selection dropdown *To be included where a language selection is needed, for instance in the top bar or left bar.* Note: this dropdown is only shown if localization is enabled.%BR% Test: %IF{"context i18n_enabled" then='<span style="color:green; font-weight:bold;">localization is enabled</span>' else='<span style="color:red; font-weight:bold;">localization is not enabled</span>'}% %BR% Usage: <verbatim> %INCLUDE{%SYSTEMWEB%.LanguageSelector}% </verbatim> Result: %STARTINCLUDE%%IF{"context i18n_enabled" then='<form name="%INCLUDINGWEB%%INCLUDINGTOPIC%ChangeLanguage" action="%SCRIPTURLPATH{"oops"}%/%BASEWEB%/%BASETOPIC%" method="get"><select name="language" class="twikiSelect" onchange="document.%INCLUDINGWEB%%INCLUDINGTOPIC%ChangeLanguage.submit()">%LANGUAGES{format="<option $marker value=\"$langtag\">$langname</option>" selection="%LANGUAGE%" separator=" "}%</select><input type="hidden" name="template" value="oopslanguagechanged" /><noscript><input class="twikiButton" type="submit" value="%MAKETEXT{"Change language"}%" /></noscript></form>'}%%STOPINCLUDE%
This topic: TWiki
>
LanguageSelector
Topic revision: r2 - 2005-10-14 - TWikiContributor
Copyright © 1999-2025 by the contributing authors. All material from TWiki is the property of the contributing authors.
Questions, comments, or concerns?
Contact GNHLUG
.
All use of this site subject to our
Legal Notice
(includes Terms of Service).