mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-04 22:27: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;
|
||||
|
||||
//skip if there is no language defined
|
||||
if(typeof language === "undefined")
|
||||
return;
|
||||
|
||||
//return translation if avaiable
|
||||
if(language != null && translation != null && translation[language][str] != null)
|
||||
if(translation != null && translation[language][str] != null)
|
||||
{
|
||||
translated = translation[language][str];
|
||||
}
|
||||
|
@ -19,7 +23,7 @@ function translate(str)
|
|||
function DOMTranslate(selector, attribute)
|
||||
{
|
||||
//skip translation if its english
|
||||
if(language === "en")
|
||||
if(typeof language === "undefined")
|
||||
return;
|
||||
|
||||
//loop trough all elements
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue