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

Revision: 95771
Author:   siebrand
Date:     2011-08-30 13:04:42 +0000 (Tue, 30 Aug 2011)
Log Message:
-----------
Add small feature suggestion based on former live hack.

Modified Paths:
--------------
    trunk/extensions/Translate/specials/SpecialLanguageStats.php

Modified: trunk/extensions/Translate/specials/SpecialLanguageStats.php
===================================================================
--- trunk/extensions/Translate/specials/SpecialLanguageStats.php        
2011-08-30 12:59:28 UTC (rev 95770)
+++ trunk/extensions/Translate/specials/SpecialLanguageStats.php        
2011-08-30 13:04:42 UTC (rev 95771)
@@ -231,6 +231,13 @@
                        $out = wfMsgExt( 'translate-nothing-to-do', 'parse' );
                }
 
+               // @todo: Allow extra message here, once total translated 
volume goes
+               //        over a certain percentage? (former live hack at 
translatewiki)
+               // if ( $this->totals['2'] && ( $this->totals['1'] / 
$this->totals['2'] ) > 0.95 ) {
+               //      global $wgOut;
+               //      $out .= $wfMessage( 'translate-somekey' );
+               // }
+
                return $out;
        }
 


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

Reply via email to