Index: trunk/extensions/Translate/Translate.i18n.php |
— | — | @@ -261,6 +261,7 @@ |
262 | 262 | On this page a list of language portals will appear for all portals corresponding with a defined language code and a subpage called "translators". |
263 | 263 | The subpage "translators" must contain the template [[:{{ns:template}}:User|User]], taking a user name as parameter.', |
264 | 264 | 'supportedlanguages-recenttranslations' => 'recent translations', |
| 265 | + 'supportedlanguages-count' => '$1 {{plural:$1|language|languages}} in total.', |
265 | 266 | |
266 | 267 | 'translate-save' => 'Save ($1)', |
267 | 268 | |
Index: trunk/extensions/Translate/specials/SpecialSupportedLanguages.php |
— | — | @@ -83,7 +83,9 @@ |
84 | 84 | $user = Title::capitalize( $match[1], NS_USER ); |
85 | 85 | $lb->add( NS_USER, $user ); |
86 | 86 | $lb->add( NS_USER_TALK, $user ); |
87 | | - @$users[$code][] = $user; |
| 87 | + |
| 88 | + if ( !isset( $users[$code] ) ) $users[$code] = array(); |
| 89 | + $users[$code][] = $user; |
88 | 90 | } |
89 | 91 | } |
90 | 92 | |
— | — | @@ -94,9 +96,7 @@ |
95 | 97 | $skin = $wgUser->getSkin(); |
96 | 98 | $portalBaseText = wfMsg( 'portal' ); |
97 | 99 | |
98 | | - /** |
99 | | - * Information to be used inside the foreach loop. |
100 | | - */ |
| 100 | + // Information to be used inside the foreach loop. |
101 | 101 | $linkInfo['rc']['title'] = SpecialPage::getTitleFor( 'Recentchanges' ); |
102 | 102 | $linkInfo['rc']['msg'] = wfMsg( 'supportedlanguages-recenttranslations' ); |
103 | 103 | $linkInfo['stats']['title'] = SpecialPage::getTitleFor( 'LanguageStats' ); |
— | — | @@ -173,5 +173,7 @@ |
174 | 174 | count( $users[$code] ) |
175 | 175 | ) . "</p>\n" ); |
176 | 176 | } |
| 177 | + $wgOut->addHtml( Html::element( 'hr' ) ); |
| 178 | + $wgOut->addWikiMsg( 'supportedlanguages-count', $wgLang->formatNum( count( $users ) ) ); |
177 | 179 | } |
178 | 180 | } |