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.
Test: localization is enabled



%STARTSECTION{"selector"}%<form 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="this.form.submit()">
      <option value='default'>%MAKETEXT{"Default"}%</option>
         format="<option $marker value='$langtag'>$langname</option>"
         separator=" "
    <input type="hidden" name="template" value="oopslanguagechanged" />
        <input class="foswikiButton" type="submit" value="%MAKETEXT{"Change language"}%" />
Topic revision: r1 - 27 Feb 2018, UnknownUser
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback