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.tar.bz2 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() { function setLang(l) { - // FIXME: hotfix since t10n does not work - //document.body.className=l; - //if (supports_html5_storage()) { - // sessionStorage.setItem('lang', l); - //} - //if (l == 'en') document.title = 'GNU Taler - Taxable Anonymous Libre Electronic Reserve'; - //if (l == 'de') document.title = 'GNU Taler - Taxierbare Anonyme Liberale Elektronische Reserven'; - //if (l == 'fr') document.title = 'GNU Taler - Taxable Anonyme Libre Électronique Réserve'; - //if (l == 'it') document.title = 'GNU Taler'; + document.body.className=l; + document.body.parentNode.setAttribute('lang', l); + + if (supports_html5_storage()) { + sessionStorage.setItem('lang', l); + } + if (l == 'en') document.title = 'GNU Taler - Taxable Anonymous Libre Electronic Reserve'; + if (l == 'de') document.title = 'GNU Taler - Taxierbare Anonyme Liberale Elektronische Reserven'; + if (l == 'fr') document.title = 'GNU Taler - Taxable Anonyme Libre Électronique Réserve'; + if (l == 'it') document.title = 'GNU Taler'; } function get_default_lang() |