Index: trunk/extensions/Translate/Translate.css |
— | — | @@ -27,6 +27,11 @@ |
28 | 28 | background-color: #F2F200; |
29 | 29 | } |
30 | 30 | |
| 31 | +.mw-sp-translate-table .untranslated { |
| 32 | + background-color: #a2f290; |
| 33 | +} |
| 34 | + |
| 35 | + |
31 | 36 | .mw-sp-translate-table td { |
32 | 37 | vertical-align: top; |
33 | 38 | } |
Index: trunk/extensions/Translate/utils/MessageTable.php |
— | — | @@ -113,7 +113,13 @@ |
114 | 114 | $title = $this->keyToTitle( $key ); |
115 | 115 | |
116 | 116 | $original = $m->definition(); |
117 | | - $message = $m->translation() ? $m->translation() : $original; |
| 117 | + if ( $m->translation() ) { |
| 118 | + $message = $m->translation(); |
| 119 | + $rclasses = array( 'class' => 'translated' ); |
| 120 | + } else { |
| 121 | + $message = $original; |
| 122 | + $rclasses = array( 'class' => 'untranslated' ); |
| 123 | + } |
118 | 124 | |
119 | 125 | global $wgLang; |
120 | 126 | $niceTitle = htmlspecialchars( $wgLang->truncate( $key, - 30 ) ); |
— | — | @@ -147,7 +153,7 @@ |
148 | 154 | } else { |
149 | 155 | $output .= Xml::tags( 'tr', array( 'class' => 'def' ), |
150 | 156 | Xml::tags( 'td', null, $leftColumn ) . |
151 | | - Xml::tags( 'td', null, TranslateUtils::convertWhiteSpaceToHTML( $message ) ) |
| 157 | + Xml::tags( 'td', $rclasses, TranslateUtils::convertWhiteSpaceToHTML( $message ) ) |
152 | 158 | ); |
153 | 159 | } |
154 | 160 | |