r44085 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44084‎ | r44085 | r44086 >
Date:17:44, 30 November 2008
Author:siebrand
Status:deferred
Tags:
Comment:
Add columns for messages in group and number of translated messages
Modified paths:
  • /trunk/extensions/Translate/SpecialLanguageStats.php (modified) (history)
  • /trunk/extensions/Translate/Translate.i18n.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/SpecialLanguageStats.php
@@ -180,6 +180,8 @@
181181 # Create table header
182182 $out .= $this->heading();
183183 $out .= $this->blockstart();
 184+ $out .= $this->element( wfMsg( 'translate-total', true ) );
 185+ $out .= $this->element( wfMsg( 'translate-translated', true ) );
184186 $out .= $this->element( wfMsg( 'translate-page-group', true ) );
185187 $out .= $this->element( wfMsg( 'translate-percentage-complete', true ) );
186188 $out .= $this->element( wfMsg( 'translate-percentage-fuzzy', true ) );
@@ -227,6 +229,8 @@
228230
229231 $out .= $this->blockstart();
230232 $out .= $this->element( $translateGroupLink );
 233+ $out .= $this->element( $total );
 234+ $out .= $this->element( $translated );
231235 $out .= $this->element( $translatedPercentage, false, $this->getBackgroundColour( $translated, $total ) );
232236 $out .= $this->element( $fuzzyPercentage, false, $this->getBackgroundColour( $fuzzy, $total, true ) );
233237 $out .= $this->blockend();
Index: trunk/extensions/Translate/Translate.i18n.php
@@ -9,6 +9,7 @@
1010
1111 /** English
1212 * @author Nike
 13+ * @author Siebrand
1314 */
1415 $messages['en'] = array(
1516 'translate' => 'Translate',
@@ -182,6 +183,8 @@
183184 'translate-language-code-field-name' => 'Language code:',
184185 'translate-suppress-complete' => 'Suppress completely translated message groups',
185186 'translate-language' => 'Language',
 187+ 'translate-total' => 'Messages',
 188+ 'translate-translated' => 'Translated',
186189 'translate-percentage-complete' => 'Completion',
187190 'translate-percentage-fuzzy' => 'Outdated',
188191 'translate-languagestats-groups' => ' # Add message group IDs, one per line to restrict the message groups that

Status & tagging log