|
|
@ -36,24 +36,14 @@ var webrtc = undefined; |
|
|
|
$('#lnk_' + page).addClass('active'); |
|
|
|
$('#lnk_' + page).addClass('active'); |
|
|
|
|
|
|
|
|
|
|
|
// Localize the strings we need
|
|
|
|
// Localize the strings we need
|
|
|
|
$.ajax({ |
|
|
|
$.getJSON(rootUrl + 'localize/' + currentLang, function(data){ |
|
|
|
url: rootUrl + 'localize/' + currentLang, |
|
|
|
|
|
|
|
type: 'GET', |
|
|
|
|
|
|
|
dataType: 'json', |
|
|
|
|
|
|
|
success: function(data) { |
|
|
|
|
|
|
|
locale = data; |
|
|
|
locale = data; |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// If current locale isn't EN, retrieve EN locale as a fallback
|
|
|
|
// If current locale isn't EN, retrieve EN locale as a fallback
|
|
|
|
if (currentLang !== 'en'){ |
|
|
|
if (currentLang !== 'en'){ |
|
|
|
$.ajax({ |
|
|
|
$.getJSON(rootUrl + 'localize/en' , function(data){ |
|
|
|
url: rootUrl + 'localize/en', |
|
|
|
|
|
|
|
type: 'GET', |
|
|
|
|
|
|
|
dataType: 'json', |
|
|
|
|
|
|
|
success: function(data) { |
|
|
|
|
|
|
|
def_locale = data; |
|
|
|
def_locale = data; |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|