eliminate one step from the translation process by auto-adding languages to selector

pull/1/head
ansuz 8 years ago
parent 779b3914f9
commit 7b63decfee

@ -18,8 +18,17 @@ define([
$.ajax({
url: isHtml ? '/customize/BottomBar.html' : '/customize/Header.html',
success: function (ret) {
//:$('iframe').height('96%');
$('body').append(ret);
var $bar = $(ret);
$('body').append($bar);
var $sel = $bar.find('#language-selector');
Object.keys(Messages._languages).forEach(function (code) {
$sel.append($('<option>', {
value: code,
}).text(Messages._languages[code]));
});
LS.main();
Messages._applyTranslation();
}

Loading…
Cancel
Save