<!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>[11042] sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates: Translate: Add preview of originals and translations with plurals in translations table.</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/11042">11042</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/11042","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>ocean90</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2021-06-20 17:16:02 +0000 (Sun, 20 Jun 2021)</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: Add preview of originals and translations with plurals in translations table.
Also increase font size and improve color contrast for the table.
Fixes <a href="http://meta.trac.wordpress.org/ticket/5767">#5767</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporggpcustomizationstemplatesstylecss">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/style.css</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporggpcustomizationstemplatestranslationrowpreviewphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/translation-row-preview.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporggpcustomizationstemplatesstylecss"></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/wporg-gp-customizations/templates/style.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/wporg-gp-customizations/templates/style.css 2021-06-20 16:35:22 UTC (rev 11041)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/style.css 2021-06-20 17:16:02 UTC (rev 11042)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -7,7 +7,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> .gp-content,
</span><span class="cx" style="display: block; padding: 0 10px"> .gp-content textarea,
</span><span class="cx" style="display: block; padding: 0 10px"> .gp-content input {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- color: #191e23;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ color: #1e1e1e;
</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"> .site-header {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -359,10 +359,35 @@
</span><span class="cx" style="display: block; padding: 0 10px"> display: table-row !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">-table.translations td.translation li {
- border-bottom: 1px dotted #e2e4e7;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+table.translations td.original ul {
+ margin: 0;
+ padding: 0;
+ list-style-type: none;
</ins><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">+table.translations td.original ul li,
+table.translations td.translation ul li {
+ padding-bottom: .2em;
+ border-bottom: 1px dotted #72777c;
+}
+
+table.translations td.original li:last-child,
+table.translations td.translation li:last-child {
+ padding-bottom: 0;
+ border-bottom: none;
+}
+
+table.translations td.original small,
+table.translations td.translation small {
+ color: #293139;
+ font-size: 12px;
+}
+
+table.translations td.original ul:not(:last-child),
+table.translations td.translation ul:not(:last-child) {
+ margin-bottom: .2em;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> table.translations thead th,
</span><span class="cx" style="display: block; padding: 0 10px"> table.translations tfoot th,
</span><span class="cx" style="display: block; padding: 0 10px"> table.translation-sets thead th,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -370,15 +395,26 @@
</span><span class="cx" style="display: block; padding: 0 10px"> table.glossary thead th,
</span><span class="cx" style="display: block; padding: 0 10px"> table.locale-sub-projects thead th,
</span><span class="cx" style="display: block; padding: 0 10px"> table.locales thead th {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- background-color: #72777c;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ background-color: #808286;
</ins><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><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+table.translations thead th:not(:last-child),
+table.translations tfoot th:not(:last-child),
+table.translation-sets thead th:not(:last-child),
+table.translations tfoot th:not(:last-child),
+table.glossary thead th:not(:last-child),
+table.locale-sub-projects thead th:not(:last-child),
+table.locales thead th:not(:last-child) {
+ border-right-color: #434648;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> table.translations,
</span><span class="cx" style="display: block; padding: 0 10px"> table.translation-sets,
</span><span class="cx" style="display: block; padding: 0 10px"> table.glossary,
</span><span class="cx" style="display: block; padding: 0 10px"> table.locale-sub-projects {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- font-size: 100%;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ font-size: 15px;
+ line-height: 1.6;
</ins><span class="cx" style="display: block; padding: 0 10px"> border-spacing: 0;
</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">@@ -393,8 +429,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> table.locale-sub-projects th,
</span><span class="cx" style="display: block; padding: 0 10px"> table.locale-sub-projects td {
</span><span class="cx" style="display: block; padding: 0 10px"> border: 0;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- border-bottom: 1px solid #e2e4e7;
- border-right: 1px solid #e2e4e7;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ border-bottom: 1px solid #72777c;
+ border-right: 1px solid #72777c;
</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"> table.translations td:first-child,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -407,13 +443,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> table.glossary td:first-child,
</span><span class="cx" style="display: block; padding: 0 10px"> table.locale-sub-projects th:first-child,
</span><span class="cx" style="display: block; padding: 0 10px"> table.locale-sub-projects td:first-child {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- border-left: 1px solid #e2e4e7;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ border-left: 1px solid #72777c;
</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"> table.translations tr:nth-child(4n+3),
</span><span class="cx" style="display: block; padding: 0 10px"> .translation-sets tr,
</span><span class="cx" style="display: block; padding: 0 10px"> .locales tr {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- background-color: #f9f9f9;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ background-color: #f6f7f7;
</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"> .translations tr.preview:hover,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -425,6 +461,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> background-color: #e5f5fa;
</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">+#legend .box {
+ border-color: #72777c;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> table.translations tr.preview.status-current,
</span><span class="cx" style="display: block; padding: 0 10px"> #legend .status-current {
</span><span class="cx" style="display: block; padding: 0 10px"> background-color: #b5e1b9;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -494,7 +534,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .editor .meta {
</span><span class="cx" style="display: block; padding: 0 10px"> background: #fff;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- border: 1px solid #e2e4e7;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ border: 1px solid #72777c;
</ins><span class="cx" style="display: block; padding: 0 10px"> font-size: 13px;
</span><span class="cx" style="display: block; padding: 0 10px"> margin: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> padding: 5px 10px;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -505,7 +545,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .editor .meta h3 {
</span><span class="cx" style="display: block; padding: 0 10px"> text-align: center;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- border-bottom: 1px solid #e2e4e7;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ border-bottom: 1px solid #72777c;
</ins><span class="cx" style="display: block; padding: 0 10px"> margin-bottom: 15px;
</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">@@ -588,9 +628,20 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> span.translation-text,
</span><span class="cx" style="display: block; padding: 0 10px"> span.original-text {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
</ins><span class="cx" style="display: block; padding: 0 10px"> white-space: pre-wrap;
</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">+
+.glossary-word {
+ border: 0;
+ text-decoration: underline;
+ text-decoration-style: dashed;
+ text-underline-offset: 2px;
+ text-decoration-skip-ink: none;
+ text-decoration-thickness: 1px;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> .ui-tooltip {
</span><span class="cx" style="display: block; padding: 0 10px"> background: #fff;
</span><span class="cx" style="display: block; padding: 0 10px"> border: 1px solid #ccc;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -903,7 +954,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> margin-top: 20px;
</span><span class="cx" style="display: block; padding: 0 10px"> padding: 10px 20px;
</span><span class="cx" style="display: block; padding: 0 10px"> color: #006799;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- border-left: 1px solid #e2e4e7;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ border-left: 1px solid #72777c;
</ins><span class="cx" style="display: block; padding: 0 10px"> text-align: center;
</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">@@ -1072,7 +1123,7 @@
</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"> .projects .project-status > div:not(:first-child) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- border-left: 1px solid #e2e4e7;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ border-left: 1px solid #72777c;
</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"> @media screen and (max-width: 500px) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1206,7 +1257,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> font-weight: 600;
</span><span class="cx" style="display: block; padding: 0 10px"> color: #509040;
</span><span class="cx" style="display: block; padding: 0 10px"> padding: 10px 0 10px 15px;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- border-left: 1px solid #e2e4e7;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ border-left: 1px solid #72777c;
</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"> .project-box .project-box-footer {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1277,7 +1328,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> width: 20px;
</span><span class="cx" style="display: block; padding: 0 10px"> height: 20px;
</span><span class="cx" style="display: block; padding: 0 10px"> font: 20px/1 "dashicons";
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- border-left: 1px solid #e2e4e7;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ border-left: 1px solid #72777c;
</ins><span class="cx" style="display: block; padding: 0 10px"> padding: 5px 0 5px 12px;
</span><span class="cx" style="display: block; padding: 0 10px"> box-shadow: inset 1px 0 0 #fff;
</span><span class="cx" style="display: block; padding: 0 10px"> -webkit-font-smoothing: antialiased;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1590,7 +1641,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> .sort-bar {
</span><span class="cx" style="display: block; padding: 0 10px"> float: right;
</span><span class="cx" style="display: block; padding: 0 10px"> margin: -30px 0 5px 5px;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- background-color: #e2e4e7;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ background-color: #72777c;
</ins><span class="cx" style="display: block; padding: 0 10px"> padding: 5px;
</span><span class="cx" style="display: block; padding: 0 10px"> border: 1px solid #dfdfdf;
</span><span class="cx" style="display: block; padding: 0 10px"> border-top: none;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1912,7 +1963,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .locale-project-contributors-table th {
</span><span class="cx" style="display: block; padding: 0 10px"> font-weight: bold;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- border-bottom: 1px solid #e2e4e7;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ border-bottom: 1px solid #72777c;
</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"> .locale-project-contributors-table th.contributor-stats {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1965,7 +2016,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .locale-project-contributors-table tbody td {
</span><span class="cx" style="display: block; padding: 0 10px"> padding: 10px 0;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- border-bottom: 1px solid #e2e4e7;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ border-bottom: 1px solid #72777c;
</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"> .locale-project-contributors-table tbody tr:last-child td {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2112,7 +2163,7 @@
</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"> .consistency-table tr {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- border-bottom: 1px solid #e2e4e7;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ border-bottom: 1px solid #72777c;
</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"> .consistency-table tr.new-translation {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2131,7 +2182,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> padding: 20px 0 10px;
</span><span class="cx" style="display: block; padding: 0 10px"> background: #fff;
</span><span class="cx" style="display: block; padding: 0 10px"> text-align: left;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- box-shadow: 0 -1px 0 #e2e4e7, 0 3px 0 #e2e4e7;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ box-shadow: 0 -1px 0 #72777c, 0 3px 0 #72777c;
</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"> @media screen and (min-width: 600px) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2290,9 +2341,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> width: 100%;
</span><span class="cx" style="display: block; padding: 0 10px"> border: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> background: #fff;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- color: #191e23;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ color: #1e1e1e;
</ins><span class="cx" style="display: block; padding: 0 10px"> outline: none;
</span><span class="cx" style="display: block; padding: 0 10px"> padding: 15px 0;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
</ins><span class="cx" style="display: block; padding: 0 10px"> font-size: 16px;
</span><span class="cx" style="display: block; padding: 0 10px"> resize: vertical;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2305,6 +2357,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> .editor .original {
</span><span class="cx" style="display: block; padding: 0 10px"> max-width: 100%;
</span><span class="cx" style="display: block; padding: 0 10px"> font-weight: normal;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
</ins><span class="cx" style="display: block; padding: 0 10px"> font-size: 15px;
</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">@@ -2321,6 +2374,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> table.translations tr.editor td {
</span><span class="cx" style="display: block; padding: 0 10px"> padding: 0;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ border-bottom-width: 2px;
+ border-top: 1px solid #72777c;
</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"> @media screen and (min-width: 700px) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2336,7 +2391,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .editor-panel__left {
</span><span class="cx" style="display: block; padding: 0 10px"> flex: 1;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- border-bottom: 3px solid #e2e4e7;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ border-bottom: 1px solid #72777c;
</ins><span class="cx" style="display: block; padding: 0 10px"> min-width: 1%;
</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">@@ -2343,7 +2398,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> @media screen and (min-width: 700px) {
</span><span class="cx" style="display: block; padding: 0 10px"> .editor-panel__left {
</span><span class="cx" style="display: block; padding: 0 10px"> border-bottom: 0;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- border-right: 3px solid #e2e4e7;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ border-right: 1px solid #72777c;
</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 class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2356,7 +2411,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> display: flex;
</span><span class="cx" style="display: block; padding: 0 10px"> align-items: center;
</span><span class="cx" style="display: block; padding: 0 10px"> justify-content: flex-end;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- border-bottom: 1px solid #e2e4e7;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ border-bottom: 1px solid #72777c;
</ins><span class="cx" style="display: block; padding: 0 10px"> background-color: #f3f4f5;
</span><span class="cx" style="display: block; padding: 0 10px"> min-height: 40px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2398,7 +2453,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> font-weight: 400;
</span><span class="cx" style="display: block; padding: 0 10px"> letter-spacing: 1px;
</span><span class="cx" style="display: block; padding: 0 10px"> text-transform: uppercase;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- color: #191e23;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ color: #1e1e1e;
</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"> .panel-header__bubble {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2454,7 +2509,7 @@
</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"> .panel-header-actions button:hover {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- background: #e2e4e7;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ background: #bdbdbd;
</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"> table.translations tbody > tr:first-child + tr .panel-header-actions__previous,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2497,7 +2552,7 @@
</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"> .panel-content summary:focus {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- color: #191e23;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ color: #1e1e1e;
</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"> .panel-content details[open] summary {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2521,7 +2576,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .source-details {
</span><span class="cx" style="display: block; padding: 0 10px"> padding: 0 10px;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- font-size: 13px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ font-size: 14px;
</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"> .source-details summary {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2546,7 +2601,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> margin: 15px 0;
</span><span class="cx" style="display: block; padding: 0 10px"> border-top: 1px solid;
</span><span class="cx" style="display: block; padding: 0 10px"> border-bottom: 1px solid;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- border-color: #e2e4e7;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ border-color: #72777c;
</ins><span class="cx" style="display: block; padding: 0 10px"> background: #fff;
</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">@@ -2567,7 +2622,7 @@
</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"> .translation-form-wrapper {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- border-bottom: 1px solid #e2e4e7;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ border-bottom: 1px solid #72777c;
</ins><span class="cx" style="display: block; padding: 0 10px"> margin-left: -10px;
</span><span class="cx" style="display: block; padding: 0 10px"> margin-right: -10px;
</span><span class="cx" style="display: block; padding: 0 10px"> padding: 0 10px;
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporggpcustomizationstemplatestranslationrowpreviewphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/translation-row-preview.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/wporg-gp-customizations/templates/translation-row-preview.php (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/translation-row-preview.php 2021-06-20 17:16:02 UTC (rev 11042)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,118 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+/**
+ * Template for the preview part of a single translation row in a translation set display
+ */
+
+$priority_char = array(
+ '-2' => '×',
+ '-1' => '↓',
+ '0' => '',
+ '1' => '↑',
+);
+
+?>
+
+<tr class="preview <?php gp_translation_row_classes( $translation ); ?>" id="preview-<?php echo esc_attr( $translation->row_id ); ?>" row="<?php echo esc_attr( $translation->row_id ); ?>">
+ <?php if ( $can_approve_translation ) : ?>
+ <th scope="row" class="checkbox"><input type="checkbox" name="selected-row[]"/></th>
+ <?php elseif ( $can_approve ) : ?>
+ <th scope="row"></th>
+ <?php endif; ?>
+ <?php /* translators: %s: Priority of original */ ?>
+ <td class="priority" title="<?php echo esc_attr( sprintf( __( 'Priority: %s', 'glotpress' ), gp_array_get( GP::$original->get_static( 'priorities' ), $translation->priority ) ) ); ?>">
+ <?php
+ // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+ echo $priority_char[ $translation->priority ];
+ ?>
+ </td>
+ <td class="original">
+ <?php
+ if ( ! $translation->plural ) :
+ ?>
+ <span class="original-text"><?php echo prepare_original( $translation_singular ); ?></span>
+ <?php
+ else :
+ $translation_plural = isset( $translation->plural_glossary_markup ) ? $translation->plural_glossary_markup : esc_translation( $translation->plural );
+ ?>
+ <ul>
+ <li><small>Singular:</small><br><span class="original-text"><?php echo prepare_original( $translation_singular ); ?></span></li>
+ <li><small>Plural:</small><br><span class="original-text"><?php echo prepare_original( $translation_plural ); ?></span></li>
+ </ul>
+ <?php
+ endif;
+
+ if ( $translation->context ) :
+ ?>
+ <span class="context bubble"><?php echo esc_html( $translation->context ); ?></span>
+ <?php
+ endif;
+ ?>
+ </td>
+ <td class="translation foreign-text">
+ <?php
+ if ( $can_edit ) {
+ $edit_text = __( 'Double-click to add', 'glotpress' );
+ } elseif ( is_user_logged_in() ) {
+ $edit_text = __( 'You are not allowed to add a translation.', 'glotpress' );
+ } else {
+ /* translators: %s: url */
+ $edit_text = sprintf( __( 'You <a href="%s">have to log in</a> to add a translation.', 'glotpress' ), esc_url( wp_login_url( gp_url_current() ) ) );
+ }
+
+ $missing_text = "<span class='missing'>$edit_text</span>";
+ if ( ! count( array_filter( $translation->translations, 'gp_is_not_null' ) ) ) :
+ // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+ echo $missing_text;
+ elseif ( ! $translation->plural || 1 === $locale->nplurals ) :
+ echo '<span class="translation-text">' . esc_translation( $translation->translations[0] ) . '</span>';
+ elseif ( $translation->plural && 2 === $locale->nplurals && 'n != 1' === $locale->plural_expression ) :
+ ?>
+ <ul>
+ <li>
+ <small>Singular:</small><br>
+ <?php
+ if ( ! isset( $translation->translations[0] ) || gp_is_empty_string( $translation->translations[0] ) ) {
+ echo $missing_text;
+ } else {
+ echo '<span class="translation-text">' . esc_translation( $translation->translations[0] ) . '</span>';
+ }
+ ?>
+ </li>
+ <li>
+ <small>Plural:</small><br>
+ <?php
+ if ( ! isset( $translation->translations[1] ) || gp_is_empty_string( $translation->translations[1] ) ) {
+ echo $missing_text;
+ } else {
+ echo '<span class="translation-text">' . esc_translation( $translation->translations[1] ) . '</span>';
+ }
+ ?>
+ </li>
+ </ul>
+ <?php
+ else :
+ echo '<ul>';
+ foreach( range( 0, $locale->nplurals - 1 ) as $plural_index ):
+ $plural_string = implode(', ', $locale->numbers_for_index( $plural_index ) );
+ ?>
+ <li>
+ <small class="with-tooltip" aria-label="<?php printf('This plural form is used for numbers like: %s', $plural_string ); ?>">
+ <?php echo $plural_string; ?>:
+ </small><br>
+ <?php
+ if ( ! isset( $translation->translations[ $plural_index ] ) || gp_is_empty_string( $translation->translations[ $plural_index ] ) ) {
+ echo $missing_text;
+ } else {
+ echo '<span class="translation-text">' . esc_translation( $translation->translations[ $plural_index ] ) . '</span>';
+ }
+ ?>
+ </li>
+ <?php
+ endforeach;
+ echo '</ul>';
+ endif; ?>
+ </td>
+ <td class="actions">
+ <a href="#" class="action edit"><?php _e( 'Details', 'glotpress' ); ?></a>
+ </td>
+</tr>
</ins><span class="cx" style="display: block; padding: 0 10px">Property changes on: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/translation-row-preview.php
</span><span class="cx" style="display: block; padding: 0 10px">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span></div>
</body>
</html>