rewrite localizeLabels()

This commit is contained in:
Simon Grim 2018-01-23 01:21:25 +05:00
parent 117058e09e
commit 8f94945651

View File

@ -162,10 +162,8 @@ function newLoader() { // create divs for new loader
}
function localizeLabels() {
$("label[for=tab_language]").text(polyglot.t("Language"));
$("label[for=t-2]").text(polyglot.t("Theme"));
$("label[for=t-3]").text(polyglot.t("Notifications"));
$("label[for=t-4]").text(polyglot.t("Keys"));
$("label[for=t-5]").text(polyglot.t("Appearance"));
$("label[for=t-6]").text(polyglot.t("Users"));
$('label.tabs').each(function (i, elem) {
var elem = $(elem);
elem.text(polyglot.t(elem.text()));
});
}