mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Add ability to set language via URL parameter
This commit is contained in:
parent
b38f5d8f0c
commit
c2253e49b6
1 changed files with 8 additions and 0 deletions
|
@ -111,6 +111,7 @@ function getParams()
|
||||||
var IsnoColors = params["noColors"];
|
var IsnoColors = params["noColors"];
|
||||||
var rtl = params["rtl"];
|
var rtl = params["rtl"];
|
||||||
var alwaysShowChat = params["alwaysShowChat"];
|
var alwaysShowChat = params["alwaysShowChat"];
|
||||||
|
var lang = params["lang"];
|
||||||
|
|
||||||
if(IsnoColors)
|
if(IsnoColors)
|
||||||
{
|
{
|
||||||
|
@ -173,6 +174,13 @@ function getParams()
|
||||||
chat.stickToScreen();
|
chat.stickToScreen();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(lang)
|
||||||
|
{
|
||||||
|
if(lang !== "")
|
||||||
|
{
|
||||||
|
document.webL10n.setLanguage(lang);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getUrlVars()
|
function getUrlVars()
|
||||||
|
|
Loading…
Reference in a new issue