It looks like you're offline.
Open Library logo
additional options menu

This doc was last edited by Administrator March 16, 2009.

plugin upstream
Templates in the website are disabled now. Editing them will not have any effect on the live website.
   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
$ languages = i18n.get_languages()

$ locale = i18n.get_locale()
$ _ = i18n.get_namespace('/macros/ChangeLanguage')

<br clear="all" />
<span class="green">
<b>$_.change_language:</b>
$:Dropdown('lang', languages, onchange="changelang();", id="lang_dropdown", value=locale).render()
<span class="helplabel" style="padding-left: 6px;">[<a href="/i18n">?</a>]</span></span>


<script>
       function changelang() {
           setlang(document.getElementById("lang_dropdown").value);
       }

       function setlang(lang) {
           document.cookie = "HTTP_LANG=" + lang + "; path=/;";
           window.location.reload()
       }
</script>