Browse Source

rewrite localizeLabels()

nin-v2
Simon Grim 7 years ago
parent
commit
8f94945651
  1. 10
      js/theme_option.js

10
js/theme_option.js

@ -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"));
} }

Loading…
Cancel
Save