diff options
author | tg(x) <*@tg-x.net> | 2016-12-20 22:43:40 +0100 |
---|---|---|
committer | tg(x) <*@tg-x.net> | 2016-12-20 22:43:40 +0100 |
commit | 14585cd23fb5f31a5e896260ae1ab41657f41f7c (patch) | |
tree | 9797e621497f0004e331ca0729ad804208031290 | |
parent | 65164a58bcb0817d655142d3118000325ad2249a (diff) | |
download | www-14585cd23fb5f31a5e896260ae1ab41657f41f7c.tar.gz www-14585cd23fb5f31a5e896260ae1ab41657f41f7c.zip |
setLang() fix
-rw-r--r-- | lang.js | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -34,15 +34,16 @@ function supports_html5_storage() { | |||
34 | 34 | ||
35 | function setLang(l) | 35 | function setLang(l) |
36 | { | 36 | { |
37 | // FIXME: hotfix since t10n does not work | 37 | document.body.className=l; |
38 | //document.body.className=l; | 38 | document.body.parentNode.setAttribute('lang', l); |
39 | //if (supports_html5_storage()) { | 39 | |
40 | // sessionStorage.setItem('lang', l); | 40 | if (supports_html5_storage()) { |
41 | //} | 41 | sessionStorage.setItem('lang', l); |
42 | //if (l == 'en') document.title = 'GNU Taler - Taxable Anonymous Libre Electronic Reserve'; | 42 | } |
43 | //if (l == 'de') document.title = 'GNU Taler - Taxierbare Anonyme Liberale Elektronische Reserven'; | 43 | if (l == 'en') document.title = 'GNU Taler - Taxable Anonymous Libre Electronic Reserve'; |
44 | //if (l == 'fr') document.title = 'GNU Taler - Taxable Anonyme Libre Électronique Réserve'; | 44 | if (l == 'de') document.title = 'GNU Taler - Taxierbare Anonyme Liberale Elektronische Reserven'; |
45 | //if (l == 'it') document.title = 'GNU Taler'; | 45 | if (l == 'fr') document.title = 'GNU Taler - Taxable Anonyme Libre Électronique Réserve'; |
46 | if (l == 'it') document.title = 'GNU Taler'; | ||
46 | } | 47 | } |
47 | 48 | ||
48 | function get_default_lang() | 49 | function get_default_lang() |