Index: branches/wmf/1.16wmf4/extensions/CentralNotice/CentralNotice.i18n.php |
— | — | @@ -131,7 +131,6 @@ |
132 | 132 | 'centralnotice-no-allocation' => 'No banners allocated.', |
133 | 133 | 'centralnotice-allocation-description' => 'Banner allocation for $1.$2 in $3:', |
134 | 134 | 'centralnotice-percentage' => 'Percentage', |
135 | | - 'centralnotice-percent' => '$1%', |
136 | 135 | |
137 | 136 | 'right-centralnotice-admin' => 'Manage central notices', |
138 | 137 | 'right-centralnotice-translate' => 'Translate central notices', |
— | — | @@ -194,7 +193,6 @@ |
195 | 194 | 'centralnotice-insert' => '{{Identical|Insert}}', |
196 | 195 | 'centralnotice-geotargeted' => 'Used to label a checkbox which activates geotargeting', |
197 | 196 | 'centralnotice-allocation-description' => 'A description of the environment whose allocation is being described. $1 is the language code for the site (en). $2 is the project name for the site (wikipedia). $3 is the country code (US).', |
198 | | - 'centralnotice-percent' => 'A percentage as a number. $1 is the number.', |
199 | 197 | |
200 | 198 | 'right-centralnotice-admin' => '{{doc-right}}', |
201 | 199 | 'right-centralnotice-translate' => '{{doc-right}}', |
Index: branches/wmf/1.16wmf4/extensions/CentralNotice/SpecialBannerAllocation.php |
— | — | @@ -124,7 +124,7 @@ |
125 | 125 | * Show a list of banners with allocation. Newer banners are shown first. |
126 | 126 | */ |
127 | 127 | function showList() { |
128 | | - global $wgRequest, $wgOut, $wgUser, $wgRequest; |
| 128 | + global $wgRequest, $wgOut, $wgUser, $wgRequest, $wgLang; |
129 | 129 | |
130 | 130 | $sk = $wgUser->getSkin(); |
131 | 131 | $viewPage = $this->getTitleFor( 'NoticeTemplate', 'view' ); |
— | — | @@ -165,7 +165,7 @@ |
166 | 166 | $htmlOut .= Xml::openElement( 'tr' ); |
167 | 167 | $htmlOut .= Xml::openElement( 'td' ); |
168 | 168 | $percentage = ( $banner['weight'] / $totalWeight ) * 100; |
169 | | - $htmlOut .= wfMsg ( 'centralnotice-percent', $percentage ); |
| 169 | + $htmlOut .= wfMsg ( 'percent', $wgLang->formatNum( $percentage ) ); |
170 | 170 | $htmlOut .= Xml::closeElement( 'td' ); |
171 | 171 | $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top' ), |
172 | 172 | $sk->makeLinkObj( $viewPage, htmlspecialchars( $banner['name'] ), 'template=' . urlencode( $banner['name'] ) ) |
Property changes on: branches/wmf/1.16wmf4/extensions/CentralNotice |
___________________________________________________________________ |
Modified: svn:mergeinfo |
173 | 173 | Merged /trunk/extensions/CentralNotice:r73406 |