|
|
@ -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, |
|
|
|
locale = data; |
|
|
|
type: 'GET', |
|
|
|
|
|
|
|
dataType: 'json', |
|
|
|
|
|
|
|
success: function(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', |
|
|
|
def_locale = data; |
|
|
|
type: 'GET', |
|
|
|
|
|
|
|
dataType: 'json', |
|
|
|
|
|
|
|
success: function(data) { |
|
|
|
|
|
|
|
def_locale = data; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|