mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-13 08:27:51 +00:00
optimize common text containers -> that fixes some untranslatable text strings (e.g. Who To Follow)
This commit is contained in:
parent
91cc1f4182
commit
00e305e169
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user