https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112403
Revision: 112403
Author: siebrand
Date: 2012-02-25 17:24:58 +0000 (Sat, 25 Feb 2012)
Log Message:
-----------
Write some output to error log in case a message group has 0 messages. Makes
mistakes like that from r111791 a bit easier to identify.
Modified Paths:
--------------
trunk/extensions/Translate/specials/SpecialLanguageStats.php
trunk/extensions/Translate/specials/SpecialMessageGroupStats.php
Modified: trunk/extensions/Translate/specials/SpecialLanguageStats.php
===================================================================
--- trunk/extensions/Translate/specials/SpecialLanguageStats.php
2012-02-25 17:19:55 UTC (rev 112402)
+++ trunk/extensions/Translate/specials/SpecialLanguageStats.php
2012-02-25 17:24:58 UTC (rev 112403)
@@ -376,6 +376,10 @@
$this->incomplete = true;
$extra = array();
} else {
+ if( $total === 0 ) {
+ error_log( $groupId . ' has 0 messages.' );
+ }
+
if ( $this->noComplete && $fuzzy === 0 && $translated
=== $total ) {
return '';
}
Modified: trunk/extensions/Translate/specials/SpecialMessageGroupStats.php
===================================================================
--- trunk/extensions/Translate/specials/SpecialMessageGroupStats.php
2012-02-25 17:19:55 UTC (rev 112402)
+++ trunk/extensions/Translate/specials/SpecialMessageGroupStats.php
2012-02-25 17:24:58 UTC (rev 112403)
@@ -167,6 +167,10 @@
$this->incomplete = true;
$extra = array();
} else {
+ if( $total === 0 ) {
+ error_log( $groupId . ' has 0 messages.' );
+ }
+
if ( $this->noComplete && $fuzzy === 0 && $translated
=== $total ) {
return '';
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs