Index: trunk/extensions/ProofreadPage/SpecialProofreadPages.php |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | if ( preg_match( "/^$index_namespace:(.*)$/", $result->getTitle(), $m ) ) { |
48 | 48 | array_push( $searchList, str_replace( ' ' , '_' , $m[1] ) ); |
49 | 49 | } |
50 | | - } |
| 50 | + } |
51 | 51 | } |
52 | 52 | } |
53 | 53 | $cnl = new ProofreadPagesQuery( $searchList ); |
— | — | @@ -54,10 +54,7 @@ |
55 | 55 | } |
56 | 56 | } |
57 | 57 | |
58 | | - |
59 | | - |
60 | 58 | class ProofreadPagesQuery extends QueryPage { |
61 | | - |
62 | 59 | function ProofreadPagesQuery( $searchList ) { |
63 | 60 | $this->searchList = $searchList; |
64 | 61 | } |
— | — | @@ -109,7 +106,7 @@ |
110 | 107 | } |
111 | 108 | |
112 | 109 | function formatResult( $skin, $result ) { |
113 | | - global $wgLang, $wgContLang; |
| 110 | + global $wgLang; |
114 | 111 | |
115 | 112 | $index_namespace = pr_index_ns(); |
116 | 113 | $title = Title::newFromText( $index_namespace.":".$result->title ); |
— | — | @@ -133,9 +130,11 @@ |
134 | 131 | $q4 = $result->pr_q4; |
135 | 132 | $num_void = $size-$q1-$q2-$q3-$q4-$q0; |
136 | 133 | $void_cell = $num_void ? "<td align=center style='border-style:dotted;background:#ffffff;border-width:1px;' width=\"{$num_void}\"></td>" : ""; |
137 | | - |
138 | | - $pages = wfMsg( 'proofreadpage_pages', $size ); |
139 | 134 | |
| 135 | + // FIXME: consider using $size in 'proofreadpage_pages' instead of glueing it together in $output |
| 136 | + $pages = wfMsgExt( 'proofreadpage_pages', 'parsemag', $size ); |
| 137 | + $size = $wgLang->formatNum( $size ); |
| 138 | + |
140 | 139 | $output = "<table style=\"line-height:70%;\" border=0 cellpadding=5 cellspacing=0 > |
141 | 140 | <tr valign=\"bottom\"> |
142 | 141 | <td style=\"white-space:nowrap;overflow:hidden;\">{$plink} [$size $pages]</td> |
— | — | @@ -153,6 +152,6 @@ |
154 | 153 | </td> |
155 | 154 | </tr></table>"; |
156 | 155 | |
157 | | - return $output; |
| 156 | + return $output; |
158 | 157 | } |
159 | 158 | } |