Index: trunk/extensions/Translate/SpecialLanguageStats.php |
— | — | @@ -119,25 +119,6 @@ |
120 | 120 | return "\t\t" . $element . "\n"; |
121 | 121 | } |
122 | 122 | |
123 | | - function getGroups() { |
124 | | - $groups = wfMsgForContent( 'translate-languagestats-groups' ); |
125 | | - |
126 | | - if( $groups ) { |
127 | | - // Make the group names clean |
128 | | - // Should contain one valid group name per line |
129 | | - // All invalid group names should be ignored |
130 | | - // Return all group names if there are no valid group names at all |
131 | | - // FIXME: implement the above here |
132 | | - $cleanGroups = ''; |
133 | | - |
134 | | - if( $cleanGroups ) { |
135 | | - return $cleanGroups; |
136 | | - } |
137 | | - } |
138 | | - |
139 | | - return MessageGroups::singleton()->getGroups(); |
140 | | - } |
141 | | - |
142 | 123 | function getBackgroundColour( $subset, $total, $fuzzy = false ) { |
143 | 124 | $v = @round(255 * $subset / $total); |
144 | 125 | |
— | — | @@ -195,7 +176,7 @@ |
196 | 177 | $cache = new ArrayMemoryCache( 'groupstats' ); |
197 | 178 | |
198 | 179 | # Fetch groups stats have to be displayed for |
199 | | - $groups = $this->getGroups(); |
| 180 | + $groups = MessageGroups::singleton()->getGroups(); |
200 | 181 | |
201 | 182 | # Get statistics for the message groups |
202 | 183 | foreach ( $groups as $groupName => $g ) { |
Index: trunk/extensions/Translate/Translate.i18n.php |
— | — | @@ -178,7 +178,7 @@ |
179 | 179 | |
180 | 180 | # Special:LanguageStats |
181 | 181 | 'languagestats' => 'Language statistics', |
182 | | - 'languagestats-summary' => 'This page shows translation statistics for all ([[MediaWiki:Translate-languagestats-groups|configured]]) message groups for a language.', |
| 182 | + 'languagestats-summary' => 'This page shows translation statistics for all message groups for a language.', |
183 | 183 | 'translate-language-code' => 'Language code', |
184 | 184 | 'translate-language-code-field-name' => 'Language code:', |
185 | 185 | 'translate-suppress-complete' => 'Suppress completely translated message groups', |