summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Kirsch <kirschju@sec.in.tum.de>2014-11-18 19:31:59 +0100
committerJulian Kirsch <kirschju@sec.in.tum.de>2014-11-18 19:31:59 +0100
commit838f36ed2d23dcf0d7fb125eb7993823cde4d74e (patch)
tree86c91610eb8ba8b7c90017b52e9f7ab2984e8ee1
parent5c8f36018fa6cc8a100229b78cb10a7c6e976204 (diff)
downloadwww-838f36ed2d23dcf0d7fb125eb7993823cde4d74e.tar.gz
www-838f36ed2d23dcf0d7fb125eb7993823cde4d74e.tar.bz2
www-838f36ed2d23dcf0d7fb125eb7993823cde4d74e.zip
Translate title according to language preference
-rw-r--r--lang.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/lang.js b/lang.js
index 3727be6..5d4a5b2 100644
--- a/lang.js
+++ b/lang.js
@@ -28,6 +28,7 @@ function get_default_lang()
return 'en';
}
+
function loadLang()
{
l = 'null';
@@ -37,6 +38,9 @@ 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()