summaryrefslogtreecommitdiff
path: root/src/static/js
diff options
context:
space:
mode:
author0ip <me@factor.cc>2012-11-12 18:31:02 +0100
committer0ip <me@factor.cc>2012-11-12 18:31:02 +0100
commitc2253e49b61019f899cdad8ec9d1037917996bcb (patch)
tree77f19977125bd584e2cd72049a65d3160f1cc6d5 /src/static/js
parentb38f5d8f0c82e2af8df403603bf477b56e3243ad (diff)
downloadetherpad-lite-c2253e49b61019f899cdad8ec9d1037917996bcb.zip
Add ability to set language via URL parameter
Diffstat (limited to 'src/static/js')
-rw-r--r--src/static/js/pad.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/static/js/pad.js b/src/static/js/pad.js
index a07b29b5..fb1814b9 100644
--- a/src/static/js/pad.js
+++ b/src/static/js/pad.js
@@ -111,6 +111,7 @@ function getParams()
var IsnoColors = params["noColors"];
var rtl = params["rtl"];
var alwaysShowChat = params["alwaysShowChat"];
+ var lang = params["lang"];
if(IsnoColors)
{
@@ -173,6 +174,13 @@ function getParams()
chat.stickToScreen();
}
}
+ if(lang)
+ {
+ if(lang !== "")
+ {
+ document.webL10n.setLanguage(lang);
+ }
+ }
}
function getUrlVars()