r45099 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45098‎ | r45099 | r45100 >
Date:16:28, 27 December 2008
Author:siebrand
Status:deferred
Tags:
Comment:
Various fixes, update default, and improve i18n:
* no access to special page when no rights
* default allowed for bureaucrats instead of non-existing group 'staff'
* set $wgSpecialPageGroups
* add plural support for various messages
* remove need to add leading/trailing spaces to 'refreshspecial-select-all-pages'
* add right-refreshspecial for Special:ListGroupRights
* add i18n for special page refresh details. i18n incomplete, as timings are still crappy.
* reword some messages, remove trailing whitespace
* bumped version
Modified paths:
  • /trunk/extensions/RefreshSpecial/RefreshSpecial.body.php (modified) (history)
  • /trunk/extensions/RefreshSpecial/RefreshSpecial.i18n.php (modified) (history)
  • /trunk/extensions/RefreshSpecial/RefreshSpecial.php (modified) (history)

Diff [purge]

Index: trunk/extensions/RefreshSpecial/RefreshSpecial.body.php
@@ -24,9 +24,16 @@
2525 */
2626 public function execute( $par ) {
2727 global $wgOut, $wgUser, $wgRequest;
 28+
2829 wfLoadExtensionMessages('RefreshSpecial');
2930
3031 $wgOut->setPageTitle( wfMsg('refreshspecial-title') );
 32+
 33+ if( !$wgUser->isAllowed('refreshspecial') ) {
 34+ $wgOut->permissionRequired( 'refreshspecial' );
 35+ return;
 36+ }
 37+
3138 $cSF = new RefreshSpecialForm();
3239
3340 $action = $wgRequest->getVal( 'action' );
@@ -57,7 +64,7 @@
5865 */
5966 function showForm( $err ) {
6067 global $wgOut, $wgUser, $wgRequest, $wgQueryPages;
61 -
 68+
6269 $token = htmlspecialchars( $wgUser->editToken() );
6370 $titleObj = SpecialPage::getTitleFor( 'RefreshSpecial' );
6471 $action = $titleObj->escapeLocalURL( "action=submit" );
@@ -76,7 +83,7 @@
7784 /**
7885 * List pages right here
7986 *
80 - * @todo Display a time estimate or a raw factor
 87+ * @todo Display a time estimate or a raw factor
8188 * I guess it's not that important, since we have a 1000 rows limit on refresh?
8289 * that brings up an interesting question - do we need that limit or not?
8390 */
@@ -99,14 +106,14 @@
100107 $wgOut->addHTML("<li>
101108 <input type=\"checkbox\" name=\"wpSpecial[]\" value=\"$special\" $checked />
102109 <b>$special</b>
103 - </li>");
 110+ </li>");
104111 }
105112 }
106113
107114 $wgOut->addHTML("<li>
108 - <input type=\"checkbox\" name=\"check_all\" id=\"refreshSpecialCheckAll\" onclick=\"refreshSpecialCheck(this.form);\" /><label for=\"refreshSpecialCheckAll\">".wfMsg ('refreshspecial-select-all-pages') ."
109 - <noscript>".wfMsg ('refreshspecial-js-disabled')."
110 - </noscript>");
 115+ <input type=\"checkbox\" name=\"check_all\" id=\"refreshSpecialCheckAll\" onclick=\"refreshSpecialCheck(this.form);\" /><label for=\"refreshSpecialCheckAll\">&nbsp;" . wfMsg ( 'refreshspecial-select-all-pages' ) . "
 116+ <noscript>" . wfMsg ( 'refreshspecial-js-disabled' ) . "
 117+ </noscript>" );
111118 $wgOut->addHTML("</label>
112119 </li>
113120 <script type=\"text/javascript\">
@@ -128,7 +135,7 @@
129136 /**
130137 * Take amount of elapsed time, produce hours (hopefully never needed...), minutes, seconds
131138 *
132 - * @param $amount int
 139+ * @param $amount int
133140 * @return array Amount of elapsed time
134141 */
135142 function compute_time($amount) {
@@ -193,44 +200,47 @@
194201 if( !( isset( $options['only'] ) ) or ( $options['only'] == $queryPage->getName() ) ) {
195202 $wgOut->addHTML("<b>$special</b>: ");
196203
197 - if ( $queryPage->isExpensive() ) {
198 - $t1 = explode( ' ', microtime() );
199 - # Do the query
200 - $num = $queryPage->recache( $limit === null ? REFRESHSPECIAL_ROW_LIMIT : $limit );
201 - $t2 = explode( ' ', microtime() );
 204+ if ( $queryPage->isExpensive() ) {
 205+ $t1 = explode( ' ', microtime() );
 206+ # Do the query
 207+ $num = $queryPage->recache( $limit === null ? REFRESHSPECIAL_ROW_LIMIT : $limit );
 208+ $t2 = explode( ' ', microtime() );
202209
203 - if ( $num === false ) {
204 - $wgOut->addHTML( wfMsg('refreshspecial-db-error') . "<br />" );
205 - } else {
206 - $message = "got $num rows in ";
207 - $elapsed = ($t2[0] - $t1[0]) + ($t2[1] - $t1[1]);
208 - $total['elapsed'] += $elapsed;
209 - $total['rows'] += $num;
210 - $total['pages']++;
211 - $ftime = $this->compute_time($elapsed);
212 - $this->format_time_message($ftime, $message);
213 - $wgOut->addHTML("$message<br />");
214 - }
 210+ if ( $num === false ) {
 211+ $wgOut->addHTML( wfMsg('refreshspecial-db-error') . "<br />" );
 212+ } else {
 213+ $message = wfMsgExt( 'refreshspecial-page-result', array( 'escape', 'parsemag' ), $num ) . "&nbsp;";
 214+ $elapsed = ($t2[0] - $t1[0]) + ($t2[1] - $t1[1]);
 215+ $total['elapsed'] += $elapsed;
 216+ $total['rows'] += $num;
 217+ $total['pages']++;
 218+ $ftime = $this->compute_time($elapsed);
 219+ $this->format_time_message($ftime, $message);
 220+ $wgOut->addHTML("$message<br />");
 221+ }
 222+
215223 $t1 = explode( ' ', microtime() );
216 - # Reopen any connections that have closed
217 - if ( !wfGetLB()->pingAll() ) {
218 - $wgOut->addHTML("<br />");
219 - do {
220 - $wgOut->addHTML( wfMsg('refreshspecial-reconnecting') ."<br />" );
221 - sleep(REFRESHSPECIAL_RECONNECTION_SLEEP);
222 - } while ( !wfGetLB()->pingAll() );
223 - $wgOut->addHTML( wfMsg('refreshspecial-reconnected') . "<br /><br />" );
224 - } else {
225 - # Commit the results
226 - $dbw->commit();
227 - }
228224
229 - # Wait for the slave to catch up
230 - $slaveDB = wfGetDB( DB_SLAVE, array( 'QueryPage::recache', 'vslow' ) );
231 - while( $slaveDB->getLag() > REFRESHSPECIAL_SLAVE_LAG_LIMIT ) {
232 - $wgOut->addHTML( wfMsg('refreshspecial-slave-lagged') ."<br />" );
233 - sleep(REFRESHSPECIAL_SLAVE_LAG_SLEEP);
234 - }
 225+ # Reopen any connections that have closed
 226+ if ( !wfGetLB()->pingAll() ) {
 227+ $wgOut->addHTML("<br />");
 228+ do {
 229+ $wgOut->addHTML( wfMsg('refreshspecial-reconnecting') ."<br />" );
 230+ sleep(REFRESHSPECIAL_RECONNECTION_SLEEP);
 231+ } while ( !wfGetLB()->pingAll() );
 232+ $wgOut->addHTML( wfMsg('refreshspecial-reconnected') . "<br /><br />" );
 233+ } else {
 234+ # Commit the results
 235+ $dbw->commit();
 236+ }
 237+
 238+ # Wait for the slave to catch up
 239+ $slaveDB = wfGetDB( DB_SLAVE, array( 'QueryPage::recache', 'vslow' ) );
 240+ while( $slaveDB->getLag() > REFRESHSPECIAL_SLAVE_LAG_LIMIT ) {
 241+ $wgOut->addHTML( wfMsg('refreshspecial-slave-lagged') ."<br />" );
 242+ sleep(REFRESHSPECIAL_SLAVE_LAG_SLEEP);
 243+ }
 244+
235245 $t2 = explode( ' ', microtime() );
236246 $elapsed_total = ($t2[0] - $t1[0]) + ($t2[1] - $t1[1]);
237247 $total['total_elapsed'] += $elapsed + $elapsed_total;
@@ -244,7 +254,7 @@
245255 $total_elapsed_message = '';
246256 $this->format_time_message( $this->compute_time($total['elapsed']), $elapsed_message );
247257 $this->format_time_message( $this->compute_time($total['total_elapsed']), $total_elapsed_message );
248 - $wgOut->addHTML( wfMsg('refreshspecial-total-display', $total['pages'], $total['rows'], $elapsed_message, $total_elapsed_message) );
 258+ $wgOut->addHTML( "<br />" . wfMsgExt('refreshspecial-total-display', array( 'escape', 'parsemag' ), $total['pages'], $total['rows'], $elapsed_message, $total_elapsed_message) );
249259 $wgOut->addHTML("</ul></form>");
250260 }
251261
@@ -276,4 +286,4 @@
277287 $link_back = $sk->makeKnownLinkObj( $titleObj, wfMsg('refreshspecial-link-back') );
278288 $wgOut->addHTML("<br /><b>" . $link_back . "</b>");
279289 }
280 -}
\ No newline at end of file
 290+}
Index: trunk/extensions/RefreshSpecial/RefreshSpecial.i18n.php
@@ -15,7 +15,9 @@
1616 'refreshspecial' => 'Refresh special pages',
1717 'refreshspecial-desc' => 'Allows [[Special:RefreshSpecial|manual special page refresh]] of special pages',
1818 'refreshspecial-title' => 'Refresh special pages',
19 - 'refreshspecial-help' => 'This special page provides means to manually refresh special pages. When you have chosen all pages that you want to refresh, click on the Refresh button below to make it go. Warning: the refresh may take a while on larger wikis.',
 19+ 'refreshspecial-help' => 'This special page provides means to manually refresh special pages.
 20+When you have chosen all pages that you want to refresh, click on the "Refresh selected" button below to refresh the selected special pages.
 21+Warning: the refresh may take a while on larger wikis.',
2022 'refreshspecial-button' => 'Refresh selected',
2123 'refreshspecial-fail' => 'Please check at least one special page to refresh.',
2224 'refreshspecial-refreshing' => 'refreshing special pages',
@@ -23,7 +25,7 @@
2426 'refreshspecial-success-subtitle' => 'refreshing special pages',
2527 'refreshspecial-choice' => 'refreshing special pages',
2628 'refreshspecial-js-disabled' => '(<i>You cannot select all pages when JavaScript is disabled</i>)',
27 - 'refreshspecial-select-all-pages' => ' select all pages ',
 29+ 'refreshspecial-select-all-pages' => 'Select all pages',
2830 'refreshspecial-link-back' => 'Go back to special page',
2931 'refreshspecial-none-selected' => 'You have not selected any special pages. Reverting to default selection.',
3032 'refreshspecial-db-error' => 'Failed: database error',
@@ -31,7 +33,9 @@
3234 'refreshspecial-slave-lagged' => 'Slave lagged, waiting...',
3335 'refreshspecial-reconnected' => 'Reconnected.',
3436 'refreshspecial-reconnecting' => 'Connection failed, reconnecting in 10 seconds...',
35 - 'refreshspecial-total-display' => '<br />Refreshed $1 pages totaling $2 rows in time $3 (complete time of the script run is $4)',
 37+ 'refreshspecial-page-result' => 'got $1 {{PLURAL:$1|row|rows}} in',
 38+ 'refreshspecial-total-display' => 'Refreshed $1 {{PLURAL:$1|page|pages}} totaling $2 {{PLURAL:$2|row|rows}} in time $3 (complete time of the script run is $4)',
 39+ 'right-refreshspecial' => 'Refresh special pages',
3640 );
3741
3842 /** Arabic (العربية)
@@ -49,7 +53,7 @@
5054 'refreshspecial-success-subtitle' => 'جاري تحديث الصفحات الخاصة',
5155 'refreshspecial-choice' => 'تحديث الصفحات الخاصة',
5256 'refreshspecial-js-disabled' => '(<i>أنت لا يمكنك اختيار كل الصفحات عندما تكون الجافاسكريبت معطلة</i>)',
53 - 'refreshspecial-select-all-pages' => ' اختر كل الصفحات',
 57+ 'refreshspecial-select-all-pages' => ' اختر كل الصفحات',
5458 'refreshspecial-link-back' => 'رجوع إلى الامتداد',
5559 'refreshspecial-here' => '<b>هنا</b>',
5660 'refreshspecial-none-selected' => 'أنت لم تختر أي صفحة خاصة. استرجاع إلى الاختيار الافتراضي.',
@@ -58,7 +62,7 @@
5963 'refreshspecial-slave-lagged' => 'الخادم التابع تأخر، جاري الانتظار...',
6064 'refreshspecial-reconnected' => 'تمت إعادة التوصيل.',
6165 'refreshspecial-reconnecting' => 'التوصيل فشل، إعادة التوصيل خلال 10 ثواني...',
62 - 'refreshspecial-total-display' => '<br />حدث $1 صفحة بإجمالي $2 صف في وقت $3 (الزمن الإجمالي لعمل السكريبت هو $4)',
 66+ 'refreshspecial-total-display' => 'حدث $1 صفحة بإجمالي $2 صف في وقت $3 (الزمن الإجمالي لعمل السكريبت هو $4)',
6367 );
6468
6569 /** Egyptian Spoken Arabic (مصرى)
@@ -76,7 +80,7 @@
7781 'refreshspecial-success-subtitle' => 'جارى تحديث الصفحات الخاصة',
7882 'refreshspecial-choice' => 'تحديث الصفحات الخاصة',
7983 'refreshspecial-js-disabled' => '(<i>أنت لا يمكنك اختيار كل الصفحات عندما تكون الجافاسكريبت معطلة</i>)',
80 - 'refreshspecial-select-all-pages' => ' اختر كل الصفحات',
 84+ 'refreshspecial-select-all-pages' => ' اختر كل الصفحات',
8185 'refreshspecial-link-back' => 'رجوع إلى الامتداد',
8286 'refreshspecial-here' => '<b>هنا</b>',
8387 'refreshspecial-none-selected' => 'أنت لم تختر أى صفحة خاصة. استرجاع إلى الاختيار الافتراضي.',
@@ -85,14 +89,14 @@
8690 'refreshspecial-slave-lagged' => 'الخادم التابع تأخر، جارى الانتظار...',
8791 'refreshspecial-reconnected' => 'تمت إعادة التوصيل.',
8892 'refreshspecial-reconnecting' => 'التوصيل فشل، إعادة التوصيل خلال 10 ثواني...',
89 - 'refreshspecial-total-display' => '<br />حدث $1 صفحة بإجمالى $2 صف فى وقت $3 (الزمن الإجمالى لعمل السكريبت هو $4)',
 93+ 'refreshspecial-total-display' => 'حدث $1 صفحة بإجمالى $2 صف فى وقت $3 (الزمن الإجمالى لعمل السكريبت هو $4)',
9094 );
9195
9296 /** Bulgarian (Български)
9397 * @author DCLXVI
9498 */
9599 $messages['bg'] = array(
96 - 'refreshspecial-select-all-pages' => ' избиране на всички страници',
 100+ 'refreshspecial-select-all-pages' => ' избиране на всички страници',
97101 'refreshspecial-here' => '<b>тук</b>',
98102 'refreshspecial-no-page' => 'Няма такава специална страница',
99103 );
@@ -112,7 +116,7 @@
113117 'refreshspecial-success-subtitle' => 'obnovují se speciální stránky',
114118 'refreshspecial-choice' => 'obnovují se speciální stránky',
115119 'refreshspecial-js-disabled' => '(<i>Není možné použít funkci výběru všech stránek, pokud máte vypnutý JavaScript</i>)',
116 - 'refreshspecial-select-all-pages' => ' vybrat všechny stránky',
 120+ 'refreshspecial-select-all-pages' => ' vybrat všechny stránky',
117121 'refreshspecial-link-back' => 'Zpět na rozšíření',
118122 'refreshspecial-here' => '<b>zde</b>',
119123 'refreshspecial-none-selected' => 'Nevybrali jste žádné speciální stránky. Vrací se původní výběr.',
@@ -121,7 +125,7 @@
122126 'refreshspecial-slave-lagged' => 'Spojení s databázovým slave je pomalé, čeká se…',
123127 'refreshspecial-reconnected' => 'Znovu připojený.',
124128 'refreshspecial-reconnecting' => 'Spojení selhalo, opětovné připojení za 10 sekund…',
125 - 'refreshspecial-total-display' => '<br />{{PLURAL:$1|Obnovena $1 stránka|Obnoveny $1 stránky|Obnoveno $1 stránek}}, což činí $2 {{PLURAL:$2|řádek|řádky|řádků}} za čas $3 (celkový čas běhu skriptu je $4)',
 129+ 'refreshspecial-total-display' => '{{PLURAL:$1|Obnovena $1 stránka|Obnoveny $1 stránky|Obnoveno $1 stránek}}, což činí $2 {{PLURAL:$2|řádek|řádky|řádků}} za čas $3 (celkový čas běhu skriptu je $4)',
126130 );
127131
128132 /** German (Deutsch)
@@ -141,7 +145,7 @@
142146 'refreshspecial-success-subtitle' => 'aktualisiere Spezialseiten',
143147 'refreshspecial-choice' => 'aktualisiere Spezialseiten',
144148 'refreshspecial-js-disabled' => '(<i>Du kannst nicht alle Seiten auswählen, wenn du Javascript deaktiviert hast</i>)',
145 - 'refreshspecial-select-all-pages' => ' alle Seiten auswählen',
 149+ 'refreshspecial-select-all-pages' => ' alle Seiten auswählen',
146150 'refreshspecial-link-back' => 'Zurück zur Erweiterung',
147151 'refreshspecial-here' => '<b>hier</b>',
148152 'refreshspecial-none-selected' => 'Du hast keine Spezialseiten ausgewählt; somit Zurücksetzung auf die Standardauswahl.',
@@ -150,7 +154,7 @@
151155 'refreshspecial-slave-lagged' => 'Slave-Server hängt hinterher, warten...',
152156 'refreshspecial-reconnected' => 'Wiederverbunden.',
153157 'refreshspecial-reconnecting' => 'Verbindung fehlgeschlagen, wiederverbinde in 10 Sekunden …',
154 - 'refreshspecial-total-display' => '<br />Aktualisierte $1 Seiten, insgesamt $2 Zeilen in einer Zeit von $3 (Gesamtlaufzeit des Skripts: $4)',
 158+ 'refreshspecial-total-display' => 'Aktualisierte $1 Seiten, insgesamt $2 Zeilen in einer Zeit von $3 (Gesamtlaufzeit des Skripts: $4)',
155159 );
156160
157161 /** German (formal address) (Deutsch (Sie-Form))
@@ -165,7 +169,7 @@
166170 * @author Yekrats
167171 */
168172 $messages['eo'] = array(
169 - 'refreshspecial-select-all-pages' => ' selekti ĉiujn paĝojn',
 173+ 'refreshspecial-select-all-pages' => 'selekti ĉiujn paĝojn',
170174 'refreshspecial-here' => '<b>ĉi tie</b>',
171175 );
172176
@@ -192,7 +196,7 @@
193197 'refreshspecial-success-subtitle' => 'päivitetään toimintosivuja',
194198 'refreshspecial-choice' => 'päivitetään toimintosivuja',
195199 'refreshspecial-js-disabled' => '(<i>Et voi valita kaikkia sivuja kun JavaScript on pois käytöstä</i>)',
196 - 'refreshspecial-select-all-pages' => ' valitse kaikki sivut',
 200+ 'refreshspecial-select-all-pages' => 'valitse kaikki sivut',
197201 'refreshspecial-link-back' => 'Palaa lisäosaan',
198202 'refreshspecial-here' => '<b>täällä</b>',
199203 'refreshspecial-none-selected' => 'Et ole valinnut yhtään toimintosivua. Palataan oletusasetuksiin.',
@@ -201,7 +205,7 @@
202206 'refreshspecial-slave-lagged' => 'Renki jää jälkeen, odotellaan...',
203207 'refreshspecial-reconnected' => 'Yhdistetty uudelleen.',
204208 'refreshspecial-reconnecting' => 'Yhteys epäonnistui, yritetään uudelleen 10 sekunnin kuluttua...',
205 - 'refreshspecial-total-display' => '<br />Päivitettiin $1 sivua; yhteensä $2 riviä ajassa $3 (yhteensä skriptin suorittamiseen meni aikaa $4)',
 209+ 'refreshspecial-total-display' => 'Päivitettiin $1 sivua; yhteensä $2 riviä ajassa $3 (yhteensä skriptin suorittamiseen meni aikaa $4)',
206210 );
207211
208212 /** French (Français)
@@ -230,7 +234,7 @@
231235 'refreshspecial-slave-lagged' => 'Travail retardé, en cours…',
232236 'refreshspecial-reconnected' => 'Reconnecté.',
233237 'refreshspecial-reconnecting' => 'Échec de la connection, reconnection dans 10 secondes…',
234 - 'refreshspecial-total-display' => '<br />$1 {{PLURAL:$1|page actualisée|pages actualisées}} totalisant $2 {{PLURAL:$2|ligne|lignes}} sur une durée de $3 (la durée complète de l’action du script est de $4)',
 238+ 'refreshspecial-total-display' => '$1 {{PLURAL:$1|page actualisée|pages actualisées}} totalisant $2 {{PLURAL:$2|ligne|lignes}} sur une durée de $3 (la durée complète de l’action du script est de $4)',
235239 );
236240
237241 /** Galician (Galego)
@@ -248,7 +252,7 @@
249253 'refreshspecial-success-subtitle' => 'actualizando as páxinas especiais',
250254 'refreshspecial-choice' => 'actualizando as páxinas especiais',
251255 'refreshspecial-js-disabled' => '(<i>Non pode seleccionar todas as páxinas cando o JavaScript está deshabilitado</i>)',
252 - 'refreshspecial-select-all-pages' => ' seleccionar todas as páxinas',
 256+ 'refreshspecial-select-all-pages' => ' seleccionar todas as páxinas',
253257 'refreshspecial-link-back' => 'Voltar á extensión',
254258 'refreshspecial-here' => '<b>aquí</b>',
255259 'refreshspecial-none-selected' => 'Non seleccionou ningunha páxina especial. Revertendo á selección por defecto.',
@@ -257,7 +261,7 @@
258262 'refreshspecial-slave-lagged' => 'Intervalo de retraso, agardando...',
259263 'refreshspecial-reconnected' => 'Reconectado.',
260264 'refreshspecial-reconnecting' => 'Fallou a conexión, reconectando en 10 segundos...',
261 - 'refreshspecial-total-display' => '<br />$1 páxinas refrescadas dun total de $2 liñas dunha duración de $3 (a duración completa da escritura é de $4)',
 265+ 'refreshspecial-total-display' => '$1 páxinas refrescadas dun total de $2 liñas dunha duración de $3 (a duración completa da escritura é de $4)',
262266 );
263267
264268 /** Hebrew (עברית)
@@ -283,7 +287,7 @@
284288 'refreshspecial-success-subtitle' => 'refrescamento de paginas special',
285289 'refreshspecial-choice' => 'refrescamento de paginas special',
286290 'refreshspecial-js-disabled' => '<i>(Tu non pote seliger tote le paginas si JavaScript non es active)</i>',
287 - 'refreshspecial-select-all-pages' => ' seliger tote le paginas',
 291+ 'refreshspecial-select-all-pages' => ' seliger tote le paginas',
288292 'refreshspecial-link-back' => 'Retornar al extension',
289293 'refreshspecial-here' => '<b>hic</b>',
290294 'refreshspecial-none-selected' => 'Tu non ha seligite alcun pagina special. Le selection retorna al predefinite.',
@@ -292,7 +296,7 @@
293297 'refreshspecial-slave-lagged' => 'Sclavo in retardo; attende…',
294298 'refreshspecial-reconnected' => 'Reconnectite.',
295299 'refreshspecial-reconnecting' => 'Connexion fallite, reconnexion post 10 secundas…',
296 - 'refreshspecial-total-display' => '<br />Refrescava $1 paginas con un total de $2 lineas durante $3 (le durata total del execution del script es $4)',
 300+ 'refreshspecial-total-display' => 'Refrescava $1 paginas con un total de $2 lineas durante $3 (le durata total del execution del script es $4)',
297301 );
298302
299303 /** Italian (Italiano)
@@ -317,7 +321,7 @@
318322 'refreshspecial-no-page' => 'Pagina speciale inesistente',
319323 'refreshspecial-reconnected' => 'Riconnesso.',
320324 'refreshspecial-reconnecting' => 'Connessione fallita, prossimo tentativo fra 10 secondi...',
321 - 'refreshspecial-total-display' => '<br />$1 pagine aggiornate per un totale di $2 linee in un tempo di $3 (il tempo totale di esecuzione dello script è di $4)',
 325+ 'refreshspecial-total-display' => '$1 pagine aggiornate per un totale di $2 linee in un tempo di $3 (il tempo totale di esecuzione dello script è di $4)',
322326 );
323327
324328 /** Khmer (ភាសាខ្មែរ)
@@ -370,7 +374,7 @@
371375 'refreshspecial-slave-lagged' => 'Aarbecht déi nach usteet, an der Maach ...',
372376 'refreshspecial-reconnected' => 'Nees verbonn',
373377 'refreshspecial-reconnecting' => "D'Verbindung koum net zustan, nei Verbindung an 10 Sekonnen ...",
374 - 'refreshspecial-total-display' => "<br />$1 Säite mat am Ganzen $2 Reien an $3 (Dauer) (d'Gesamtzäit déi de Script brauch ass $4)",
 378+ 'refreshspecial-total-display' => "$1 Säite mat am Ganzen $2 Reien an $3 (Dauer) (d'Gesamtzäit déi de Script brauch ass $4)",
375379 );
376380
377381 /** Erzya (Эрзянь)
@@ -408,7 +412,7 @@
409413 'refreshspecial-reconnected' => 'Weer verbonden.',
410414 'refreshspecial-reconnecting' => 'Verbinding kon niet gemaakt worden.
411415 Over 10 seconden wordt weer geprobeerd verbinding te maken...',
412 - 'refreshspecial-total-display' => "<br />Er zijn $1 pagina's ververst met $2 regels in $3 tijd (totale duur van de verwerking was $4)",
 416+ 'refreshspecial-total-display' => "Er zijn $1 pagina's ververst met $2 regels in $3 tijd (totale duur van de verwerking was $4)",
413417 );
414418
415419 /** Norwegian Nynorsk (‪Norsk (nynorsk)‬)
@@ -425,7 +429,7 @@
426430 'refreshspecial-success-subtitle' => 'oppdaterer spesialsider',
427431 'refreshspecial-choice' => 'oppdaterer spesialsider',
428432 'refreshspecial-js-disabled' => '(<i>Du kan ikkje merkja alle sider om JavaScript er slege av</i>)',
429 - 'refreshspecial-select-all-pages' => ' merk alle sider',
 433+ 'refreshspecial-select-all-pages' => ' merk alle sider',
430434 'refreshspecial-link-back' => 'Gå attende til utvidinga',
431435 'refreshspecial-here' => '<b>her</b>',
432436 'refreshspecial-none-selected' => 'Du har ikkje merkt noka spesialsida. Stiller attende til standardval.',
@@ -485,7 +489,7 @@
486490 'refreshspecial-slave-lagged' => 'Trabalh retardat, en cors…',
487491 'refreshspecial-reconnected' => 'Reconnectat.',
488492 'refreshspecial-reconnecting' => 'Fracàs de la connexion, reconnexion dins 10 segondas…',
489 - 'refreshspecial-total-display' => "<br />$1 {{PLURAL:$1|pagina actualizada|paginas actualizadas}} totalizant $2 {{PLURAL:$2|linha|linhas}} sus una durada de $3 (la durada completa de l’accion de l'escript es de $4)",
 493+ 'refreshspecial-total-display' => "$1 {{PLURAL:$1|pagina actualizada|paginas actualizadas}} totalizant $2 {{PLURAL:$2|linha|linhas}} sus una durada de $3 (la durada completa de l’accion de l'escript es de $4)",
490494 );
491495
492496 /** Polish (Polski)
@@ -512,7 +516,7 @@
513517 'refreshspecial-slave-lagged' => 'Servidor escravo com atraso, aguardando...',
514518 'refreshspecial-reconnected' => 'Reconectado.',
515519 'refreshspecial-reconnecting' => 'Conexão falhada, reconectando em 10 segundos...',
516 - 'refreshspecial-total-display' => '<br />$1 páginas refrescadas, totalizando $2 linhas em tempo $3 (tempo total de execução do script é $4)',
 520+ 'refreshspecial-total-display' => '$1 páginas refrescadas, totalizando $2 linhas em tempo $3 (tempo total de execução do script é $4)',
517521 );
518522
519523 /** Romanian (Română)
@@ -527,7 +531,7 @@
528532 * @author Ferrer
529533 */
530534 $messages['ru'] = array(
531 - 'refreshspecial-select-all-pages' => ' выбрать все страницы',
 535+ 'refreshspecial-select-all-pages' => ' выбрать все страницы',
532536 'refreshspecial-here' => '<b>здесь</b>',
533537 );
534538
@@ -546,7 +550,7 @@
547551 'refreshspecial-success-subtitle' => 'obnovujú sa špeciálne stránky',
548552 'refreshspecial-choice' => 'obnovujú sa špeciálne stránky',
549553 'refreshspecial-js-disabled' => '(<i>Nie je možné použiť funkciu výberu všetkých stránok, keď máte vypnutý JavaScript.</i>)',
550 - 'refreshspecial-select-all-pages' => ' vybrať všetky stránky',
 554+ 'refreshspecial-select-all-pages' => ' vybrať všetky stránky',
551555 'refreshspecial-link-back' => 'Späť na rozšírenie',
552556 'refreshspecial-here' => '<b>tu</b>',
553557 'refreshspecial-none-selected' => 'Nevybrali ste žiadne špeciálne stránky. Vracia sa pôvodný výber.',
@@ -555,7 +559,7 @@
556560 'refreshspecial-slave-lagged' => 'Spojenie s databázovým slave je pomalé, čaká sa...',
557561 'refreshspecial-reconnected' => 'Znovu pripojený.',
558562 'refreshspecial-reconnecting' => 'Spojenie zlyhalo, opätovné pripojenie o 10 sekúnd...',
559 - 'refreshspecial-total-display' => '<br />Obnovených $1 stránok, čo činí $2 riadkov za čas $3 (celkový čas behu skriptu je $4)',
 563+ 'refreshspecial-total-display' => 'Obnovených $1 stránok, čo činí $2 riadkov za čas $3 (celkový čas behu skriptu je $4)',
560564 );
561565
562566 /** Swedish (Svenska)
@@ -568,7 +572,7 @@
569573 'refreshspecial-refreshing' => 'uppdaterar specialsidor',
570574 'refreshspecial-success-subtitle' => 'uppdaterar specialsidor',
571575 'refreshspecial-choice' => 'uppdaterar specialsidor',
572 - 'refreshspecial-select-all-pages' => ' välj alla sidor',
 576+ 'refreshspecial-select-all-pages' => 'välj alla sidor',
573577 'refreshspecial-here' => '<b>här</b>',
574578 'refreshspecial-no-page' => 'Ingen sådan specialsida',
575579 'refreshspecial-reconnected' => 'Återansluten.',
@@ -579,7 +583,7 @@
580584 * @author Veeven
581585 */
582586 $messages['te'] = array(
583 - 'refreshspecial-select-all-pages' => ' అన్ని పేజీలను ఎంచుకోండి',
 587+ 'refreshspecial-select-all-pages' => 'అన్ని పేజీలను ఎంచుకోండి',
584588 'refreshspecial-link-back' => 'తిరిగి పొడగింతకు వెళ్ళండి',
585589 'refreshspecial-here' => '<b>ఇక్కడ</b>',
586590 'refreshspecial-db-error' => 'విఫలం: డాటాబేసు పొరపాటు',
@@ -601,7 +605,7 @@
602606 'refreshspecial-success-subtitle' => 'sinasariwa ang natatanging mga pahina',
603607 'refreshspecial-choice' => 'sinasariwa ang natatanging mga pahina',
604608 'refreshspecial-js-disabled' => '(<i>Hindi mo mapipili ang lahat ng mga pahina kapag hindi gumagana ang JavaScript</i>)',
605 - 'refreshspecial-select-all-pages' => ' piliin ang lahat ng mga pahina',
 609+ 'refreshspecial-select-all-pages' => ' piliin ang lahat ng mga pahina',
606610 'refreshspecial-link-back' => 'Magbalik sa karugtong',
607611 'refreshspecial-here' => '<b>dito</b>',
608612 'refreshspecial-none-selected' => 'Hindi ka pumili ng anumang natatanging mga pahina. Nagbabalik sa likas na nakatakdang pagpipilian.',
@@ -610,7 +614,7 @@
611615 'refreshspecial-slave-lagged' => 'Naiwan/bumagal ang alipin, naghihintay...',
612616 'refreshspecial-reconnected' => 'Muli nang naugnay.',
613617 'refreshspecial-reconnecting' => 'Nabigo ang pagkakaugnay (koneksyon), muling uugnay sa loob ng 10 segundo...',
614 - 'refreshspecial-total-display' => '<br />Nasirawa ang $1 mga pahina na bumubuo sa $2 pahalang na mga hanay sa panahong $3 (buong panahon ng pagtakbo sa panitik ay $4)',
 618+ 'refreshspecial-total-display' => 'Nasirawa ang $1 mga pahina na bumubuo sa $2 pahalang na mga hanay sa panahong $3 (buong panahon ng pagtakbo sa panitik ay $4)',
615619 );
616620
617621 /** Vietnamese (Tiếng Việt)
@@ -629,7 +633,7 @@
630634 'refreshspecial-success-subtitle' => 'đang làm mới trang đặc biệt',
631635 'refreshspecial-choice' => 'đang làm mới trang đặc biệt',
632636 'refreshspecial-js-disabled' => '(<i>Bạn không thể chọn tất cả các trang trong khi JavaScript bị tắt</i>)',
633 - 'refreshspecial-select-all-pages' => ' chọn tất cả các trang',
 637+ 'refreshspecial-select-all-pages' => ' chọn tất cả các trang',
634638 'refreshspecial-link-back' => 'Quay về bộ mở rộng',
635639 'refreshspecial-here' => '<b>tại đây</b>',
636640 'refreshspecial-none-selected' => 'Bạn chưa chọn trang đặc biệt nào. Đang quay về lựa chọn mặc định.',
@@ -638,7 +642,7 @@
639643 'refreshspecial-slave-lagged' => 'Máy phụ bị trễ, đang chờ…',
640644 'refreshspecial-reconnected' => 'Đã kết nối lại.',
641645 'refreshspecial-reconnecting' => 'Kết nối thất bại, đang kết nối lại trong 10 giây nữa…',
642 - 'refreshspecial-total-display' => '<br />Đã làm mới $1 trang, tổng cộng là $2 hàng trong thời gian $3 (thời gian để hoàn thành chạy mã kịch bản là $4)',
 646+ 'refreshspecial-total-display' => 'Đã làm mới $1 trang, tổng cộng là $2 hàng trong thời gian $3 (thời gian để hoàn thành chạy mã kịch bản là $4)',
643647 );
644648
645649 /** Simplified Chinese (‪中文(简体)‬)
Index: trunk/extensions/RefreshSpecial/RefreshSpecial.php
@@ -17,7 +17,7 @@
1818 $wgExtensionCredits['specialpage'][] = array(
1919 'name' => 'Refresh Special',
2020 'author' => 'Bartek Łapiński',
21 - 'version' => '1.1',
 21+ 'version' => '1.2',
2222 'url' => 'http://www.mediawiki.org/wiki/Extension:RefreshSpecial',
2323 'description' => 'Allows manual special page refresh of special pages',
2424 'descriptionmsg' => 'refreshspecial-desc',
@@ -25,7 +25,7 @@
2626
2727 // New user right, required to use Special:RefreshSpecial
2828 $wgAvailableRights[] = 'refreshspecial';
29 -$wgGroupPermissions['staff']['refreshspecial'] = true;
 29+$wgGroupPermissions['bureaucrat']['refreshspecial'] = true;
3030
3131 // Set up the new special page
3232 $dir = dirname(__FILE__) . '/';
@@ -33,6 +33,7 @@
3434 $wgExtensionAliasesFiles['RefreshSpecial'] = $dir . 'RefreshSpecial.alias.php';
3535 $wgAutoloadClasses['RefreshSpecial'] = $dir. 'RefreshSpecial.body.php';
3636 $wgSpecialPages['RefreshSpecial'] = 'RefreshSpecial';
 37+$wgSpecialPageGroups['RefreshSpecial'] = 'wiki';
3738
3839 /* limits the number of refreshed rows */
3940 define('REFRESHSPECIAL_ROW_LIMIT', 1000);

Status & tagging log