Index: /sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/helper-functions.php =================================================================== --- /sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/helper-functions.php (revision 11050) +++ /sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/helper-functions.php (revision 11051) @@ -314,2 +314,31 @@ context ) { + return false; + } + + // Context is the same as the singular. + if ( $translation->singular === $translation->context ) { + return false; + } + + // Context was cut-off due to VARCHAR(255) in the database schema. + if ( 255 === mb_strlen( $translation->context ) && 0 === strpos( $translation->singular, $translation->context ) ) { + return false; + } + + return true; +} Index: /sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/style.css =================================================================== --- /sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/style.css (revision 11050) +++ /sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/style.css (revision 11051) @@ -346,6 +346,8 @@ } -span.context { - font-size: 90%; +span.context, +span.priority { + color: #1e1e1e; + font-size: 12px; padding: .1em 0; margin-left: .2em; @@ -354,4 +356,20 @@ box-decoration-break: clone; box-shadow: .3em 0 0 #a0a5aa, -.3em 0 0 #a0a5aa; + border-radius: 0; +} + +span.context + span.priority { + margin-left: 1em; +} + +.priority-high span.priority { + color: #fff; + background-color: rgba( 154, 35, 35, 0.65 ); + box-shadow: 0.3em 0 0 rgba( 154, 35, 35, 0.65 ), -0.3em 0 0 rgba( 154, 35, 35, 0.65 ); +} + +.priority-low span.priority { + background-color: rgba( 213, 213, 213, 0.65 ); + box-shadow: 0.3em 0 0 rgba( 213, 213, 213, 0.65 ), -0.3em 0 0 rgba( 213, 213, 213, 0.65 ); } @@ -384,7 +402,6 @@ } -table.translations td.original ul:not(:last-child), -table.translations td.translation ul:not(:last-child) { - margin-bottom: .2em; +.original-tags { + margin-top: .2em; } @@ -448,4 +465,5 @@ table.translations tr:nth-child(4n+3), +table.locale-sub-projects tr:nth-child(even), .translation-sets tr, .locales tr { @@ -1011,5 +1029,5 @@ float: right; width: 250px; - border: 1px solid #ccc; + border: 1px solid #72777c; box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1); background: #fff; @@ -1025,5 +1043,5 @@ margin: 0 0 2.083% 2.083%; width: 47.917%; - border: 1px solid #ccc; + border: 1px solid #72777c; box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1); background: #fff; @@ -1053,5 +1071,5 @@ .projects .project-name h4 { border: 0; - margin: 0 0 12px; + margin: 0 0 8px; font-size: 18px; font-weight: 600; @@ -1061,4 +1079,7 @@ .projects .project-description { font-size: 13px; + border-left: 0; + margin-top: 0; + padding: 0; } @@ -1170,4 +1191,6 @@ margin-left: 0; max-width: 100%; + padding: 0; + border: 0; } @@ -1176,5 +1199,5 @@ width: 350px; margin-left: 20px; - border: 1px solid #ccc; + border: 1px solid #72777c; box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1); background: #fff; @@ -1266,5 +1289,5 @@ ul.projects-dropdown { - border-top: 1px solid #ccc; + border-top: 1px solid #72777c; } @@ -1298,5 +1321,5 @@ width: 100%; background: #f9f9f9; - border: 1px solid #ccc; + border: 1px solid #72777c; border-top: 0; box-shadow: 1px 1px 1px 0 rgba(0,0,0,0.04); @@ -1642,5 +1665,5 @@ float: right; margin: -30px 0 5px 5px; - background-color: #72777c; + background-color: #e2e4e7; padding: 5px; border: 1px solid #dfdfdf; @@ -1887,4 +1910,5 @@ .locale-project-contributors-group hr { margin: 30px 0; + border-color: #72777c; } @@ -2311,7 +2335,7 @@ } -table.translations th.priority { - width: 2em; - text-align: center; +table.translations th.priority, +table.translations td.priority { + display: none; } @@ -2588,5 +2612,5 @@ } -.source-details details + details{ +.source-details details + details { margin-top: 5px; } @@ -2595,4 +2619,12 @@ word-wrap: break-word; overflow-wrap: break-word; +} + +.source-details__context .context { + font-size: 100%; + background: transparent; + box-shadow: none; + margin: 0; + padding: 0; } Index: /sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/translation-row-preview.php =================================================================== --- /sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/translation-row-preview.php (revision 11050) +++ /sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/translation-row-preview.php (revision 11051) @@ -41,11 +41,21 @@ - if ( $translation->context ) : +