<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[13066] sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers: Translate: Sync gp-translation-helpers from GitHub</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://meta.trac.wordpress.org/changeset/13066">13066</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://meta.trac.wordpress.org/changeset/13066","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>amieiro</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2023-12-18 11:41:17 +0000 (Mon, 18 Dec 2023)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Translate: Sync gp-translation-helpers from GitHub</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsgptranslationhelperscssdiscussioncss">sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/css/discussion.css</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsgptranslationhelperscsseditorcss">sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/css/editor.css</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsgptranslationhelpersjseditorjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/js/editor.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsgptranslationhelperstemplatesgptemplatesoverridestranslationroweditormetaphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/templates/gp-templates-overrides/translation-row-editor-meta.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsgptranslationhelperscssdiscussioncss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/css/discussion.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/css/discussion.css 2023-12-18 05:38:49 UTC (rev 13065)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/css/discussion.css 2023-12-18 11:41:17 UTC (rev 13066)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -338,3 +338,44 @@
</span><span class="cx" style="display: block; padding: 0 10px"> margin-bottom: 0.3em;
</span><span class="cx" style="display: block; padding: 0 10px"> font-size: 1em;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+@keyframes loading-indicator {
+ 0%, 80%, 100% {
+ opacity: 0;
+ }
+ 40% {
+ opacity: 1;
+ }
+}
+
+.suggestions__loading-indicator__icon {
+ font-size: 4px;
+ margin-left: .5rem;
+ line-height: 1;
+ display: inline-block;
+ vertical-align: middle;
+}
+
+.suggestions__loading-indicator__icon span {
+ animation-duration: 1s;
+ animation-delay: 0ms;
+ animation-iteration-count: infinite;
+ animation-name: loading-indicator;
+ animation-timing-function: ease-in-out;
+ background-color: #666;
+ border-radius: 50%;
+ display: inline-block;
+ width: 1em;
+ vertical-align: top;
+ height: 1em;
+}
+
+.suggestions__loading-indicator__icon span:nth-child(2) {
+ animation-delay: 160ms;
+ margin-left: 1em;
+}
+
+.suggestions__loading-indicator__icon span:nth-child(3) {
+ animation-delay: 320ms;
+ margin-left: 1em;
+}
</ins></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsgptranslationhelperscsseditorcss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/css/editor.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/css/editor.css 2023-12-18 05:38:49 UTC (rev 13065)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/css/editor.css 2023-12-18 11:41:17 UTC (rev 13066)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5,34 +5,51 @@
</span><span class="cx" style="display: block; padding: 0 10px"> min-height: 300px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.meta.discussion, .meta.history, .meta.other-locales {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.meta.discussion, .meta.others {
</ins><span class="cx" style="display: block; padding: 0 10px"> padding: 1rem;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> .meta.discussion h6 {
</span><span class="cx" style="display: block; padding: 0 10px"> margin-block: auto;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.meta.history .translations {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.meta.others .details-history,
+.meta.others .details-other-locales {
+ margin: 1rem 0 -0.5rem 0;
+}
+
+.meta.others .summary-history,
+.meta.others .summary-other-locales {
+ font-weight: bold;
+ margin-bottom: 0.5rem;
+}
+
+.meta.others .sidebar-div-others-history-content {
+ margin-left: 0.5rem;
+}
+
+.meta.others .translations {
</ins><span class="cx" style="display: block; padding: 0 10px"> width: 100%;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.meta.history #translation-history-table thead tr th {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+.meta.others #translation-history-table thead tr th {
</ins><span class="cx" style="display: block; padding: 0 10px"> font-size: 0.9rem;
</span><span class="cx" style="display: block; padding: 0 10px"> font-weight: 500 !important;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.meta.history #legend > div {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.meta.others #legend > div {
</ins><span class="cx" style="display: block; padding: 0 10px"> margin-top: 0.5rem;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.meta.other-locales ul {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.meta.others ul {
</ins><span class="cx" style="display: block; padding: 0 10px"> list-style: none;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.meta.other-locales span.locale.unique {
- margin-right: 26px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.meta.others span.locale.unique {
+ margin-right: 0.5rem;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.meta.other-locales .other-locales .locale {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.meta.others .other-locales .locale {
</ins><span class="cx" style="display: block; padding: 0 10px"> display: inline-block;
</span><span class="cx" style="display: block; padding: 0 10px"> padding: 1px 6px 0 0;
</span><span class="cx" style="display: block; padding: 0 10px"> margin: 1px 6px 1px 0;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -43,7 +60,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> color: #fff;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.meta.other-locales .sidebar-other-locales {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.sidebar-div-others-other-locales-content > ul {
+ padding-left: 1rem;
+}
+
+.meta.others .sidebar-other-locales {
</ins><span class="cx" style="display: block; padding: 0 10px"> margin: 0.1rem .5rem;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -92,4 +113,4 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .meta.discussion .optin-message-for-each-discussion {
</span><span class="cx" style="display: block; padding: 0 10px"> padding: 0 1rem 1rem 1rem;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-}
</del><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+}
</ins></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsgptranslationhelpersjseditorjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/js/editor.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/js/editor.js 2023-12-18 05:38:49 UTC (rev 13065)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/js/editor.js 2023-12-18 11:41:17 UTC (rev 13066)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,13 +1,14 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-/* global document, $gp, $gp_translation_helpers_editor, wpApiSettings, $gp_comment_feedback_settings, $gp_editor_options, fetch, TextDecoderStream, URL, URLSearchParams, window */
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+/* global document, $gp, $gp_translation_helpers_editor, wpApiSettings, $gp_comment_feedback_settings, $gp_editor_options, fetch, TextDecoderStream, URL, URLSearchParams, window, translationHelpersCache, add_amount_to_others_tab */
</ins><span class="cx" style="display: block; padding: 0 10px"> /* eslint camelcase: "off" */
</span><span class="cx" style="display: block; padding: 0 10px"> jQuery( function( $ ) {
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Stores (caches) the content of the translation helpers, to avoid making the query another time.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type {Array}
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type {Object}
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> // eslint-disable-next-line prefer-const
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- let translationHelpersCache = [];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ window.translationHelpersCache = {};
+
</ins><span class="cx" style="display: block; padding: 0 10px"> let focusedRowId = '';
</span><span class="cx" style="display: block; padding: 0 10px"> // When a user clicks on a sidebar tab, the visible tab and div changes.
</span><span class="cx" style="display: block; padding: 0 10px"> $gp.editor.table.on( 'click', '.sidebar-tabs li', function() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -232,8 +233,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> function change_visible_div( tabId, originalId ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $( '#sidebar-div-meta-' + originalId ).hide();
</span><span class="cx" style="display: block; padding: 0 10px"> $( '#sidebar-div-discussion-' + originalId ).hide();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#sidebar-div-history-' + originalId ).hide();
- $( '#sidebar-div-other-locales-' + originalId ).hide();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#sidebar-div-others-' + originalId ).hide();
</ins><span class="cx" style="display: block; padding: 0 10px"> $( '#' + tabId ).show();
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -252,6 +252,26 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Adds the amount of elements to the "Others" tab.
+ *
+ * @param {string} sidebarTab The tab where we add the amount of elements.
+ * @param {Object} data The object where we have the data to add.
+ * @param {number} originalId The id of the original string to translate.
+ */
+ if ( typeof window.add_amount_to_others_tab === 'undefined' ) {
+ add_amount_to_others_tab = function( sidebarTab, data, originalId ) {
+ let elements = 0;
+ if ( data[ 'helper-history-' + originalId ] !== undefined ) {
+ elements += data[ 'helper-history-' + originalId ].count;
+ }
+ if ( data[ 'helper-other-locales-' + originalId ] !== undefined ) {
+ elements += data[ 'helper-other-locales-' + originalId ].count;
+ }
+ $( '[data-tab="' + sidebarTab + '"]' ).html( 'Others (' + elements + ')' );
+ };
+ }
+
+ /**
</ins><span class="cx" style="display: block; padding: 0 10px"> * Loads the content in the tabs (header tab and content) for the opened row.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param {Object} element The element that triggers the action.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -283,13 +303,19 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $( '#sidebar-div-discussion-' + originalId ).html( data[ 'helper-translation-discussion-' + originalId ].content );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> if ( data[ 'helper-history-' + originalId ] !== undefined ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '[data-tab="sidebar-tab-history-' + originalId + '"]' ).html( 'History (' + data[ 'helper-history-' + originalId ].count + ')' );
- $( '#sidebar-div-history-' + originalId ).html( data[ 'helper-history-' + originalId ].content );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#summary-history-' + originalId ).html( 'History (' + data[ 'helper-history-' + originalId ].count + ')' );
+ $( '#sidebar-div-others-history-content-' + originalId ).html( data[ 'helper-history-' + originalId ].content );
+ add_amount_to_others_tab( 'sidebar-tab-others-' + originalId, data, originalId );
+ } else {
+ $( '#sidebar-div-others-history-content-' + originalId ).html( '' );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> if ( data[ 'helper-other-locales-' + originalId ] !== undefined ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '[data-tab="sidebar-tab-other-locales-' + originalId + '"]' ).html( 'Other locales (' + data[ 'helper-other-locales-' + originalId ].count + ')' );
- $( '#sidebar-div-other-locales-' + originalId ).html( data[ 'helper-other-locales-' + originalId ].content );
- add_copy_button( '#sidebar-div-other-locales-' + originalId );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#summary-other-locales-' + originalId ).html( 'Other locales (' + data[ 'helper-other-locales-' + originalId ].count + ')' );
+ $( '#sidebar-div-others-other-locales-content-' + originalId ).html( data[ 'helper-other-locales-' + originalId ].content );
+ add_copy_button( '#sidebar-div-others-other-locales-content-' + originalId );
+ add_amount_to_others_tab( 'sidebar-tab-others-' + originalId, data, originalId );
+ } else {
+ $( '#sidebar-div-others-other-locales-content-' + originalId ).html( '' );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsgptranslationhelperstemplatesgptemplatesoverridestranslationroweditormetaphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/templates/gp-templates-overrides/translation-row-editor-meta.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/templates/gp-templates-overrides/translation-row-editor-meta.php 2023-12-18 05:38:49 UTC (rev 13065)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/templates/gp-templates-overrides/translation-row-editor-meta.php 2023-12-18 11:41:17 UTC (rev 13066)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -171,13 +171,24 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $sidebar_tabs .= '<ul class="sidebar-tabs">';
</span><span class="cx" style="display: block; padding: 0 10px"> $sidebar_tabs .= ' <li class="current tab-meta" data-tab="sidebar-tab-meta-' . $translation->row_id . '" data-row-id="' . $translation->row_id . '">Meta</li>';
</span><span class="cx" style="display: block; padding: 0 10px"> $sidebar_tabs .= ' <li class="tab-discussion" data-tab="sidebar-tab-discussion-' . $translation->row_id . '" data-row-id="' . $translation->row_id . '">Discussion <span class="count"></span></li>';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-$sidebar_tabs .= ' <li class="tab-history" data-tab="sidebar-tab-history-' . $translation->row_id . '" data-row-id="' . $translation->row_id . '">History <span class="count"></span></li>';
-$sidebar_tabs .= ' <li class="tab-other-locales" data-tab="sidebar-tab-other-locales-' . $translation->row_id . '" data-row-id="' . $translation->row_id . '">Other locales <span class="count"></span></li>';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+$sidebar_tabs .= ' <li class="tab-others" data-tab="sidebar-tab-others-' . $translation->row_id . '" data-row-id="' . $translation->row_id . '">Others <span class="count"></span></li>';
</ins><span class="cx" style="display: block; padding: 0 10px"> $sidebar_tabs .= '</ul>';
</span><span class="cx" style="display: block; padding: 0 10px"> $sidebar_tabs .= $meta_sidebar;
</span><span class="cx" style="display: block; padding: 0 10px"> $sidebar_tabs .= '<div class="meta discussion" id="sidebar-div-discussion-' . $translation->row_id . '" data-row-id="' . $translation->row_id . '" style="display: none;"></div>';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-$sidebar_tabs .= '<div class="meta history" id="sidebar-div-history-' . $translation->row_id . '" data-row-id="' . $translation->row_id . '" style="display: none;"></div>';
-$sidebar_tabs .= '<div class="meta other-locales" id="sidebar-div-other-locales-' . $translation->row_id . '" data-row-id="' . $translation->row_id . '" style="display: none;"></div>';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+$sidebar_tabs .= '<div class="meta others" id="sidebar-div-others-' . $translation->row_id . '" data-row-id="' . $translation->row_id . '" style="display: none;">';
+$sidebar_tabs .= ' <details class="details-other-locales" open="">';
+$sidebar_tabs .= ' <summary class="summary-other-locales" id="summary-other-locales-' . $translation->row_id . '">Other locales';
+$sidebar_tabs .= ' <span aria-hidden="true" class="suggestions__loading-indicator__icon"><span></span><span></span><span></span></span>';
+$sidebar_tabs .= ' </summary>';
+$sidebar_tabs .= ' <div class="sidebar-div-others-other-locales-content" id="sidebar-div-others-other-locales-content-' . $translation->row_id . '"></div>';
+$sidebar_tabs .= ' </details>';
+$sidebar_tabs .= ' <details class="details-history" open="">';
+$sidebar_tabs .= ' <summary class="summary-history" id="summary-history-' . $translation->row_id . '">History';
+$sidebar_tabs .= ' <span aria-hidden="true" class="suggestions__loading-indicator__icon"><span></span><span></span><span></span></span>';
+$sidebar_tabs .= ' </summary>';
+$sidebar_tabs .= ' <div class="sidebar-div-others-history-content" id="sidebar-div-others-history-content-' . $translation->row_id . '"></div>';
+$sidebar_tabs .= ' </details>';
+$sidebar_tabs .= '</div>'; /* meta others */
</ins><span class="cx" style="display: block; padding: 0 10px"> $sidebar_tabs .= '</nav>';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
</span></span></pre>
</div>
</div>
</body>
</html>