summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-01-01 17:51:31 +0100
committerChristian Grothoff <christian@grothoff.org>2017-01-01 17:51:41 +0100
commitc77d5823f295ecb481578bfc5f29dd0bb2e279b0 (patch)
tree7dc8ce4a8d27b856ce74bbc29767e9c124b3bb34
parent70e34d47142524c00d3d41a187b5ede7750c7aab (diff)
parent14585cd23fb5f31a5e896260ae1ab41657f41f7c (diff)
Merge branch 'master' of git+ssh://taler.net/www
-rw-r--r--lang.js19
1 files changed, 10 insertions, 9 deletions
diff --git a/lang.js b/lang.js
index fe08fde2..24faa9f7 100644
--- 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()