aboutsummaryrefslogtreecommitdiff
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)
downloadwww-c77d5823f295ecb481578bfc5f29dd0bb2e279b0.tar.gz
www-c77d5823f295ecb481578bfc5f29dd0bb2e279b0.zip
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() {
34 34
35function setLang(l) 35function 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
48function get_default_lang() 49function get_default_lang()