You are here:
BACCHUS Wiki
>
System Web
>
ReferenceManual
>
UserDocumentationCategory
>
TimeSpecifications
>
LanguageSelector
(revision 1) (raw view)
---+!! 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 class="tml"> %INCLUDE{"%SYSTEMWEB%.LanguageSelector"}% </verbatim> Result: %STARTINCLUDE%%IF{ "context i18n_enabled" then="$percentINCLUDE{\"%TOPIC%\" section=\"selector\"}$percent" }%%STOPINCLUDE% <!-- %JQREQUIRE{"chili"}% <verbatim class="tml"> %STARTSECTION{"selector"}%<form name="changeLanguage"\ action="%SCRIPTURLPATH{"oops"}%/%BASEWEB%/%BASETOPIC%" method="get"> <input type="hidden" name="redirectto" value="%SCRIPTURLPATH{"view"}%/%BASEWEB%/%BASETOPIC%?%QUERYPARAMS{encoding="url" separator=";"}%" /> <select name="language" class="foswikiSelect"\ onchange="document.changeLanguage.submit()"> %LANGUAGES{ format="<option $marker value=\"$langtag\">$langname</option>" selection="%LANGUAGE%" separator=" " marker="selected=\"selected\"" }%</select> <input type="hidden" name="template" value="oopslanguagechanged" /> <noscript> <input class="foswikiButton" type="submit"\ value="%MAKETEXT{"Change language"}%" /> </noscript> </form>%ENDSECTION{"selector"}% </verbatim> -->
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r1 - 19 Sep 2010,
ProjectContributor
System
Log In
Toolbox
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
User Reference
BeginnersStartHere
TextFormattingRules
Macros
FormattedSearch
QuerySearch
DocumentGraphics
SkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
AdminToolsCategory
InterWikis
ManagingWebs
SiteTools
DefaultPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Copyright &© by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding BACCHUS Wiki?
Send feedback