diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-11-23 15:57:27 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-11-23 15:57:27 +0100 |
commit | 17947022e2ff384b2967192a836b03771a698f6e (patch) | |
tree | cf7a5837ec3a3b5dacee83baa0299233d4f73a43 | |
parent | 29050e1b2a26939f555dfe491f40e1097fb7bfde (diff) | |
download | www-17947022e2ff384b2967192a836b03771a698f6e.tar.gz www-17947022e2ff384b2967192a836b03771a698f6e.zip |
lang fix
-rw-r--r-- | lang.js | 17 | ||||
m--------- | web-common | 0 |
2 files changed, 9 insertions, 8 deletions
@@ -34,14 +34,15 @@ function supports_html5_storage() { | |||
34 | 34 | ||
35 | function setLang(l) | 35 | function setLang(l) |
36 | { | 36 | { |
37 | document.body.className=l; | 37 | // FIXME: hotfix since t10n does not work |
38 | if (supports_html5_storage()) { | 38 | //document.body.className=l; |
39 | sessionStorage.setItem('lang', l); | 39 | //if (supports_html5_storage()) { |
40 | } | 40 | // sessionStorage.setItem('lang', l); |
41 | if (l == 'en') document.title = 'GNU Taler - Taxable Anonymous Libre Electronic Reserve'; | 41 | //} |
42 | if (l == 'de') document.title = 'GNU Taler - Taxierbare Anonyme Liberale Elektronische Reserven'; | 42 | //if (l == 'en') document.title = 'GNU Taler - Taxable Anonymous Libre Electronic Reserve'; |
43 | if (l == 'fr') document.title = 'GNU Taler - Taxable Anonyme Libre Électronique Réserve'; | 43 | //if (l == 'de') document.title = 'GNU Taler - Taxierbare Anonyme Liberale Elektronische Reserven'; |
44 | if (l == 'it') document.title = 'GNU Taler'; | 44 | //if (l == 'fr') document.title = 'GNU Taler - Taxable Anonyme Libre Électronique Réserve'; |
45 | //if (l == 'it') document.title = 'GNU Taler'; | ||
45 | } | 46 | } |
46 | 47 | ||
47 | function get_default_lang() | 48 | function get_default_lang() |
diff --git a/web-common b/web-common | |||
Subproject 80f1e2708dbe4b19349244b611a6167b4b7a98c | Subproject dfa825243b718e222013d35a58b2dd8ec0ef05a | ||