r73916 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73915‎ | r73916 | r73917 >
Date:17:07, 28 September 2010
Author:siebrand
Status:deferred
Tags:
Comment:
Report script status a little earlier. TranslationStats::getPercentageTranslated() can take a while for large groups with many languages.
Modified paths:
  • /trunk/extensions/Translate/scripts/export.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/scripts/export.php
@@ -103,6 +103,8 @@
104104 exit( 1 );
105105 }
106106
 107+ STDERR( 'Exporting ' . $groupId );
 108+
107109 if ( $threshold ) {
108110 $langs = TranslationStats::getPercentageTranslated(
109111 $groupId,
@@ -112,8 +114,6 @@
113115 );
114116 }
115117
116 - STDERR( 'Exporting ' . $groupId );
117 -
118118 if ( $group instanceof FileBasedMessageGroup ) {
119119 $ffs = $group->getFFS();
120120 $ffs->setWritePath( $options['target'] );

Status & tagging log