http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73919

Revision: 73919
Author:   siebrand
Date:     2010-09-28 17:17:27 +0000 (Tue, 28 Sep 2010)

Log Message:
-----------
$langs could be incorrect as it was fed back into 
TranslationStats::getPercentageTranslated()

Modified Paths:
--------------
    trunk/extensions/Translate/scripts/export.php

Modified: trunk/extensions/Translate/scripts/export.php
===================================================================
--- trunk/extensions/Translate/scripts/export.php       2010-09-28 17:10:51 UTC 
(rev 73918)
+++ trunk/extensions/Translate/scripts/export.php       2010-09-28 17:17:27 UTC 
(rev 73919)
@@ -71,7 +71,7 @@
        $threshold = false;
 }
 
-$langs = Cli::parseLanguageCodes( $options['lang'] );
+$reqLangs = Cli::parseLanguageCodes( $options['lang'] );
 
 $groups = array();
 
@@ -108,10 +108,12 @@
        if ( $threshold ) {
                $langs = TranslationStats::getPercentageTranslated(
                        $groupId,
-                       $langs,
+                       $reqLangs,
                        $threshold,
                        true
                );
+       } else {
+               $langs = $reqLangs;
        }
 
        if ( $group instanceof FileBasedMessageGroup ) {



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to