diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-01 17:51:31 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-01 17:51:41 +0100 |
commit | c77d5823f295ecb481578bfc5f29dd0bb2e279b0 (patch) | |
tree | 7dc8ce4a8d27b856ce74bbc29767e9c124b3bb34 | |
parent | 70e34d47142524c00d3d41a187b5ede7750c7aab (diff) | |
parent | 14585cd23fb5f31a5e896260ae1ab41657f41f7c (diff) | |
download | www-c77d5823f295ecb481578bfc5f29dd0bb2e279b0.tar.gz www-c77d5823f295ecb481578bfc5f29dd0bb2e279b0.zip |
Merge branch 'master' of git+ssh://taler.net/www
-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() |