summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Kirsch <kirschju@sec.in.tum.de>2014-11-18 19:33:08 +0100
committerJulian Kirsch <kirschju@sec.in.tum.de>2014-11-18 19:33:08 +0100
commite182d80dff464fa2068e6f513f6815ff36673cba (patch)
treed5e6511414f093413ba0f4ed743565a76e2175ff
parent838f36ed2d23dcf0d7fb125eb7993823cde4d74e (diff)
downloadwww-e182d80dff464fa2068e6f513f6815ff36673cba.tar.gz
www-e182d80dff464fa2068e6f513f6815ff36673cba.tar.bz2
www-e182d80dff464fa2068e6f513f6815ff36673cba.zip
Translate title also when changing languages
-rw-r--r--lang.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/lang.js b/lang.js
index 5d4a5b2..030093e 100644
--- a/lang.js
+++ b/lang.js
@@ -12,6 +12,8 @@ function setLang(l)
if (supports_html5_storage()) {
sessionStorage.setItem('lang', l);
}
+ if (l == 'de') document.title = 'Taler - Taxierbare Anonyme Liberale Elektronische Reserven';
+ if (l == 'fr') document.title = 'Taler - Taxable Anonyme Libre Électronique Réserve';
}
function get_default_lang()
@@ -38,9 +40,6 @@ function loadLang()
if (l == 'null') l = get_default_lang();
setLang(l);
-
- if (l == 'de') document.title = 'Taler - Taxierbare Anonyme Liberale Elektronische Reserven';
- if (l == 'fr') document.title = 'Taler - Taxable Anonyme Libre Électronique Réserve';
}
function activate_menu()