commit c77d5823f295ecb481578bfc5f29dd0bb2e279b0 parent 70e34d47142524c00d3d41a187b5ede7750c7aab Author: Christian Grothoff <christian@grothoff.org> Date: Sun, 1 Jan 2017 17:51:31 +0100 Merge branch 'master' of git+ssh://taler.net/www Diffstat:
| M | lang.js | | | 19 | ++++++++++--------- |
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/lang.js b/lang.js @@ -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()