From 00e305e1698231a18e343e98f9f5ce4be5463acc Mon Sep 17 00:00:00 2001 From: Eugene Kuligin Date: Mon, 20 Apr 2015 03:36:00 +0300 Subject: [PATCH] optimize common text containers -> that fixes some untranslatable text strings (e.g. Who To Follow) --- js/interface_localization.js | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/js/interface_localization.js b/js/interface_localization.js index 5fa58c2..42d5096 100644 --- a/js/interface_localization.js +++ b/js/interface_localization.js @@ -3560,18 +3560,25 @@ polyglot.extend(wordset); // 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 var fixedLabels = [ - // page titles + + // common text containers "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 ".label", // navbar and home - "button", ".postboard-news", - ".post-area-new textarea", ".refresh-toptrends, .refresh-users, .view-all-users", - ".who-to-follow h3", ".userMenu-search-field", "a.dropdown-menu-item, a.direct-messages", ".post-interactions span", @@ -3581,27 +3588,21 @@ var fixedLabels = [ ".postboard span", // following page - ".following h2", ".mini-profile-actions span, .mini-profile-actions li", // network page - ".network h2, .network h3", ".network ul li span", ".network ul li label", ".network label", - ".network textarea, .network input, .network option", + ".network input", // login page - ".login h2, .login h3", ".login ul li span", ".module span", ".login span", ".login-local-username", ".login input", - // options page - "option", - // mobile version // ".ui-btn-text",