Add ability to set language via URL parameter

pull/1158/head
0ip 2012-11-12 18:31:02 +01:00
parent b38f5d8f0c
commit c2253e49b6
1 changed files with 8 additions and 0 deletions

View File

@ -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()