Browse Source

optimize common text containers -> that fixes some untranslatable text strings (e.g. Who To Follow)

master
Eugene Kuligin 10 years ago
parent
commit
00e305e169
  1. 23
      js/interface_localization.js

23
js/interface_localization.js

@ -3560,18 +3560,25 @@ polyglot.extend(wordset);
// Text from HTML and not JavaScript is selected and translated at $(document).ready // Text from HTML and not JavaScript is selected and translated at $(document).ready
// Add selectors here to translate the text and placeholders inside new UI // Add selectors here to translate the text and placeholders inside new UI
var fixedLabels = [ var fixedLabels = [
// page titles
// common text containers
"title", "title",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6",
"button",
"option",
"textarea",
// An easy way to include new items in translation is to add the "label" class // An easy way to include new items in translation is to add the "label" class
".label", ".label",
// navbar and home // navbar and home
"button",
".postboard-news", ".postboard-news",
".post-area-new textarea",
".refresh-toptrends, .refresh-users, .view-all-users", ".refresh-toptrends, .refresh-users, .view-all-users",
".who-to-follow h3",
".userMenu-search-field", ".userMenu-search-field",
"a.dropdown-menu-item, a.direct-messages", "a.dropdown-menu-item, a.direct-messages",
".post-interactions span", ".post-interactions span",
@ -3581,27 +3588,21 @@ var fixedLabels = [
".postboard span", ".postboard span",
// following page // following page
".following h2",
".mini-profile-actions span, .mini-profile-actions li", ".mini-profile-actions span, .mini-profile-actions li",
// network page // network page
".network h2, .network h3",
".network ul li span", ".network ul li span",
".network ul li label", ".network ul li label",
".network label", ".network label",
".network textarea, .network input, .network option", ".network input",
// login page // login page
".login h2, .login h3",
".login ul li span", ".login ul li span",
".module span", ".module span",
".login span", ".login span",
".login-local-username", ".login-local-username",
".login input", ".login input",
// options page
"option",
// mobile version // // mobile version //
".ui-btn-text", ".ui-btn-text",

Loading…
Cancel
Save