Index: trunk/phase3/maintenance/language/StatOutputs.php |
— | — | @@ -46,10 +46,19 @@ |
47 | 47 | /** Outputs WikiText */ |
48 | 48 | class wikiStatsOutput extends statsOutput { |
49 | 49 | function heading() { |
| 50 | + global $wgDummyLanguageCodes, $wgContLang; |
50 | 51 | $version = SpecialVersion::getVersion( 'nodb' ); |
51 | 52 | echo "'''Statistics are based on:''' <code>" . $version . "</code>\n\n"; |
52 | 53 | echo "'''Note:''' These statistics can be generated by running <code>php maintenance/language/transstat.php</code>.\n\n"; |
53 | 54 | echo "For additional information on specific languages (the message names, the actual problems, etc.), run <code>php maintenance/language/checkLanguage.php --lang=foo</code>.\n\n"; |
| 55 | + echo 'English (en) is excluded because it is the default localization'; |
| 56 | + if( is_array( $wgDummyLanguageCodes ) ) { |
| 57 | + foreach( $wgDummyLanguageCodes as $dummyCode ) { |
| 58 | + $dummyCodes[] = $wgContLang->getLanguageName( $dummyCode ) . ' (' . $dummyCode . ')'; |
| 59 | + } |
| 60 | + echo ', as well as the following languages that are not intended for system message translations, usually because they redirect to other language codes: ' . implode( ', ', $dummyCodes ); |
| 61 | + } |
| 62 | + echo ".\n\n"; # dot to end sentence |
54 | 63 | echo '{| class="sortable wikitable" border="2" cellpadding="4" cellspacing="0" style="background-color: #F9F9F9; border: 1px #AAAAAA solid; border-collapse: collapse; clear:both;" width="100%"' . "\n"; |
55 | 64 | } |
56 | 65 | function footer() { |
Index: trunk/phase3/maintenance/language/transstat.php |
— | — | @@ -95,8 +95,9 @@ |
96 | 96 | $wgRequiredMessagesNumber = count( $wgGeneralMessages['required'] ); |
97 | 97 | |
98 | 98 | foreach ( $wgLanguages->getLanguages() as $code ) { |
99 | | - # Don't check English or RTL English |
100 | | - if ( $code == 'en' || $code == 'enRTL' ) { |
| 99 | + # Don't check English, RTL English or dummy language codes |
| 100 | + if ( $code == 'en' || $code == 'enRTL' || (is_array( $wgDummyLanguageCodes ) && |
| 101 | + in_array( $code, $wgDummyLanguageCodes ) ) ) { |
101 | 102 | continue; |
102 | 103 | } |
103 | 104 | |
Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -56,6 +56,8 @@ |
57 | 57 | * (bug 29397) Implement mw.Title module in core. |
58 | 58 | * In MySQL 4.1.9+ with replication enabled, get the slave lag from SHOW SLAVE |
59 | 59 | STATUS instead of SHOW PROCESSLIST. |
| 60 | +* Language codes in $wgDummyLanguageCodes are now excluded on localization |
| 61 | + statistics (maintenance/language/transstat.php) |
60 | 62 | |
61 | 63 | === Bug fixes in 1.19 === |
62 | 64 | * (bug 28868) Show total pages in the subtitle of an image on the |