mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 06:37:10 -04:00
Fixed english language
This commit is contained in:
parent
d23984f028
commit
74153484aa
1 changed files with 6 additions and 2 deletions
|
@ -3,8 +3,12 @@ function translate(str)
|
||||||
{
|
{
|
||||||
var translated = str;
|
var translated = str;
|
||||||
|
|
||||||
|
//skip if there is no language defined
|
||||||
|
if(typeof language === "undefined")
|
||||||
|
return;
|
||||||
|
|
||||||
//return translation if avaiable
|
//return translation if avaiable
|
||||||
if(language != null && translation != null && translation[language][str] != null)
|
if(translation != null && translation[language][str] != null)
|
||||||
{
|
{
|
||||||
translated = translation[language][str];
|
translated = translation[language][str];
|
||||||
}
|
}
|
||||||
|
@ -19,7 +23,7 @@ function translate(str)
|
||||||
function DOMTranslate(selector, attribute)
|
function DOMTranslate(selector, attribute)
|
||||||
{
|
{
|
||||||
//skip translation if its english
|
//skip translation if its english
|
||||||
if(language === "en")
|
if(typeof language === "undefined")
|
||||||
return;
|
return;
|
||||||
|
|
||||||
//loop trough all elements
|
//loop trough all elements
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue