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() { function localizeLabels() {
$("label[for=tab_language]").text(polyglot.t("Language")); $('label.tabs').each(function (i, elem) {
$("label[for=t-2]").text(polyglot.t("Theme")); var elem = $(elem);
$("label[for=t-3]").text(polyglot.t("Notifications")); elem.text(polyglot.t(elem.text()));
$("label[for=t-4]").text(polyglot.t("Keys")); });
$("label[for=t-5]").text(polyglot.t("Appearance"));
$("label[for=t-6]").text(polyglot.t("Users"));
} }