Index: trunk/phase3/maintenance/language/transstat.php |
— | — | @@ -18,6 +18,7 @@ |
19 | 19 | if ( isset( $options['help'] ) ) { |
20 | 20 | showUsage(); |
21 | 21 | } |
| 22 | + |
22 | 23 | # Default output is WikiText |
23 | 24 | if ( !isset( $options['output'] ) ) { |
24 | 25 | $options['output'] = 'wiki'; |
— | — | @@ -63,10 +64,10 @@ |
64 | 65 | function heading() { |
65 | 66 | global $IP; |
66 | 67 | $version = SpecialVersion::getVersion( $IP ); |
67 | | - echo "'''Statistics based on:''' <tt>" . $version . "</tt>\n\n"; |
| 68 | + echo "'''Statistics are based on:''' <code>" . $version . "</code>\n\n"; |
68 | 69 | echo "'''Note:''' These statistics can be generated by running <code>php maintenance/language/transstat.php</code>.\n\n"; |
69 | 70 | 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"; |
70 | | - echo "{| border=2 cellpadding=4 cellspacing=0 style=\"background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse;\" width=100%\n"; |
| 71 | + echo '{| border="2" cellpadding="4" cellspacing="0" style="background-color: #F9F9F9; border: 1px #AAAAAA solid; border-collapse: collapse;" width="100%"'."\n"; |
71 | 72 | } |
72 | 73 | function footer() { |
73 | 74 | echo "|}\n"; |
— | — | @@ -104,9 +105,13 @@ |
105 | 106 | |
106 | 107 | /** Outputs WikiText and appends category only used for Meta-Wiki */ |
107 | 108 | class metawikiStatsOutput extends wikiStatsOutput { |
| 109 | + function header() { |
| 110 | + echo "See [[MediaWiki localisation]] to learn how you can help translating MediaWiki.\n"; |
| 111 | + parent::header(); |
| 112 | + } |
108 | 113 | function footer() { |
109 | | - echo "|}\n\n"; |
110 | | - echo "[[Category:Localisation|Statistics]]\n"; |
| 114 | + parent::footer(); |
| 115 | + echo "\n[[Category:Localisation|Statistics]]\n"; |
111 | 116 | } |
112 | 117 | } |
113 | 118 | |