r64001 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64000‎ | r64001 | r64002 >
Date:15:02, 21 March 2010
Author:aaron
Status:ok
Tags:
Comment:
* Use StablePages only for the simple protection config case.
* Made a general ConfiguredPages to handle all other cases. Also solves issue of some config changes not being listed anywhere.
* Removed UnstablePages; handled by above page now.
* Added restriction level filter to Stablepages/Configuredpages.
* A few stabilization cleanups.
* Organized message order a bit.
* Renamed getPrecedenceMenu -> getPrecedenceFilterMenu
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/FlaggedRevsXML.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/api/ApiStabilize.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/language/ConfiguredPages.i18n.php (added) (history)
  • /trunk/extensions/FlaggedRevs/language/FlaggedRevs.alias.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/language/FlaggedRevs.i18n.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/language/StablePages.i18n.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/language/UnstablePages.i18n.php (deleted) (history)
  • /trunk/extensions/FlaggedRevs/specialpages/ConfiguredPages_body.php (added) (history)
  • /trunk/extensions/FlaggedRevs/specialpages/Stabilization_body.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/specialpages/StablePages_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -361,14 +361,14 @@
362362 $wgAutoloadClasses['ReviewedPages'] = $dir . 'specialpages/ReviewedPages_body.php';
363363 $wgExtensionMessagesFiles['ReviewedPages'] = $langDir . 'ReviewedPages.i18n.php';
364364 $wgSpecialPageGroups['ReviewedPages'] = 'quality';
365 -# Load stable pages list
 365+# Load stable pages list (for protection config)
366366 $wgAutoloadClasses['StablePages'] = $dir . 'specialpages/StablePages_body.php';
367367 $wgExtensionMessagesFiles['StablePages'] = $langDir . 'StablePages.i18n.php';
368368 $wgSpecialPageGroups['StablePages'] = 'quality';
369 -# Load unstable pages list
370 -$wgAutoloadClasses['UnstablePages'] = $dir . 'specialpages/UnstablePages_body.php';
371 -$wgExtensionMessagesFiles['UnstablePages'] = $langDir . 'UnstablePages.i18n.php';
372 -$wgSpecialPageGroups['UnstablePages'] = 'quality';
 369+# Load configured pages list (non-protection config)
 370+$wgAutoloadClasses['ConfiguredPages'] = $dir . 'specialpages/ConfiguredPages_body.php';
 371+$wgExtensionMessagesFiles['ConfiguredPages'] = $langDir . 'ConfiguredPages.i18n.php';
 372+$wgSpecialPageGroups['ConfiguredPages'] = 'quality';
373373 # To oversee quality revisions
374374 $wgAutoloadClasses['QualityOversight'] = $dir . 'specialpages/QualityOversight_body.php';
375375 $wgExtensionMessagesFiles['QualityOversight'] = $langDir . 'QualityOversight.i18n.php';
Index: trunk/extensions/FlaggedRevs/language/UnstablePages.i18n.php
@@ -1,795 +0,0 @@
2 -<?php
3 -/**
4 - * Internationalisation file for FlaggedRevs extension, section UnstablePages
5 - *
6 - * @addtogroup Extensions
7 - */
8 -
9 -$messages = array();
10 -
11 -$messages['en'] = array(
12 - 'unstablepages' => 'Unstable pages',
13 - 'unstablepages-stable' => 'published version',
14 - 'unstablepages-text' => 'Below is a list of pages manually configured to show the draft version as the default page content for viewers.',
15 - 'unstablepages-none' => 'There are no pages in this list',
16 - 'unstablepages-config' => 'Configuration',
17 -);
18 -
19 -/** Message documentation (Message documentation)
20 - * @author Darth Kule
21 - * @author EugeneZelenko
22 - */
23 -$messages['qqq'] = array(
24 - 'unstablepages' => '{{Flagged Revs}}',
25 - 'unstablepages-stable' => '{{Flagged Revs}}',
26 - 'unstablepages-text' => '{{Flagged Revs}}',
27 - 'unstablepages-none' => '{{Flagged Revs}}',
28 - 'unstablepages-config' => '{{Flagged Revs}}
29 -{{Identical|Configuration}}',
30 -);
31 -
32 -/** Afrikaans (Afrikaans)
33 - * @author Arnobarnard
34 - * @author Naudefj
35 - */
36 -$messages['af'] = array(
37 - 'unstablepages-stable' => 'gepubliseerde weergawe',
38 - 'unstablepages-config' => 'Voorkeure',
39 -);
40 -
41 -/** Arabic (العربية)
42 - * @author Meno25
43 - */
44 -$messages['ar'] = array(
45 - 'unstablepages' => 'صفحات غير مستقرة',
46 - 'unstablepages-stable' => 'نسخة منشورة',
47 - 'unstablepages-text' => 'بالأسفل قائمة بالصفحات المضبوطة يدويا لعرض نسخة المسودة كمحتوى الصفحة الافتراضي للقراء.',
48 - 'unstablepages-none' => 'لا توجد صفحات في هذه القائمة',
49 - 'unstablepages-config' => 'ضبط',
50 -);
51 -
52 -/** Egyptian Spoken Arabic (مصرى)
53 - * @author Dudi
54 - * @author Meno25
55 - */
56 -$messages['arz'] = array(
57 - 'unstablepages' => 'صفحات غير مستقرة',
58 - 'unstablepages-stable' => 'نسخه منشوره',
59 - 'unstablepages-text' => 'بالأسفل قائمه بالصفحات المضبوطه يدويا لعرض نسخه المسوده كمحتوى الصفحه الافتراضى للقراء.',
60 - 'unstablepages-none' => 'لا توجد صفحات فى هذه القائمة',
61 - 'unstablepages-config' => 'ضبط',
62 -);
63 -
64 -/** Belarusian (Taraškievica orthography) (Беларуская (тарашкевіца))
65 - * @author EugeneZelenko
66 - * @author Jim-by
67 - * @author Red Winged Duck
68 - */
69 -$messages['be-tarask'] = array(
70 - 'unstablepages' => 'Нестабільныя старонкі',
71 - 'unstablepages-stable' => 'апублікаваная вэрсія',
72 - 'unstablepages-text' => 'Ніжэй пададзены сьпіс старонак, у якіх уручную ўсталяваны паказ па змоўчаньні накіду старонкі для чытачоў.',
73 - 'unstablepages-none' => 'У гэтым сьпісе няма старонак',
74 - 'unstablepages-config' => 'Канфігурацыя',
75 -);
76 -
77 -/** Bulgarian (Български)
78 - * @author DCLXVI
79 - * @author Turin
80 - */
81 -$messages['bg'] = array(
82 - 'unstablepages' => 'Неустойчиви страници',
83 - 'unstablepages-stable' => 'устойчива версия',
84 - 'unstablepages-none' => 'Няма страници в този списък',
85 - 'unstablepages-config' => 'Настройка',
86 -);
87 -
88 -/** Breton (Brezhoneg)
89 - * @author Fulup
90 - * @author Y-M D
91 - */
92 -$messages['br'] = array(
93 - 'unstablepages' => 'Pajennoù distabil',
94 - 'unstablepages-stable' => 'stumm embannet',
95 - 'unstablepages-text' => "A-is ez eus ur roll pajennoù kefluniet gant an dorn evit ma vefe diskwelet ar stumm brouilhed dre ziouer d'al lennerien.",
96 - 'unstablepages-none' => "N'eus pajenn ebet er roll-mañ",
97 - 'unstablepages-config' => 'Kefluniañ',
98 -);
99 -
100 -/** Bosnian (Bosanski)
101 - * @author CERminator
102 - */
103 -$messages['bs'] = array(
104 - 'unstablepages' => 'Nestabilne stranice',
105 - 'unstablepages-stable' => 'objavljena verzija',
106 - 'unstablepages-text' => 'Ispod je spisak stranica koje su ručno podešene da prikazuju nacrt verzije kao pretpostavljenu stranicu sadržaja za korisnike.',
107 - 'unstablepages-none' => 'Nema stranica na ovom spisku',
108 - 'unstablepages-config' => 'Konfiguracija',
109 -);
110 -
111 -/** Catalan (Català)
112 - * @author Aleator
113 - * @author Paucabot
114 - */
115 -$messages['ca'] = array(
116 - 'unstablepages' => 'Pàgines no estables',
117 - 'unstablepages-stable' => 'versió publicada',
118 - 'unstablepages-none' => 'No hi ha pàgines en aquesta llista',
119 - 'unstablepages-config' => 'Configuració',
120 -);
121 -
122 -/** Czech (Česky)
123 - * @author Matěj Grabovský
124 - * @author Reaperman
125 - */
126 -$messages['cs'] = array(
127 - 'unstablepages' => 'Nestabilní stránky',
128 - 'unstablepages-stable' => 'stabilní verze',
129 - 'unstablepages-text' => 'Toto je seznam stránek, které byly ručně nastaveny, aby se zobrazovala jejich verze návrhu jako standardní stránka s obsahem pro čtenáře.',
130 - 'unstablepages-none' => 'Tento seznam neobsahuje žádné stránky',
131 - 'unstablepages-config' => 'Nastavení',
132 -);
133 -
134 -/** German (Deutsch)
135 - * @author DaSch
136 - * @author Metalhead64
137 - * @author Revolus
138 - */
139 -$messages['de'] = array(
140 - 'unstablepages' => 'Unstabile Seiten',
141 - 'unstablepages-stable' => 'gesichtete Version',
142 - 'unstablepages-text' => 'Es folgt eine Liste der Seiten, die individuell konfiguriert wurden, damit die Entwurfsversion als Standardinhalt für Leser angezeigt wird.',
143 - 'unstablepages-none' => 'Die Liste ist leer.',
144 - 'unstablepages-config' => 'Konfiguration',
145 -);
146 -
147 -/** Zazaki (Zazaki)
148 - * @author Xoser
149 - */
150 -$messages['diq'] = array(
151 - 'unstablepages' => 'Pelanê stabilize niyo',
152 - 'unstablepages-stable' => 'versiyonê stableyî',
153 - 'unstablepages-text' => 'Cor de yew liste esto ke pelan mucneno, aye pelan de configure biyo ke versiyonê darftî default pele mucneno/.',
154 - 'unstablepages-none' => 'Ena liste de yew pel zi çini yo',
155 - 'unstablepages-config' => 'Konfigurasyon',
156 -);
157 -
158 -/** Lower Sorbian (Dolnoserbski)
159 - * @author Michawiki
160 - */
161 -$messages['dsb'] = array(
162 - 'unstablepages' => 'Njestabilne boki',
163 - 'unstablepages-stable' => 'wózjawjona wersija',
164 - 'unstablepages-text' => 'Slědujo lisćina bokow, kótarež su se manuelnje konfigurěrowali, aby pokazali nacerjeńsku wersiju ako standardne wopśimjeśe za wobglědowarjow.',
165 - 'unstablepages-none' => 'Toś ta lisćina njewopśimujo boki',
166 - 'unstablepages-config' => 'Konfiguracija',
167 -);
168 -
169 -/** Greek (Ελληνικά)
170 - * @author Dead3y3
171 - */
172 -$messages['el'] = array(
173 - 'unstablepages' => 'Ασταθείς σελίδες',
174 - 'unstablepages-stable' => 'σταθερή έκδοση',
175 - 'unstablepages-text' => 'Παρακάτω είναι ένας κατάλογος των σελίδων που είναι χειροκίνητα ρυθμισμένες να εμφανίζουν την πρόχειρη έκδοση ως το προεπιλεγμένο περιεχόμενο σελίδας για τους αναγνώστες.',
176 - 'unstablepages-none' => 'Δεν υπάρχουν σελίδες σε αυτό τον κατάλογο',
177 - 'unstablepages-config' => 'Ρύθμιση',
178 -);
179 -
180 -/** Esperanto (Esperanto)
181 - * @author Yekrats
182 - */
183 -$messages['eo'] = array(
184 - 'unstablepages' => 'Malstabilaj paĝoj',
185 - 'unstablepages-stable' => 'publikigita versio',
186 - 'unstablepages-text' => 'Jen listo de paĝoj permane konfiguritaj por montri la malnetan version kiel defaŭltan paĝ-enhavon por legantoj.',
187 - 'unstablepages-none' => 'Neniuj paĝoj estas en ĉi tiu listo',
188 - 'unstablepages-config' => 'Konfiguro',
189 -);
190 -
191 -/** Spanish (Español)
192 - * @author Crazymadlover
193 - * @author Translationista
194 - */
195 -$messages['es'] = array(
196 - 'unstablepages' => 'Páginas inestables',
197 - 'unstablepages-stable' => 'versión publicada',
198 - 'unstablepages-text' => 'Debajo hay una lista de páginas manualmente configuradas para mostrar la versión boceto como la página de contenido por defecto para visitantes.',
199 - 'unstablepages-none' => 'No hay páginas en esta lista',
200 - 'unstablepages-config' => 'Configuración',
201 -);
202 -
203 -/** Estonian (Eesti)
204 - * @author Avjoska
205 - */
206 -$messages['et'] = array(
207 - 'unstablepages-none' => 'Selles loendis ei ole lehekülgi',
208 -);
209 -
210 -/** Basque (Euskara)
211 - * @author An13sa
212 - * @author Kobazulo
213 - */
214 -$messages['eu'] = array(
215 - 'unstablepages' => 'Orrialde ezegonkorrak',
216 - 'unstablepages-stable' => 'argitaratutako bertsioa',
217 - 'unstablepages-none' => 'Zerrenda honetan ez dago orrialderik',
218 - 'unstablepages-config' => 'Konfigurazioa',
219 -);
220 -
221 -/** Persian (فارسی)
222 - * @author Huji
223 - * @author Mardetanha
224 - */
225 -$messages['fa'] = array(
226 - 'unstablepages' => 'نسخه ناپایدار',
227 - 'unstablepages-stable' => 'نسخهٔ پایدار',
228 - 'unstablepages-text' => 'در زیر فهرستی از صفحه‌هایی را می‌بینید که به طور دستی تنظیم شده‌اند تا نسخه پیش‌نویس را به عنوان پیش‌فرض به بینندگان نمایش دهند.',
229 - 'unstablepages-none' => 'هیچ صفحه‌ای در در این فهرست وجود ندارد',
230 - 'unstablepages-config' => 'پیکربندی',
231 -);
232 -
233 -/** Finnish (Suomi)
234 - * @author Crt
235 - * @author Str4nd
236 - * @author ZeiP
237 - */
238 -$messages['fi'] = array(
239 - 'unstablepages' => 'Epävakaat sivut',
240 - 'unstablepages-stable' => 'julkaistu versio',
241 - 'unstablepages-text' => 'Alla on lista manuaalisesti asetetuista sivuista, joilla luonnosversio on oletussisältö lukijoille.',
242 - 'unstablepages-none' => 'Tällä listalla ei ole sivuja',
243 - 'unstablepages-config' => 'Asetukset',
244 -);
245 -
246 -/** French (Français)
247 - * @author Grondin
248 - * @author IAlex
249 - * @author PieRRoMaN
250 - * @author Verdy p
251 - */
252 -$messages['fr'] = array(
253 - 'unstablepages' => 'Pages non stables',
254 - 'unstablepages-stable' => 'version publiée',
255 - 'unstablepages-text' => 'Ci-dessous se trouve une liste des pages configurées manuellement pour que le contenu de leur version brouillon soit affiché par défaut pour les lecteurs.',
256 - 'unstablepages-none' => 'Il n’y a aucune page dans cette liste.',
257 - 'unstablepages-config' => 'Configuration',
258 -);
259 -
260 -/** Franco-Provençal (Arpetan)
261 - * @author ChrisPtDe
262 - */
263 -$messages['frp'] = array(
264 - 'unstablepages' => 'Pâges pas stâbles.',
265 - 'unstablepages-stable' => 'vèrsion publeyê',
266 - 'unstablepages-text' => 'Vê-que una lista de les pâges configurâs a la man por que lo contegnu de lor vèrsion brolyon seye montrâ per dèfôt por los liésors.',
267 - 'unstablepages-none' => 'Y at gins de pâge dens ceta lista.',
268 - 'unstablepages-config' => 'Configuracion',
269 -);
270 -
271 -/** Galician (Galego)
272 - * @author Toliño
273 - */
274 -$messages['gl'] = array(
275 - 'unstablepages' => 'Páxinas non estables',
276 - 'unstablepages-stable' => 'versión publicada',
277 - 'unstablepages-text' => 'Embaixo hai unha lista de páxinas configuradas manualmente para amosar aos lectores a versión borrador por omisión como páxina de contido.',
278 - 'unstablepages-none' => 'Non hai páxinas nesta lista',
279 - 'unstablepages-config' => 'Configuración',
280 -);
281 -
282 -/** Ancient Greek (Ἀρχαία ἑλληνικὴ)
283 - * @author Crazymadlover
284 - * @author Omnipaedista
285 - */
286 -$messages['grc'] = array(
287 - 'unstablepages' => 'Δέλτοι ἀσταθεῖς',
288 - 'unstablepages-stable' => 'σταθερὰ ἔκδοσις',
289 - 'unstablepages-config' => 'Διαμόρφωσις',
290 -);
291 -
292 -/** Swiss German (Alemannisch)
293 - * @author Als-Holder
294 - */
295 -$messages['gsw'] = array(
296 - 'unstablepages' => 'Uustabili Syte',
297 - 'unstablepages-stable' => 'Vereffetligti Version',
298 - 'unstablepages-text' => 'Do chunnt e Lischt mit Syte, wu vu Hand konfiguriert isch, ass dr Entwurf im Läser as Standardinhalt aazeigt wird.',
299 - 'unstablepages-none' => 'S het keini Syte in däre Lischt.',
300 - 'unstablepages-config' => 'Konfiguration',
301 -);
302 -
303 -/** Hebrew (עברית)
304 - * @author DoviJ
305 - * @author Rotemliss
306 - */
307 -$messages['he'] = array(
308 - 'unstablepages' => 'דפים לא יציבים',
309 - 'unstablepages-stable' => 'גרסה יציבה',
310 - 'unstablepages-text' => 'להלן רשימת הדפים שהוגדרו ידנית להציג לקוראים את גרסת הטיוטה כברירת מחדל.',
311 - 'unstablepages-none' => 'אין דפים ברשימה זו.',
312 - 'unstablepages-config' => 'תצורה',
313 -);
314 -
315 -/** Croatian (Hrvatski)
316 - * @author Dalibor Bosits
317 - * @author Ex13
318 - */
319 -$messages['hr'] = array(
320 - 'unstablepages' => 'Nevažeće stranice',
321 - 'unstablepages-stable' => 'važeća inačica',
322 - 'unstablepages-text' => 'Ovo je popis stranica kojima je ručno postavljena inačica u radu kao glavni sadržaj stranice za gledatelje.',
323 - 'unstablepages-none' => 'Nema stranica na ovom popisu',
324 - 'unstablepages-config' => 'Konfiguracija',
325 -);
326 -
327 -/** Upper Sorbian (Hornjoserbsce)
328 - * @author Michawiki
329 - */
330 -$messages['hsb'] = array(
331 - 'unstablepages' => 'Njestabilne strony',
332 - 'unstablepages-stable' => 'wozjewjena wersija',
333 - 'unstablepages-text' => 'Deleka je lisćina stronow, kotrež buchu manuelnje konfigurowane, zo bychu naćiskowu wersiju jako standardny wobsah strony za přehladowarjow pokazali.',
334 - 'unstablepages-none' => 'W tutej lisćinje strony njejsu.',
335 - 'unstablepages-config' => 'Konfiguracija',
336 -);
337 -
338 -/** Hungarian (Magyar)
339 - * @author Dani
340 - * @author Glanthor Reviol
341 - */
342 -$messages['hu'] = array(
343 - 'unstablepages' => 'Nem stabil lapok',
344 - 'unstablepages-stable' => 'közzétett változat',
345 - 'unstablepages-text' => 'Lent azon lapok listája található, amelyeknél külön be lett állítva, hogy az olvasók számára mindig a legutolsó változat jelenjen meg.',
346 - 'unstablepages-none' => 'Nincsenek lapok a listában',
347 - 'unstablepages-config' => 'beállítás',
348 -);
349 -
350 -/** Interlingua (Interlingua)
351 - * @author McDutchie
352 - */
353 -$messages['ia'] = array(
354 - 'unstablepages' => 'Paginas instabile',
355 - 'unstablepages-stable' => 'version publicate',
356 - 'unstablepages-text' => 'Infra es un lista de paginas manualmente configurate de modo que le version provisori se monstra como le contento predefinite del pagina pro visitatores.',
357 - 'unstablepages-none' => 'Il non ha paginas in iste lista',
358 - 'unstablepages-config' => 'Configuration',
359 -);
360 -
361 -/** Indonesian (Bahasa Indonesia)
362 - * @author Rex
363 - */
364 -$messages['id'] = array(
365 - 'unstablepages' => 'Halaman takstabil',
366 - 'unstablepages-stable' => 'versi stabil',
367 - 'unstablepages-text' => 'Berikut adalah daftar halaman yang dikonfigurasi secara manual untuk menampilkan versi draf sebagai standar halaman yang ditampilkan kepada pembaca.',
368 - 'unstablepages-none' => 'Tidak ada halaman di dalam daftar ini.',
369 - 'unstablepages-config' => 'Konfigurasi',
370 -);
371 -
372 -/** Italian (Italiano)
373 - * @author Darth Kule
374 - */
375 -$messages['it'] = array(
376 - 'unstablepages' => 'Pagine instabili',
377 - 'unstablepages-stable' => 'versione stabile',
378 - 'unstablepages-text' => 'Di seguito sono elencate le pagine configurate manualmente in modo tale da mostrare per default le versioni di bozza ai visitatori.',
379 - 'unstablepages-none' => 'Nessuna pagina in questo elenco',
380 - 'unstablepages-config' => 'Configurazione',
381 -);
382 -
383 -/** Japanese (日本語)
384 - * @author Aotake
385 - * @author Fryed-peach
386 - * @author Whym
387 - */
388 -$messages['ja'] = array(
389 - 'unstablepages' => '固定されていないページ',
390 - 'unstablepages-stable' => '公開版',
391 - 'unstablepages-text' => '以下では候補版を既定で閲覧者に表示するよう手動で設定されたページを一覧します。',
392 - 'unstablepages-none' => '表示すべきページはありません',
393 - 'unstablepages-config' => '設定',
394 -);
395 -
396 -/** Javanese (Basa Jawa)
397 - * @author Pras
398 - */
399 -$messages['jv'] = array(
400 - 'unstablepages' => 'Kaca ora stabil',
401 - 'unstablepages-stable' => 'vèrsi stabil',
402 - 'unstablepages-none' => 'Ora ana kaca ing dhaptar iki',
403 - 'unstablepages-config' => 'Konfigurasi',
404 -);
405 -
406 -/** Georgian (ქართული)
407 - * @author BRUTE
408 - */
409 -$messages['ka'] = array(
410 - 'unstablepages-config' => 'კონფიგურაცია',
411 -);
412 -
413 -/** Khmer (ភាសាខ្មែរ)
414 - * @author Thearith
415 - */
416 -$messages['km'] = array(
417 - 'unstablepages' => 'ទំព័រ​មិន​ឋិតថេរ',
418 - 'unstablepages-stable' => 'កំណែ​ថេរ',
419 - 'unstablepages-none' => 'មិនមាន​ទំព័រ​នៅ​ក្នុង​បញ្ជី​នេះ​ទេ',
420 - 'unstablepages-config' => 'ការកំណត់រចនាសម្ព័ន្ធ',
421 -);
422 -
423 -/** Korean (한국어)
424 - * @author Kwj2772
425 - */
426 -$messages['ko'] = array(
427 - 'unstablepages-stable' => '안정 버전',
428 - 'unstablepages-text' => '다음은 초안 버전을 독자에게 기본 문서 버전으로 보여주도록 설정한 문서의 목록입니다.',
429 - 'unstablepages-none' => '이 목록에 문서가 없습니다.',
430 - 'unstablepages-config' => '설정',
431 -);
432 -
433 -/** Ripoarisch (Ripoarisch)
434 - * @author Purodha
435 - */
436 -$messages['ksh'] = array(
437 - 'unstablepages' => 'Nit stabile Sigge',
438 - 'unstablepages-stable' => 'stabile Version',
439 - 'unstablepages-text' => 'Wat follesch es en Leß met Sigge, woh fun Hand för enjestallt wood, dat se standadmääßesch en de neuste Äntworfsversion aanjezeisch wääde.',
440 - 'unstablepages-none' => 'Mer han kein Sigge en hee dä Leß',
441 - 'unstablepages-config' => 'Enstellunge',
442 -);
443 -
444 -/** Luxembourgish (Lëtzebuergesch)
445 - * @author Robby
446 - */
447 -$messages['lb'] = array(
448 - 'unstablepages' => 'Net stabil Säiten',
449 - 'unstablepages-stable' => 'publizéiert Versioun',
450 - 'unstablepages-text' => "Hei ass eng Lëscht vu Säiten déi manuell agestallt goufen fir déi provisoresch (draft) Versioun als Säit par defaut fir déi Leit déi d'Sàite nokucken (reviewers)",
451 - 'unstablepages-none' => 'Et gëtt keng Säiten op dëser Lëscht',
452 - 'unstablepages-config' => 'Configuratioun',
453 -);
454 -
455 -/** Macedonian (Македонски)
456 - * @author Bjankuloski06
457 - * @author Brest
458 - */
459 -$messages['mk'] = array(
460 - 'unstablepages' => 'Нестабилна страница',
461 - 'unstablepages-stable' => 'објавена верзија',
462 - 'unstablepages-text' => 'Следи листа на страници рачно конфигурирани кои прикажуваат работни верзии како основна содржина за прегледувачите.',
463 - 'unstablepages-none' => 'Нема страници во оваа листа',
464 - 'unstablepages-config' => 'Конфигурација',
465 -);
466 -
467 -/** Malayalam (മലയാളം)
468 - * @author Praveenp
469 - * @author Sadik Khalid
470 - */
471 -$messages['ml'] = array(
472 - 'unstablepages' => 'സന്തുലിതമല്ലാത്ത താളുകള്‍',
473 - 'unstablepages-stable' => 'പ്രസിദ്ധീകരിക്കപ്പെട്ട പതിപ്പ്',
474 - 'unstablepages-text' => 'വായനക്കാർക്ക് ലഭിക്കുന്ന ഉള്ളടക്കം കരടാണെന്നു സ്വതവേ പ്രത്യക്ഷപ്പെടാൻ ഉപയോക്താക്കൾ സജ്ജീകരിച്ച താളുകളുടെ പട്ടികയാണ് താഴെ.',
475 - 'unstablepages-none' => 'ഈ പട്ടികയില്‍ താളുകളൊന്നുമില്ല',
476 - 'unstablepages-config' => 'ക്രമീകരണങ്ങള്‍',
477 -);
478 -
479 -/** Malay (Bahasa Melayu)
480 - * @author Kurniasan
481 - */
482 -$messages['ms'] = array(
483 - 'unstablepages' => 'Halaman tidak stabil',
484 - 'unstablepages-stable' => 'versi stabil',
485 - 'unstablepages-none' => 'Tiada halaman dalam senarai ini',
486 - 'unstablepages-config' => 'Tatarajah',
487 -);
488 -
489 -/** Dutch (Nederlands)
490 - * @author Siebrand
491 - */
492 -$messages['nl'] = array(
493 - 'unstablepages' => "Instabiele pagina's",
494 - 'unstablepages-stable' => 'gepubliceerde versie',
495 - 'unstablepages-text' => "Deze pagina bevat een lijst met pagina's waarvoor is ingesteld dat standaard de werkversie wordt weergegeven.",
496 - 'unstablepages-none' => "Er staan geen pagina's in deze lijst.",
497 - 'unstablepages-config' => 'Instellingen',
498 -);
499 -
500 -/** Norwegian Nynorsk (‪Norsk (nynorsk)‬)
501 - * @author Harald Khan
502 - */
503 -$messages['nn'] = array(
504 - 'unstablepages' => 'Ustabile sider',
505 - 'unstablepages-stable' => 'stabil versjon',
506 - 'unstablepages-text' => 'Under er ei lista over sider manuelt sette til å syna utkastet som standardinnhald for lesarar.',
507 - 'unstablepages-none' => 'Det finst ingen sider i denne lista',
508 - 'unstablepages-config' => 'Konfigurasjon',
509 -);
510 -
511 -/** Norwegian (bokmål)‬ (‪Norsk (bokmål)‬)
512 - * @author Nghtwlkr
513 - */
514 -$messages['no'] = array(
515 - 'unstablepages' => 'Ustabile sider',
516 - 'unstablepages-stable' => 'publisert versjon',
517 - 'unstablepages-text' => 'Under er en liste over sider manuelt satt opp til å vise utkastet som standardsideinnhold for lesere.',
518 - 'unstablepages-none' => 'Det finnes ingen sider i denne listen',
519 - 'unstablepages-config' => 'Konfigurasjon',
520 -);
521 -
522 -/** Occitan (Occitan)
523 - * @author Cedric31
524 - */
525 -$messages['oc'] = array(
526 - 'unstablepages' => 'Paginas instablas',
527 - 'unstablepages-stable' => 'version publicada',
528 - 'unstablepages-text' => 'Çaijós se tròba una lista de paginas configuradas manualament per afichar la version borrolhon coma contengut de pagina per defaut per los relectors.',
529 - 'unstablepages-none' => 'I a pas cap de pagina dins aquesta lista.',
530 - 'unstablepages-config' => 'Configuracion',
531 -);
532 -
533 -/** Polish (Polski)
534 - * @author Leinad
535 - * @author Sp5uhe
536 - * @author ToSter
537 - */
538 -$messages['pl'] = array(
539 - 'unstablepages' => 'Strony z domyślnie prezentowaną wersją bieżącą',
540 - 'unstablepages-stable' => 'wersja opublikowana',
541 - 'unstablepages-text' => 'Poniżej znajduje się lista stron tak skonfigurowanych, by czytelnikom domyślnie prezentowana była ich wersja robocza.',
542 - 'unstablepages-none' => 'Brak stron na tej liście',
543 - 'unstablepages-config' => 'Konfiguracja',
544 -);
545 -
546 -/** Piedmontese (Piemontèis)
547 - * @author Borichèt
548 - * @author Dragonòt
549 - */
550 -$messages['pms'] = array(
551 - 'unstablepages' => 'Pàgine anstàbij',
552 - 'unstablepages-stable' => 'version publicà',
553 - 'unstablepages-text' => 'Sota a-i é na lista ëd pàgine configurà manualment për mosté la vërsion sbòss com ël contnù ëd default ëd la pàgina për ij visitador.',
554 - 'unstablepages-none' => 'A-i é pa gnun-e pàgine an sta lista-sì',
555 - 'unstablepages-config' => 'Configurassion',
556 -);
557 -
558 -/** Portuguese (Português)
559 - * @author Hamilton Abreu
560 - * @author Malafaya
561 - */
562 -$messages['pt'] = array(
563 - 'unstablepages' => 'Páginas instáveis',
564 - 'unstablepages-stable' => 'versão publicada',
565 - 'unstablepages-text' => 'Abaixo encontra-se uma lista de página manualmente configuradas para mostrar aos leitores a versão rascunho como conteúdo por defeito da página.',
566 - 'unstablepages-none' => 'Não há páginas nesta lista',
567 - 'unstablepages-config' => 'Configuração',
568 -);
569 -
570 -/** Brazilian Portuguese (Português do Brasil)
571 - * @author Eduardo.mps
572 - */
573 -$messages['pt-br'] = array(
574 - 'unstablepages' => 'Páginas instáveis',
575 - 'unstablepages-stable' => 'versão estável',
576 - 'unstablepages-text' => 'Abaixo encontra-se uma lista de página manualmente configuradas para mostrar aos leitores a versão rascunho como conteúdo da página por omissão.',
577 - 'unstablepages-none' => 'Não há páginas nesta lista',
578 - 'unstablepages-config' => 'Configuração',
579 -);
580 -
581 -/** Romanian (Română)
582 - * @author Firilacroco
583 - * @author KlaudiuMihaila
584 - */
585 -$messages['ro'] = array(
586 - 'unstablepages' => 'Pagini instabile',
587 - 'unstablepages-stable' => 'versiune stabilă',
588 - 'unstablepages-none' => 'Nu există pagini în această listă',
589 - 'unstablepages-config' => 'Configuraţie',
590 -);
591 -
592 -/** Tarandíne (Tarandíne)
593 - * @author Joetaras
594 - */
595 -$messages['roa-tara'] = array(
596 - 'unstablepages' => 'Pàggene ingerte',
597 - 'unstablepages-stable' => 'versione pubblecate',
598 - 'unstablepages-text' => "Sotte ste 'na liste de pàggene configurete manualmende pe fà vedè 'a versione a bozza cumme pàgene de default pe le condenute pe le revisitatore.",
599 - 'unstablepages-none' => "Non ge stonne pàgene jndr'à sta liste",
600 - 'unstablepages-config' => 'Configurazione',
601 -);
602 -
603 -/** Russian (Русский)
604 - * @author Kaganer
605 - * @author Александр Сигачёв
606 - */
607 -$messages['ru'] = array(
608 - 'unstablepages' => 'Нестабильные страницы',
609 - 'unstablepages-stable' => 'опубликованная версия',
610 - 'unstablepages-text' => 'Ниже приведён список страниц, для которых вручную установлена настройка показа по умолчанию черновой версии.',
611 - 'unstablepages-none' => 'В данном списке нет страниц',
612 - 'unstablepages-config' => 'Настройка',
613 -);
614 -
615 -/** Yakut (Саха тыла)
616 - * @author HalanTul
617 - */
618 -$messages['sah'] = array(
619 - 'unstablepages' => 'Бигэргэтиллибэтэх барыллар',
620 - 'unstablepages-stable' => 'бигэ барыл',
621 - 'unstablepages-text' => 'Манна ыстатыйа харатын көрдөрөргө диэн туруоруулаах ыстатыйалар тиһиктэрэ бэриллэр.',
622 - 'unstablepages-none' => 'Бу тиһиккэ сирэйдэр суохтар',
623 - 'unstablepages-config' => 'Туруоруута',
624 -);
625 -
626 -/** Slovak (Slovenčina)
627 - * @author Helix84
628 - */
629 -$messages['sk'] = array(
630 - 'unstablepages' => 'Nestabilné stránky',
631 - 'unstablepages-stable' => 'stabilná verzia',
632 - 'unstablepages-text' => 'Toto je zoznam stránok, ktoré boli ručne nastavené, aby sa zobrazovala ich verzia návrhu ako štandardná stránka s obsahom pre čitateľov.',
633 - 'unstablepages-none' => 'Tento zoznam neobsahuje žiadne stránky',
634 - 'unstablepages-config' => 'Nastavenie',
635 -);
636 -
637 -/** Lower Silesian (Schläsch)
638 - * @author Jonny84
639 - * @author Schläsinger
640 - */
641 -$messages['sli'] = array(
642 - 'unstablepages' => 'Unstabile Seyta',
643 - 'unstablepages-stable' => 'Stabile Version',
644 - 'unstablepages-text' => 'Es folgt eine Liste der Seiten, die individuell konfiguriert wurden, damit die Entwurfsversion als Standardinhalt für Leser angezeigt wird.',
645 - 'unstablepages-none' => 'De Liste ies laar.',
646 - 'unstablepages-config' => 'Konfiguration',
647 -);
648 -
649 -/** Albanian (Shqip)
650 - * @author Puntori
651 - */
652 -$messages['sq'] = array(
653 - 'unstablepages-config' => 'Konfigurim',
654 -);
655 -
656 -/** Serbian Cyrillic ekavian (Српски (ћирилица))
657 - * @author Михајло Анђелковић
658 - */
659 -$messages['sr-ec'] = array(
660 - 'unstablepages-stable' => 'стабилна верзија',
661 - 'unstablepages-config' => 'Конфигурација',
662 -);
663 -
664 -/** Serbian Latin ekavian (Srpski (latinica))
665 - * @author Michaello
666 - */
667 -$messages['sr-el'] = array(
668 - 'unstablepages-stable' => 'stabilna verzija',
669 - 'unstablepages-config' => 'Konfiguracija',
670 -);
671 -
672 -/** Swedish (Svenska)
673 - * @author Boivie
674 - * @author Najami
675 - */
676 -$messages['sv'] = array(
677 - 'unstablepages' => 'Ostabila sidor',
678 - 'unstablepages-stable' => 'publicerad version',
679 - 'unstablepages-text' => 'Nedan visas en lista över sidor som manuellt har konfigurerats att visa utkastet som standardsideinnehåll för läsare.',
680 - 'unstablepages-none' => 'Det finns inga sidor i den här listan',
681 - 'unstablepages-config' => 'Konfigurering',
682 -);
683 -
684 -/** Telugu (తెలుగు)
685 - * @author Kiranmayee
686 - * @author Veeven
687 - */
688 -$messages['te'] = array(
689 - 'unstablepages' => 'నిలకడ లేని పేజీలు',
690 - 'unstablepages-stable' => 'ప్రచురిత కూర్పు',
691 - 'unstablepages-none' => 'ఈ జాబితాలో పేజీలేమీ లేవు',
692 - 'unstablepages-config' => 'స్వరూపణం',
693 -);
694 -
695 -/** Turkmen (Türkmençe)
696 - * @author Hanberke
697 - */
698 -$messages['tk'] = array(
699 - 'unstablepages' => 'Durnuksyz sahypalar',
700 - 'unstablepages-stable' => 'durnukly wersiýa',
701 - 'unstablepages-text' => 'Aşakda garalama wersiýany zyýaratçylara gaýybana sahypa mazmuny hökmünde görkezmek üçin el bilen konfigurirlenen sahypalryň sanawy görkezilýär.',
702 - 'unstablepages-none' => 'Bu sanawda hiç hili sahypa ýok.',
703 - 'unstablepages-config' => 'Konfigurasiýa',
704 -);
705 -
706 -/** Tagalog (Tagalog)
707 - * @author AnakngAraw
708 - */
709 -$messages['tl'] = array(
710 - 'unstablepages' => 'Mga pahinang hindi matatag (pabagubago)',
711 - 'unstablepages-stable' => 'matatag na bersyon',
712 - 'unstablepages-text' => 'Nasa ibaba ang isang talaan ng mga pahinang kinamay ang pagkakaayos (nagdaan sa manwal na paraan ng konpigurasyon) upang makita ang bersyon ng balangkas (burador) bilang likas na itinakdang pahina ng nilalaman para sa mga tumatanaw.',
713 - 'unstablepages-none' => 'Walang mga pahina sa talaang ito',
714 - 'unstablepages-config' => 'Pagkakaayos (Konpigurasyon)',
715 -);
716 -
717 -/** Turkish (Türkçe)
718 - * @author Joseph
719 - */
720 -$messages['tr'] = array(
721 - 'unstablepages' => 'Kararsız sayfalar',
722 - 'unstablepages-stable' => 'yayımlanmış sürüm',
723 - 'unstablepages-text' => 'Aşağıdaki liste, ziyaretçilere geçerli sayfa içeriği olarak taslak sürümü gösterecek şekilde elle yapılandırılmış sayfaların listesidir.',
724 - 'unstablepages-none' => 'Bu listede hiç sayfa yok',
725 - 'unstablepages-config' => 'Yapılandırma',
726 -);
727 -
728 -/** Ukrainian (Українська)
729 - * @author Ahonc
730 - * @author Prima klasy4na
731 - */
732 -$messages['uk'] = array(
733 - 'unstablepages' => 'Нестабільні сторінки',
734 - 'unstablepages-stable' => 'опублікована версія',
735 - 'unstablepages-text' => 'Нижче наведений список сторінок, для яких вручну встановлене налаштування показувати чорнову версію за умовчанням.',
736 - 'unstablepages-none' => 'У цьому списку нема сторінок',
737 - 'unstablepages-config' => 'Налаштування',
738 -);
739 -
740 -/** Vèneto (Vèneto)
741 - * @author Candalua
742 - */
743 -$messages['vec'] = array(
744 - 'unstablepages' => 'Pagine mia stabili',
745 - 'unstablepages-stable' => 'version publicà',
746 - 'unstablepages-text' => 'Sta qua la xe na lista de pagine configurà manualmente par mostrar la version de bozza come contenuto de default par i letori.',
747 - 'unstablepages-none' => 'No ghe xe pagine su sta lista.',
748 - 'unstablepages-config' => 'Configurassion',
749 -);
750 -
751 -/** Veps (Vepsan kel')
752 - * @author Игорь Бродский
753 - */
754 -$messages['vep'] = array(
755 - 'unstablepages' => 'Stabilitomad lehtpoled',
756 - 'unstablepages-stable' => 'Publikoitud versii',
757 - 'unstablepages-text' => 'Kehtpoled, kudambiden täht om ičeksaz sätud järgenduz "ozutada mustkirjutuz augotižjärgendusen mödhe" (nimikirjutez).',
758 - 'unstablepages-none' => 'Neciš nimikirjuteses ei ole lehtpolid',
759 - 'unstablepages-config' => 'Järgendused',
760 -);
761 -
762 -/** Vietnamese (Tiếng Việt)
763 - * @author Minh Nguyen
764 - * @author Vinhtantran
765 - */
766 -$messages['vi'] = array(
767 - 'unstablepages' => 'Các trang không ổn định',
768 - 'unstablepages-stable' => 'bản công bố',
769 - 'unstablepages-text' => 'Đây là danh sách các trang được thiết lập để hiển thị phiên bản nháp theo mặc định.',
770 - 'unstablepages-none' => 'Không có trang nào trong danh sách',
771 - 'unstablepages-config' => 'Thiết lập',
772 -);
773 -
774 -/** Simplified Chinese (‪中文(简体)‬)
775 - * @author Bencmq
776 - * @author Gaoxuewei
777 - */
778 -$messages['zh-hans'] = array(
779 - 'unstablepages' => '不完善页面',
780 - 'unstablepages-stable' => '完美版本',
781 - 'unstablepages-text' => '以下页面已设置为默认显示草稿版本。',
782 - 'unstablepages-none' => '本列表中没有页面',
783 - 'unstablepages-config' => '配置',
784 -);
785 -
786 -/** Traditional Chinese (‪中文(繁體)‬)
787 - * @author Gaoxuewei
788 - */
789 -$messages['zh-hant'] = array(
790 - 'unstablepages' => '不完善頁面',
791 - 'unstablepages-stable' => '完美版本',
792 - 'unstablepages-text' => '以下頁面已設置為默認顯示草稿版本。',
793 - 'unstablepages-none' => '本列表中沒有頁面',
794 - 'unstablepages-config' => '配置',
795 -);
796 -
Index: trunk/extensions/FlaggedRevs/language/FlaggedRevs.alias.php
@@ -18,9 +18,9 @@
1919 'RevisionReview' => array( 'RevisionReview' ),
2020 'Stabilization' => array( 'Stabilization', 'Stabilisation' ),
2121 'StablePages' => array( 'StablePages' ),
 22+ 'ConfiguredPages' => array( 'ConfiguredPages' ),
2223 'ReviewedVersions' => array( 'ReviewedVersions', 'StableVersions' /*old name*/ ),
2324 'UnreviewedPages' => array( 'UnreviewedPages' ),
24 - 'UnstablePages' => array( 'UnstablePages' ),
2525 'ValidationStatistics' => array( 'ValidationStatistics' ),
2626 );
2727
@@ -44,7 +44,6 @@
4545 'StablePages' => array( 'صفحات_مستقرة' ),
4646 'ReviewedVersions' => array( 'نسخ_مراجعة', 'نسخ_مستقرة' ),
4747 'UnreviewedPages' => array( 'صفحات_غير_مراجعة' ),
48 - 'UnstablePages' => array( 'صفحات_غير_مستقرة' ),
4948 'ValidationStatistics' => array( 'إحصاءات_التحقق' ),
5049 );
5150
@@ -59,7 +58,6 @@
6059 'StablePages' => array( 'صفحات_مستقرة' ),
6160 'ReviewedVersions' => array( 'نسخ_مراجعة', 'نسخ_مستقرة' ),
6261 'UnreviewedPages' => array( 'صفحات_مش_مراجعة' ),
63 - 'UnstablePages' => array( 'صفحات_مش_مستقرة' ),
6462 'ValidationStatistics' => array( 'إحصاءات_التحقق' ),
6563 );
6664
@@ -86,7 +84,6 @@
8785 'Stabilization' => array( 'Stabilizacija' ),
8886 'StablePages' => array( 'StabilneStranice' ),
8987 'UnreviewedPages' => array( 'NeprovjereneStranice' ),
90 - 'UnstablePages' => array( 'NestabilneStranice' ),
9188 'ValidationStatistics' => array( 'StatistikeValidacije' ),
9289 );
9390
@@ -99,7 +96,6 @@
10097 'Stabilization' => array( 'Seitenkonfiguration', 'Stabilisierung' ),
10198 'StablePages' => array( 'Konfigurierte Seiten' ),
10299 'UnreviewedPages' => array( 'Ungesichtete Seiten' ),
103 - 'UnstablePages' => array( 'Unstabile Seiten' ),
104100 'ValidationStatistics' => array( 'Markierungsstatistik' ),
105101 );
106102
@@ -112,7 +108,6 @@
113109 'Stabilization' => array( 'Stabilizacija' ),
114110 'StablePages' => array( 'Stabilne boki' ),
115111 'UnreviewedPages' => array( 'Njepśeglědane boki' ),
116 - 'UnstablePages' => array( 'Njestabilne boki' ),
117112 'ValidationStatistics' => array( 'Statistika pśeglědanjow' ),
118113 );
119114
@@ -141,7 +136,6 @@
142137 'StablePages' => array( 'صفحه‌های_پایدار' ),
143138 'ReviewedVersions' => array( 'نسخه‌های_پایدار' ),
144139 'UnreviewedPages' => array( 'صفحه‌های‌بازبینی‌نشده' ),
145 - 'UnstablePages' => array( 'صفحه‌های_ناپایدار' ),
146140 'ValidationStatistics' => array( 'آمار_تاییدها' ),
147141 );
148142
@@ -151,7 +145,6 @@
152146 'Stabilization' => array( 'Vakaaksi versioksi' ),
153147 'StablePages' => array( 'Vakaat sivut' ),
154148 'UnreviewedPages' => array( 'Arvioimattomat sivut' ),
155 - 'UnstablePages' => array( 'Epävakaat sivut' ),
156149 );
157150
158151 /** French (Français) */
@@ -162,7 +155,6 @@
163156 'RevisionReview' => array( 'Relecture des révisions' ),
164157 'StablePages' => array( 'Pages stables' ),
165158 'UnreviewedPages' => array( 'Pages non relues' ),
166 - 'UnstablePages' => array( 'Pages instables' ),
167159 'ValidationStatistics' => array( 'Statistiques de validation' ),
168160 );
169161
@@ -175,7 +167,6 @@
176168 'Stabilization' => array( 'Stabilisacion' ),
177169 'StablePages' => array( 'Pâges stâbles', 'PâgesStâbles' ),
178170 'UnreviewedPages' => array( 'Pâges pas revues', 'PâgesPasRevues' ),
179 - 'UnstablePages' => array( 'Pâges enstâbles', 'PâgesEnstâbles' ),
180171 'ValidationStatistics' => array( 'Statistiques de validacion', 'StatistiquesDeValidacion' ),
181172 );
182173
@@ -188,7 +179,6 @@
189180 'Stabilization' => array( 'Estabilización' ),
190181 'StablePages' => array( 'Páxinas estábeis' ),
191182 'UnreviewedPages' => array( 'Páxinas non revisadas' ),
192 - 'UnstablePages' => array( 'Páxinas non estables' ),
193183 'ValidationStatistics' => array( 'Estatísticas de validación' ),
194184 );
195185
@@ -201,7 +191,6 @@
202192 'Stabilization' => array( 'Sytekonfiguration' ),
203193 'StablePages' => array( 'Konfigurierti Syte' ),
204194 'UnreviewedPages' => array( 'Syte wu nit gsichtet sin' ),
205 - 'UnstablePages' => array( 'Syte wu nit konfiguriert sin' ),
206195 'ValidationStatistics' => array( 'Markierigsstatischtik' ),
207196 );
208197
@@ -238,7 +227,6 @@
239228 'Stabilization' => array( 'Stabilizacija' ),
240229 'StablePages' => array( 'Stabilne strony' ),
241230 'UnreviewedPages' => array( 'Njepřehladane strony' ),
242 - 'UnstablePages' => array( 'Njestabilne strony' ),
243231 'ValidationStatistics' => array( 'Statistika přehladanjow' ),
244232 );
245233
@@ -251,7 +239,6 @@
252240 'Stabilization' => array( 'Lap rögzítése' ),
253241 'StablePages' => array( 'Rögzített lapok' ),
254242 'UnreviewedPages' => array( 'Ellenőrizetlen lapok' ),
255 - 'UnstablePages' => array( 'Nem rögzített lapok', 'Rögzítetlen lapok' ),
256243 'ValidationStatistics' => array( 'Ellenőrzési statisztika' ),
257244 );
258245
@@ -265,7 +252,6 @@
266253 'StablePages' => array( 'Paginas publicate', 'Paginas stabile' ),
267254 'ReviewedVersions' => array( 'Versiones revidite', 'Versiones stabile' ),
268255 'UnreviewedPages' => array( 'Paginas non revidite' ),
269 - 'UnstablePages' => array( 'Paginas non stabile' ),
270256 'ValidationStatistics' => array( 'Statisticas de validation' ),
271257 );
272258
@@ -279,7 +265,6 @@
280266 'Stabilization' => array( 'Stabilisasi' ),
281267 'StablePages' => array( 'Halaman stabil', 'HalamanStabil' ),
282268 'UnreviewedPages' => array( 'Halaman yang belum ditinjau', 'HalamanBelumDitinjau' ),
283 - 'UnstablePages' => array( 'Halaman tak stabil', 'HalamanTakStabil' ),
284269 'ValidationStatistics' => array( 'Statistik validasi', 'StatistikValidasi' ),
285270 );
286271
@@ -293,7 +278,6 @@
294279 'Stabilization' => array( '固定', '採択', 'ページの採択' ),
295280 'StablePages' => array( '固定ページ', '安定ページ', '採用ページ' ),
296281 'UnreviewedPages' => array( '未査読ページ', '査読待ちページ' ),
297 - 'UnstablePages' => array( '未固定ページ', '非安定ページ' ),
298282 'ValidationStatistics' => array( '判定統計' ),
299283 );
300284
@@ -314,7 +298,6 @@
315299 'StablePages' => array( 'Stabil Säiten' ),
316300 'ReviewedVersions' => array( 'Stabil Versiounen' ),
317301 'UnreviewedPages' => array( 'Net iwwerpréifte Säiten' ),
318 - 'UnstablePages' => array( 'Net stabil Säiten' ),
319302 'ValidationStatistics' => array( 'Statistik vun den iwwerpréifte Säiten' ),
320303 );
321304
@@ -329,7 +312,6 @@
330313 'StablePages' => array( 'СтабилниСтраници' ),
331314 'ReviewedVersions' => array( 'ПрегледаниВерзии', 'СтабилниВерзии' ),
332315 'UnreviewedPages' => array( 'НепрегледаниСтраници' ),
333 - 'UnstablePages' => array( 'НестабилниСтраници' ),
334316 'ValidationStatistics' => array( 'ВалидацискиСтатистики' ),
335317 );
336318
@@ -344,7 +326,6 @@
345327 'StablePages' => array( 'സ്ഥിരതാളുകള്‍' ),
346328 'ReviewedVersions' => array( 'സംശോധിതപതിപ്പുകൾ', 'സ്ഥിരതയുള്ള പതിപ്പുകൾ' ),
347329 'UnreviewedPages' => array( 'സംശോധനംചെയ്യാത്തതാളുകൾ' ),
348 - 'UnstablePages' => array( 'അസ്ഥിരതാളുകള്‍' ),
349330 'ValidationStatistics' => array( 'മൂല്യനിർണ്ണയസ്ഥിതിവിവരം' ),
350331 );
351332
@@ -357,7 +338,6 @@
358339 'Stabilization' => array( 'स्थिरीकरण' ),
359340 'StablePages' => array( 'स्थिरपाने' ),
360341 'UnreviewedPages' => array( 'नतपासलेलीपाने' ),
361 - 'UnstablePages' => array( 'अस्थीरपाने' ),
362342 );
363343
364344 /** Malay (Bahasa Melayu) */
@@ -379,7 +359,6 @@
380360 'Stabilization' => array( 'Stabilisasie' ),
381361 'StablePages' => array( "Stebiele_pagina's" ),
382362 'UnreviewedPages' => array( "Pagina's_zonder_eindredactie" ),
383 - 'UnstablePages' => array( "Instebiele_pagina's" ),
384363 'ValidationStatistics' => array( 'Eindredactiestaotestieken' ),
385364 );
386365
@@ -394,7 +373,6 @@
395374 'StablePages' => array( 'StabielePaginas', "StabielePagina's" ),
396375 'ReviewedVersions' => array( 'GecontroleerdeVersies', 'StabieleVersies' ),
397376 'UnreviewedPages' => array( 'PaginasZonderEindredactie', "Pagina'sZonderEindredactie" ),
398 - 'UnstablePages' => array( 'InstabielePaginas', "InstabielePagina's" ),
399377 'ValidationStatistics' => array( 'Eindredactiestatistieken', 'StatistiekenEindredactie' ),
400378 );
401379
@@ -407,7 +385,6 @@
408386 'Stabilization' => array( 'Stabilisering' ),
409387 'StablePages' => array( 'Stabile sider' ),
410388 'UnreviewedPages' => array( 'Ikkje-vurderte sider' ),
411 - 'UnstablePages' => array( 'Ustabile sider' ),
412389 'ValidationStatistics' => array( 'Valideringsstatistikk' ),
413390 );
414391
@@ -422,7 +399,6 @@
423400 'StablePages' => array( 'Stabile sider' ),
424401 'ReviewedVersions' => array( 'Gjennomgåtte sider' ),
425402 'UnreviewedPages' => array( 'Ikke-gjennomgåtte sider' ),
426 - 'UnstablePages' => array( 'Ustabile sider' ),
427403 'ValidationStatistics' => array( 'Valideringsstatistikk' ),
428404 );
429405
@@ -434,7 +410,6 @@
435411 'RevisionReview' => array( 'Relectura de las revisions' ),
436412 'StablePages' => array( 'Paginas establas', 'PaginasEstablas' ),
437413 'UnreviewedPages' => array( 'Paginas pas relegidas', 'PaginasPasRelegidas' ),
438 - 'UnstablePages' => array( 'Paginas instablas', 'PaginasInstablas', 'PaginasPas Relegidas' ),
439414 );
440415
441416 /** Polish (Polski) */
@@ -447,7 +422,6 @@
448423 'Stabilization' => array( 'Konfiguracja strony' ),
449424 'StablePages' => array( 'Strony stabilizowane', 'Strony z domyślnie pokazywaną wersją oznaczoną' ),
450425 'UnreviewedPages' => array( 'Nieprzejrzane strony' ),
451 - 'UnstablePages' => array( 'Strony destabilizowane', 'Strony z domyślnie pokazywaną wersją bieżącą' ),
452426 'ValidationStatistics' => array( 'Statystyki oznaczania' ),
453427 );
454428
@@ -461,7 +435,6 @@
462436 'StablePages' => array( 'Páginas estáveis' ),
463437 'ReviewedVersions' => array( 'Versões revistas' ),
464438 'UnreviewedPages' => array( 'Páginas a analisar' ),
465 - 'UnstablePages' => array( 'Páginas instáveis' ),
466439 'ValidationStatistics' => array( 'Estatísticas de validação' ),
467440 );
468441
@@ -474,7 +447,6 @@
475448 'Stabilization' => array( 'Estabilização' ),
476449 'StablePages' => array( 'Páginas_estáveis' ),
477450 'UnreviewedPages' => array( 'Páginas_a_analisar' ),
478 - 'UnstablePages' => array( 'Páginas instáveis' ),
479451 'ValidationStatistics' => array( 'Estatísticas de validação' ),
480452 );
481453
@@ -487,7 +459,6 @@
488460 'Stabilization' => array( 'स्वास्थ्य' ),
489461 'StablePages' => array( 'स्वस्थपृष्ठ' ),
490462 'UnreviewedPages' => array( 'असमसमीक्षीतपृष्ठ:' ),
491 - 'UnstablePages' => array( 'अस्थीरपृष्ठ' ),
492463 'ValidationStatistics' => array( 'उपयोगितासिद्धीसांख्यिकी' ),
493464 );
494465
@@ -501,7 +472,6 @@
502473 'Stabilization' => array( 'Stabilizácia' ),
503474 'StablePages' => array( 'StabilnéStránky' ),
504475 'UnreviewedPages' => array( 'NeskontrolovanéStránky' ),
505 - 'UnstablePages' => array( 'NestabilnéStránky' ),
506476 'ValidationStatistics' => array( 'ŠtatistikaOverovania' ),
507477 );
508478
@@ -509,7 +479,6 @@
510480 $aliases['sq'] = array(
511481 'Stabilization' => array( 'Stabilizim' ),
512482 'StablePages' => array( 'FaqetStabile' ),
513 - 'UnstablePages' => array( 'FaqetJoStabile' ),
514483 );
515484
516485 /** Serbian Cyrillic ekavian (Српски (ћирилица)) */
@@ -530,7 +499,6 @@
531500 'Stabilization' => array( 'Stabilisering' ),
532501 'StablePages' => array( 'Stabila sidor' ),
533502 'UnreviewedPages' => array( 'Ogranskade sidor' ),
534 - 'UnstablePages' => array( 'Ostabila sidor' ),
535503 'ValidationStatistics' => array( 'Valideringsstatistik' ),
536504 );
537505
@@ -541,7 +509,6 @@
542510 'Stabilization' => array( 'Uimalishaji' ),
543511 'StablePages' => array( 'KurasaImara' ),
544512 'UnreviewedPages' => array( 'KurasaZisizoonyeshwa' ),
545 - 'UnstablePages' => array( 'KurasaZisizomadhubuti' ),
546513 'ValidationStatistics' => array( 'TakwimuIliyosahihi' ),
547514 );
548515
@@ -554,7 +521,6 @@
555522 'Stabilization' => array( 'Pagpapatatag', 'pagpapatibay' ),
556523 'StablePages' => array( 'Matatag na mga pahina' ),
557524 'UnreviewedPages' => array( 'Mga pahina hindi pa nasusuri' ),
558 - 'UnstablePages' => array( 'Hindi matatag na mga pahina' ),
559525 'ValidationStatistics' => array( 'Mga estadistika ng pagtitiyak' ),
560526 );
561527
@@ -569,7 +535,6 @@
570536 'StablePages' => array( 'StabilSayfalar', 'İstikrarlıSayfalar' ),
571537 'ReviewedVersions' => array( 'İncelenmişSürümler', 'StabilSürümler' ),
572538 'UnreviewedPages' => array( 'İncelenmemişSayfalar' ),
573 - 'UnstablePages' => array( 'StabilOlmayanSayfalar', 'İstikrarsızSayfalar' ),
574539 'ValidationStatistics' => array( 'Doğrulamaİstatistikleri' ),
575540 );
576541
@@ -580,7 +545,6 @@
581546 'ReviewedPages' => array( 'PagineRiesaminà' ),
582547 'StablePages' => array( 'PagineStabili' ),
583548 'UnreviewedPages' => array( 'PagineNonRiesaminà' ),
584 - 'UnstablePages' => array( 'PagineMiaStabili' ),
585549 'ValidationStatistics' => array( 'StatìstegheDeValidassion' ),
586550 );
587551
Index: trunk/extensions/FlaggedRevs/language/ConfiguredPages.i18n.php
@@ -0,0 +1,23 @@
 2+<?php
 3+/**
 4+ * Internationalisation file for FlaggedRevs extension, section ConfiguredPages
 5+ *
 6+ * @addtogroup Extensions
 7+ */
 8+
 9+$messages = array();
 10+
 11+$messages['en'] = array(
 12+ 'configuredpages' => 'Pages with review configurations',
 13+ 'configuredpages-text' => 'Below is a list of pages configured to have different approval settings than the site default.
 14+
 15+Some settings might change which version is displayed to readers or further restrict who can make edits that don\'t require review.',
 16+ 'configuredpages-none' => 'There are no pages in this list.',
 17+ 'configuredpages-config' => 'Configuration',
 18+ 'configuredpages-precedence' => 'Precedence:',
 19+ 'configuredpages-prec-none' => 'latest checked',
 20+ 'configuredpages-prec-quality' => 'latest quality',
 21+ 'configuredpages-prec-pristine' => 'latest pristine',
 22+ 'configuredpages-def-draft' => 'latest version',
 23+ 'configuredpages-def-stable' => 'published version',
 24+);
Property changes on: trunk/extensions/FlaggedRevs/language/ConfiguredPages.i18n.php
___________________________________________________________________
Name: svn:eol-style
125 + native
Index: trunk/extensions/FlaggedRevs/language/FlaggedRevs.i18n.php
@@ -197,20 +197,32 @@
198198
199199 'revreview-filter-all' => 'all',
200200 'revreview-filter-stable' => 'published',
 201+
 202+ 'revreview-statusfilter' => 'Status change:',
201203 'revreview-filter-approved' => 'Approved',
202204 'revreview-filter-reapproved' => 'Re-approved',
203205 'revreview-filter-unapproved' => 'Unapproved',
 206+
 207+ 'revreview-typefilter' => 'Type:',
204208 'revreview-filter-auto' => 'Automatic',
205209 'revreview-filter-manual' => 'Manual',
206 - 'revreview-statusfilter' => 'Status change:',
207 - 'revreview-typefilter' => 'Type:',
 210+
208211 'revreview-levelfilter' => 'Level:',
209 -
 212+ 'revreview-precedencefilter' => 'Precedence:',
210213 'revreview-lev-all' => 'any',
211214 'revreview-lev-basic' => 'checked',
212215 'revreview-lev-quality' => 'quality',
213216 'revreview-lev-pristine' => 'pristine',
214 -
 217+
 218+ 'revreview-defaultfilter' => 'Default version:',
 219+ 'revreview-def-all' => 'any',
 220+ 'revreview-def-draft' => 'latest',
 221+ 'revreview-def-stable' => 'published',
 222+
 223+ 'revreview-restrictfilter' => 'Restriction level:',
 224+ 'revreview-restriction-any' => 'any',
 225+ 'revreview-restriction-none' => 'none',
 226+
215227 'revreview-reviewlink' => 'review',
216228
217229 'tooltip-ca-current' => 'View this page with pending changes',
Index: trunk/extensions/FlaggedRevs/language/StablePages.i18n.php
@@ -9,13 +9,9 @@
1010
1111 $messages['en'] = array(
1212 'stablepages' => 'Pages using edit approval',
13 - 'stablepages-text' => 'Below is a list of pages manually configured to show the published version as the default page content for readers.',
14 - 'stablepages-none' => 'There are no pages in this list',
 13+ 'stablepages-text' => 'Below is a list of pages that are restricted so that only certain users can make edits that don\'t require review. Such edits are not published until an authorized user reviews them.',
 14+ 'stablepages-none' => 'There are no pages in this list.',
1515 'stablepages-config' => 'Configuration',
16 - 'stablepages-prec-none' => 'latest checked',
17 - 'stablepages-prec-quality' => 'latest quality',
18 - 'stablepages-prec-pristine' => 'latest pristine',
19 - 'stablepages-precedence' => 'Precedence:',
2016 );
2117
2218 /** Message documentation (Message documentation)
Index: trunk/extensions/FlaggedRevs/specialpages/Stabilization_body.php
@@ -128,17 +128,22 @@
129129 $comment = $this->reason; // just use custom reason
130130 }
131131 $this->reason = $comment;
132 - // Make sure default version settings is 0 or 1
133 - if ( $this->override !== 0 && $this->override !== 1 ) {
134 - return false;
135 - }
136 - // Protection levels used: ignore fpc_select
 132+ // Protection level case...
137133 if( FlaggedRevs::useProtectionLevels() ) {
138 - $this->select = FlaggedRevs::getPrecedence(); // default
139 - // Otherwise: validate precedence setting
 134+ # Autoreview restriction => use stable
 135+ # No autoreview restriction => site default
 136+ $this->override = ($this->autoreview != '')
 137+ ? 1 // edits require review before being published
 138+ : (int)FlaggedRevs::isStableShownByDefault();
 139+ # Leave the selection precedence alone
 140+ $this->select = FlaggedRevs::getPrecedence();
 141+ // General case...
140142 } else {
 143+ if ( $this->override !== 0 && $this->override !== 1 ) {
 144+ return false; // default version settings is 0 or 1
 145+ }
141146 if ( !FlaggedRevs::isValidPrecedence( $this->select ) ) {
142 - return false; // invalid value
 147+ return false; // invalid precedence value
143148 }
144149 }
145150 // Check autoreview setting
@@ -269,9 +274,9 @@
270275 Xml::radioLabel( wfMsg( 'stabilization-select2' ), 'wpStableconfig-select',
271276 FLAGGED_VIS_LATEST, 'stable-select2', FLAGGED_VIS_LATEST == $this->select,
272277 $this->disabledAttrib ) . '<br />' . "\n" .
273 - Xml::closeElement( 'fieldset' ) .
274 -
275 - Xml::fieldset( wfMsg( 'stabilization-restrict' ), false ) .
 278+ Xml::closeElement( 'fieldset' );
 279+ # Add autoreview restriction select
 280+ $form .= Xml::fieldset( wfMsg( 'stabilization-restrict' ), false ) .
276281 $this->buildSelector( $this->autoreview ) .
277282 Xml::closeElement( 'fieldset' ) .
278283
@@ -551,8 +556,7 @@
552557 protected function configIsReset( $select, $override, $autoreview ) {
553558 # For protection config, just ignore the fpc_select column
554559 if( FlaggedRevs::useProtectionLevels() ) {
555 - return ( $override == FlaggedRevs::isStableShownByDefault()
556 - && $autoreview == '' );
 560+ return ( $autoreview == '' );
557561 } else {
558562 return ( $select == FlaggedRevs::getPrecedence()
559563 && $override == FlaggedRevs::isStableShownByDefault()
Index: trunk/extensions/FlaggedRevs/specialpages/ConfiguredPages_body.php
@@ -0,0 +1,212 @@
 2+<?php
 3+if ( !defined( 'MEDIAWIKI' ) ) {
 4+ echo "FlaggedRevs extension\n";
 5+ exit( 1 );
 6+}
 7+
 8+// Assumes $wgFlaggedRevsProtection is off
 9+class ConfiguredPages extends SpecialPage
 10+{
 11+ public function __construct() {
 12+ parent::__construct( 'ConfiguredPages' );
 13+ }
 14+
 15+ public function execute( $par ) {
 16+ global $wgRequest, $wgUser;
 17+
 18+ $this->setHeaders();
 19+ $this->skin = $wgUser->getSkin();
 20+
 21+ $this->namespace = $wgRequest->getIntOrNull( 'namespace' );
 22+ $this->override = $wgRequest->getIntOrNull( 'stable' );
 23+ $this->precedence = $wgRequest->getIntOrNull( 'precedence' );
 24+ $this->autoreview = $wgRequest->getVal( 'restriction', '' );
 25+
 26+ $this->showForm();
 27+ $this->showPageList();
 28+ }
 29+
 30+ protected function showForm() {
 31+ global $wgOut, $wgScript;
 32+ $wgOut->addHTML( wfMsgExt( 'configuredpages-text', array( 'parseinline' ) ) );
 33+ $fields = array();
 34+ # Namespace selector
 35+ if ( count( FlaggedRevs::getReviewNamespaces() ) > 1 ) {
 36+ $fields[] = FlaggedRevsXML::getNamespaceMenu( $this->namespace, '' );
 37+ }
 38+ # Default version selector
 39+ $fields[] = FlaggedRevsXML::getDefaultFilterMenu( $this->override );
 40+ # Restriction level selector
 41+ if( FlaggedRevs::getRestrictionLevels() ) {
 42+ $fields[] = FlaggedRevsXML::getRestrictionFilterMenu( $this->autoreview );
 43+ }
 44+ # Stable version selection precedence
 45+ if ( FlaggedRevs::qualityVersions() ) {
 46+ $fields[] = FlaggedRevsXML::getPrecedenceFilterMenu( $this->precedence );
 47+ }
 48+ if ( count( $fields ) ) {
 49+ $form = Xml::openElement( 'form',
 50+ array( 'name' => 'configuredpages', 'action' => $wgScript, 'method' => 'get' ) );
 51+ $form .= Xml::hidden( 'title', $this->getTitle()->getPrefixedDBKey() );
 52+ $form .= "<fieldset><legend>" . wfMsg( 'configuredpages' ) . "</legend>\n";
 53+ $form .= implode( '&nbsp;', $fields ) . '<br/>';
 54+ $form .= Xml::submitButton( wfMsg( 'go' ) );
 55+ $form .= "</fieldset>\n";
 56+ $form .= Xml::closeElement( 'form' );
 57+ $wgOut->addHTML( $form );
 58+ }
 59+ }
 60+
 61+ protected function showPageList() {
 62+ global $wgOut;
 63+ # Take this opportunity to purge out expired configurations
 64+ FlaggedRevs::purgeExpiredConfigurations();
 65+ $pager = new ConfiguredPagesPager( $this, array(),
 66+ $this->namespace, $this->override, $this->precedence, $this->autoreview );
 67+ if ( $pager->getNumRows() ) {
 68+ $wgOut->addHTML( $pager->getNavigationBar() );
 69+ $wgOut->addHTML( $pager->getBody() );
 70+ $wgOut->addHTML( $pager->getNavigationBar() );
 71+ } else {
 72+ $wgOut->addHTML( wfMsgExt( 'configuredpages-none', array( 'parse' ) ) );
 73+ }
 74+ }
 75+
 76+ public function formatRow( $row ) {
 77+ global $wgLang;
 78+ $title = Title::makeTitle( $row->page_namespace, $row->page_title );
 79+ # Link to page
 80+ $link = $this->skin->makeKnownLinkObj( $title, $title->getPrefixedText() );
 81+ # Link to page configuration
 82+ $config = $this->skin->makeKnownLinkObj(
 83+ SpecialPage::getTitleFor( 'Stabilization' ),
 84+ wfMsgHtml( 'configuredpages-config' ),
 85+ 'page=' . $title->getPrefixedUrl()
 86+ );
 87+ # Show which version is the default (stable or draft)
 88+ if( intval( $row->fpc_override ) ) {
 89+ $default = wfMsgHtml( 'configuredpages-def-stable' );
 90+ } else {
 91+ $default = wfMsgHtml( 'configuredpages-def-draft' );
 92+ }
 93+ // Show precedence if there are several possible levels
 94+ $type = '';
 95+ if ( FlaggedRevs::qualityVersions() ) {
 96+ $select = intval( $row->fpc_select );
 97+ if ( $select === FLAGGED_VIS_PRISTINE ) {
 98+ $type = wfMsgHtml( 'configuredpages-prec-pristine' );
 99+ } elseif ( $select === FLAGGED_VIS_QUALITY ) {
 100+ $type = wfMsgHtml( 'configuredpages-prec-quality' );
 101+ } elseif( $select === FLAGGED_VIS_LATEST ) {
 102+ $type = wfMsgHtml( 'configuredpages-prec-none' );
 103+ }
 104+ if( $type ) $type = "({$type})";
 105+ }
 106+ # Autoreview/review restriction level
 107+ $restr = '';
 108+ if( $row->fpc_level != '' ) {
 109+ $restr = 'autoreview='.htmlspecialchars($row->fpc_level);
 110+ $restr = "[$restr]";
 111+ }
 112+ # When these configuration settings expire
 113+ if ( $row->fpc_expiry != 'infinity' && strlen( $row->fpc_expiry ) ) {
 114+ $expiry_description = " (" . wfMsgForContent(
 115+ 'protect-expiring',
 116+ $wgLang->timeanddate( $row->fpc_expiry ),
 117+ $wgLang->date( $row->fpc_expiry ),
 118+ $wgLang->time( $row->fpc_expiry )
 119+ ) . ")";
 120+ } else {
 121+ $expiry_description = "";
 122+ }
 123+ return "<li>{$link} ({$config}) <b>[$default]</b> {$type} {$restr}<i>{$expiry_description}</i></li>";
 124+ }
 125+}
 126+
 127+/**
 128+ * Query to list out stable versions for a page
 129+ */
 130+class ConfiguredPagesPager extends AlphabeticPager {
 131+ public $mForm, $mConds, $namespace, $override, $precedence, $autoreview;
 132+
 133+ // @param int $namespace (null for "all")
 134+ // @param int $override (null for "either")
 135+ // @param int $precedence (null for "all")
 136+ // @param string $autoreview ('' for "all", 'none' for no restriction)
 137+ function __construct(
 138+ $form, $conds = array(), $namespace, $override, $precedence, $autoreview
 139+ ) {
 140+ $this->mForm = $form;
 141+ $this->mConds = $conds;
 142+ # Must be content pages...
 143+ $validNS = FlaggedRevs::getReviewNamespaces();
 144+ if ( is_integer( $namespace ) ) {
 145+ if ( !in_array( $namespace, $validNS ) ) {
 146+ $namespace = $validNS; // fallback to "all"
 147+ }
 148+ } else {
 149+ $namespace = $validNS; // "all"
 150+ }
 151+ $this->namespace = $namespace;
 152+ if ( !is_integer( $override ) ) {
 153+ $override = null; // "all"
 154+ }
 155+ $this->override = $override;
 156+ if ( !is_integer( $precedence ) ) {
 157+ $precedence = null; // "all"
 158+ }
 159+ $this->precedence = $precedence;
 160+ if ( $autoreview === 'none' ) {
 161+ $autoreview = ''; // 'none' => ''
 162+ } elseif ( $autoreview === '' ) {
 163+ $autoreview = null; // '' => null
 164+ }
 165+ $this->autoreview = $autoreview;
 166+ parent::__construct();
 167+ }
 168+
 169+ function formatRow( $row ) {
 170+ return $this->mForm->formatRow( $row );
 171+ }
 172+
 173+ function getQueryInfo() {
 174+ $conds = $this->mConds;
 175+ $conds[] = 'page_id = fpc_page_id';
 176+ if ( $this->override !== null ) {
 177+ $conds['fpc_override'] = $this->override;
 178+ }
 179+ if ( $this->precedence !== null ) {
 180+ $conds['fpc_select'] = $this->precedence;
 181+ }
 182+ if( $this->autoreview !== null ) {
 183+ $conds['fpc_level'] = $this->autoreview;
 184+ }
 185+ $conds['page_namespace'] = $this->namespace;
 186+ return array(
 187+ 'tables' => array( 'flaggedpage_config', 'page' ),
 188+ 'fields' => 'page_namespace,page_title,fpc_override,fpc_expiry,fpc_page_id,fpc_select,fpc_level',
 189+ 'conds' => $conds,
 190+ 'options' => array()
 191+ );
 192+ }
 193+
 194+ function getIndexField() {
 195+ return 'fpc_page_id';
 196+ }
 197+
 198+ function getStartBody() {
 199+ wfProfileIn( __METHOD__ );
 200+ # Do a link batch query
 201+ $lb = new LinkBatch();
 202+ while ( $row = $this->mResult->fetchObject() ) {
 203+ $lb->add( $row->page_namespace, $row->page_title );
 204+ }
 205+ $lb->execute();
 206+ wfProfileOut( __METHOD__ );
 207+ return '<ul>';
 208+ }
 209+
 210+ function getEndBody() {
 211+ return '</ul>';
 212+ }
 213+}
Property changes on: trunk/extensions/FlaggedRevs/specialpages/ConfiguredPages_body.php
___________________________________________________________________
Name: svn:eol-style
1214 + native
Index: trunk/extensions/FlaggedRevs/specialpages/StablePages_body.php
@@ -4,6 +4,7 @@
55 exit( 1 );
66 }
77
 8+// Assumes $wgFlaggedRevsProtection is on
89 class StablePages extends SpecialPage
910 {
1011 public function __construct() {
@@ -17,7 +18,7 @@
1819 $this->skin = $wgUser->getSkin();
1920
2021 $this->namespace = $wgRequest->getIntOrNull( 'namespace' );
21 - $this->precedence = $wgRequest->getIntOrNull( 'precedence' );
 22+ $this->autoreview = $wgRequest->getVal( 'restriction', '' );
2223
2324 $this->showForm();
2425 $this->showPageList();
@@ -27,13 +28,13 @@
2829 global $wgOut, $wgScript;
2930 $wgOut->addHTML( wfMsgExt( 'stablepages-text', array( 'parseinline' ) ) );
3031 $fields = array();
31 - $namespaces = FlaggedRevs::getReviewNamespaces();
32 - if ( count( $namespaces ) > 1 ) {
 32+ # Namespace selector
 33+ if ( count( FlaggedRevs::getReviewNamespaces() ) > 1 ) {
3334 $fields[] = FlaggedRevsXML::getNamespaceMenu( $this->namespace, '' );
3435 }
35 - if ( FlaggedRevs::qualityVersions() ) {
36 - $fields[] = Xml::label( wfMsg( 'stablepages-precedence' ), 'wpPrecedence' ) .
37 - '&nbsp;' . FlaggedRevsXML::getPrecedenceMenu( $this->precedence );
 36+ # Restriction level selector
 37+ if( FlaggedRevs::getRestrictionLevels() ) {
 38+ $fields[] = FlaggedRevsXML::getRestrictionFilterMenu( $this->autoreview );
3839 }
3940 if ( count( $fields ) ) {
4041 $form = Xml::openElement( 'form',
@@ -52,52 +53,31 @@
5354 global $wgOut;
5455 # Take this opportunity to purge out expired configurations
5556 FlaggedRevs::purgeExpiredConfigurations();
56 - $pager = new StablePagesPager( $this, array(), $this->namespace, $this->precedence );
 57+ $pager = new StablePagesPager( $this, array(), $this->namespace, $this->autoreview );
5758 if ( $pager->getNumRows() ) {
5859 $wgOut->addHTML( $pager->getNavigationBar() );
5960 $wgOut->addHTML( $pager->getBody() );
6061 $wgOut->addHTML( $pager->getNavigationBar() );
6162 } else {
62 - $wgOut->addHTML( wfMsgExt( 'stablepages-none', array( 'parse' ) ) );
 63+ $wgOut->addHTML( wfMsgExt( 'configuredpages-none', array( 'parse' ) ) );
6364 }
6465 }
6566
6667 public function formatRow( $row ) {
6768 global $wgLang;
68 -
6969 $title = Title::makeTitle( $row->page_namespace, $row->page_title );
 70+ # Link to page
7071 $link = $this->skin->makeKnownLinkObj( $title, $title->getPrefixedText() );
71 -
72 - if ( FlaggedRevs::useProtectionLevels() ) {
73 - $config = $this->skin->makeKnownLinkObj( $title,
74 - wfMsgHtml( 'stablepages-config' ), 'action=protect' );
75 - } else {
76 - $config = $this->skin->makeKnownLinkObj(
77 - SpecialPage::getTitleFor( 'Stabilization' ),
78 - wfMsgHtml( 'stablepages-config' ),
79 - 'page=' . $title->getPrefixedUrl() );
80 - }
81 -
82 - $type = '';
83 - // Show precedence if there are several possible levels
84 - if ( FlaggedRevs::qualityVersions() ) {
85 - $select = intval( $row->fpc_select );
86 - if ( $select === FLAGGED_VIS_PRISTINE ) {
87 - $type = wfMsgHtml( 'stablepages-prec-pristine' );
88 - } elseif ( $select === FLAGGED_VIS_QUALITY ) {
89 - $type = wfMsgHtml( 'stablepages-prec-quality' );
90 - } elseif( $select === FLAGGED_VIS_LATEST ) {
91 - $type = wfMsgHtml( 'stablepages-prec-none' );
92 - }
93 - if( $type ) $type = "(<b>{$type}</b>)";
94 - }
95 -
 72+ # Link to page configuration
 73+ $config = $this->skin->makeKnownLinkObj( $title,
 74+ wfMsgHtml( 'stablepages-config' ), 'action=protect' );
 75+ # Autoreview/review restriction level
9676 $restr = '';
9777 if( $row->fpc_level != '' ) {
9878 $restr = 'autoreview='.htmlspecialchars($row->fpc_level);
9979 $restr = "[$restr]";
10080 }
101 -
 81+ # When these configuration settings expire
10282 if ( $row->fpc_expiry != 'infinity' && strlen( $row->fpc_expiry ) ) {
10383 $expiry_description = " (" . wfMsgForContent(
10484 'protect-expiring',
@@ -108,8 +88,7 @@
10989 } else {
11090 $expiry_description = "";
11191 }
112 -
113 - return "<li>{$link} ({$config}) {$type} {$restr}<i>{$expiry_description}</i></li>";
 92+ return "<li>{$link} ({$config}) {$restr}<i>{$expiry_description}</i></li>";
11493 }
11594 }
11695
@@ -117,11 +96,11 @@
11897 * Query to list out stable versions for a page
11998 */
12099 class StablePagesPager extends AlphabeticPager {
121 - public $mForm, $mConds, $namespace;
 100+ public $mForm, $mConds, $namespace, $override;
122101
123102 // @param int $namespace (null for "all")
124 - // @param int $precedence (null for "all")
125 - function __construct( $form, $conds = array(), $namespace = null, $precedence = null ) {
 103+ // @param string $autoreview ('' for "all", 'none' for no restriction)
 104+ function __construct( $form, $conds = array(), $namespace, $autoreview ) {
126105 $this->mForm = $form;
127106 $this->mConds = $conds;
128107 # Must be content pages...
@@ -134,10 +113,12 @@
135114 $namespace = $validNS; // "all"
136115 }
137116 $this->namespace = $namespace;
138 - if ( !is_integer( $precedence ) ) {
139 - $precedence = null; // "all"
 117+ if ( $autoreview === 'none' ) {
 118+ $autoreview = ''; // 'none' => ''
 119+ } elseif ( $autoreview === '' ) {
 120+ $autoreview = null; // '' => null
140121 }
141 - $this->precedence = $precedence;
 122+ $this->autoreview = $autoreview;
142123 parent::__construct();
143124 }
144125
@@ -149,13 +130,13 @@
150131 $conds = $this->mConds;
151132 $conds[] = 'page_id = fpc_page_id';
152133 $conds['fpc_override'] = 1;
153 - if ( $this->precedence !== null ) {
154 - $conds['fpc_select'] = $this->precedence;
 134+ if( $this->autoreview !== null ) {
 135+ $conds['fpc_level'] = $this->autoreview;
155136 }
156137 $conds['page_namespace'] = $this->namespace;
157138 return array(
158139 'tables' => array( 'flaggedpage_config', 'page' ),
159 - 'fields' => 'page_namespace,page_title,fpc_expiry,fpc_page_id,fpc_select,fpc_level',
 140+ 'fields' => 'page_namespace,page_title,fpc_override,fpc_expiry,fpc_page_id,fpc_select,fpc_level',
160141 'conds' => $conds,
161142 'options' => array()
162143 );
Index: trunk/extensions/FlaggedRevs/FlaggedRevsXML.php
@@ -46,7 +46,7 @@
4747 }
4848
4949 /**
50 - * Get a selector of review levels
 50+ * Get a selector of review levels. Used for filters.
5151 * @param int $selected, selected level
5252 * @param string $all, all selector msg?
5353 * @param int $max max level?
@@ -55,7 +55,7 @@
5656 public static function getLevelMenu(
5757 $selected = null, $all = 'revreview-filter-all', $max = 2
5858 ) {
59 - $s = "<label for='wpLevel'>" . wfMsgHtml( 'revreview-levelfilter' ) . "</label>&nbsp;";
 59+ $s = "<label for='wpLevel'>" . wfMsgHtml( 'revreview-levelfilter' ) . "</label>\n";
6060 $s .= Xml::openElement( 'select', array( 'name' => 'level', 'id' => 'wpLevel' ) );
6161 if ( $all !== false )
6262 $s .= Xml::option( wfMsg( $all ), - 1, $selected === - 1 );
@@ -70,36 +70,88 @@
7171 }
7272
7373 /**
74 - * Get a radio options of available precendents
75 - * @param int $selected selected level, '' for "all"
 74+ * Get a <select> of options of available precendents. Used for filters.
 75+ * @param int $selected selected level, null for "all"
7676 * @returns string
7777 */
78 - public static function getPrecedenceMenu( $selected = null ) {
79 - if( is_null($selected) ) {
 78+ public static function getPrecedenceFilterMenu( $selected = null ) {
 79+ if ( is_null( $selected ) ) {
8080 $selected = ''; // "all"
8181 }
82 - $s = Xml::openElement( 'select',
 82+ $s = Xml::label( wfMsg( 'revreview-precedencefilter' ), 'wpPrecedence' ) . "\n";
 83+ $s .= Xml::openElement( 'select',
8384 array( 'name' => 'precedence', 'id' => 'wpPrecedence' ) );
84 - $s .= Xml::option( wfMsg( 'revreview-lev-all' ), '', $selected == '' );
 85+ $s .= Xml::option( wfMsg( 'revreview-lev-all' ), '', $selected === '' );
8586 $s .= Xml::option( wfMsg( 'revreview-lev-basic' ), FLAGGED_VIS_LATEST,
8687 $selected === FLAGGED_VIS_LATEST );
87 - if ( FlaggedRevs::qualityVersions() )
 88+ if ( FlaggedRevs::qualityVersions() ) {
8889 $s .= Xml::option( wfMsg( 'revreview-lev-quality' ), FLAGGED_VIS_QUALITY,
8990 $selected === FLAGGED_VIS_QUALITY );
90 - if ( FlaggedRevs::pristineVersions() )
 91+ }
 92+ if ( FlaggedRevs::pristineVersions() ) {
9193 $s .= Xml::option( wfMsg( 'revreview-lev-pristine' ), FLAGGED_VIS_PRISTINE,
9294 $selected === FLAGGED_VIS_PRISTINE );
 95+ }
9396 $s .= Xml::closeElement( 'select' ) . "\n";
9497 return $s;
9598 }
9699
97100 /**
98 - * Get a selector of "approved"/"unapproved"
 101+ * Get a <select> of default page version (stable or draft). Used for filters.
 102+ * @param int $selected (0=draft, 1=stable, null=either )
 103+ * @returns string
 104+ */
 105+ public static function getDefaultFilterMenu( $selected = null ) {
 106+ if ( is_null( $selected ) ) {
 107+ $selected = ''; // "all"
 108+ }
 109+ $s = Xml::label( wfMsg( 'revreview-defaultfilter' ), 'wpStable' ) . "\n";
 110+ $s .= Xml::openElement( 'select',
 111+ array( 'name' => 'stable', 'id' => 'wpStable' ) );
 112+ $s .= Xml::option( wfMsg( 'revreview-def-all' ), '', $selected == '' );
 113+ $s .= Xml::option( wfMsg( 'revreview-def-stable' ), 1, $selected === 1 );
 114+ $s .= Xml::option( wfMsg( 'revreview-def-draft' ), 0, $selected === 0 );
 115+ $s .= Xml::closeElement( 'select' ) . "\n";
 116+ return $s;
 117+ }
 118+
 119+ /**
 120+ * Get a <select> of options of 'autoreview' restriction levels. Used for filters.
 121+ * @param string $selected ('' for "any", 'none' for none)
 122+ * @returns string
 123+ */
 124+ public static function getRestrictionFilterMenu( $selected = '' ) {
 125+ if ( is_null( $selected ) ) {
 126+ $selected = ''; // "all"
 127+ }
 128+ $s = Xml::label( wfMsg( 'revreview-restrictfilter' ), 'wpRestriction' ) . "\n";
 129+ $s .= Xml::openElement( 'select',
 130+ array( 'name' => 'restriction', 'id' => 'wpRestriction' ) );
 131+ $s .= Xml::option( wfMsg( 'revreview-restriction-any' ), '', $selected == '' );
 132+ if ( !FlaggedRevs::useProtectionLevels() ) {
 133+ # All "protected" pages have a protection level, not "none"
 134+ $s .= Xml::option( wfMsg( 'revreview-restriction-none' ),
 135+ 'none', $selected == 'none' );
 136+ }
 137+ foreach( FlaggedRevs::getRestrictionLevels() as $perm ) {
 138+ $key = "revreview-restriction-{$perm}";
 139+ $msg = wfMsg( $key );
 140+ if ( wfEmptyMsg( $key, $msg ) ) {
 141+ $msg = $perm; // fallback to user right key
 142+ }
 143+ $s .= Xml::option( $msg, $perm, $selected == $perm );
 144+ }
 145+ $s .= Xml::closeElement( 'select' ) . "\n";
 146+ return $s;
 147+ }
 148+
 149+ /**
 150+ * Get a selector of "approved"/"unapproved". Used for filters.
99151 * @param int $selected, selected level
100152 * @returns string
101153 */
102154 public static function getStatusFilterMenu( $selected = null ) {
103 - $s = "<label for='wpStatus'>" . wfMsgHtml( 'revreview-statusfilter' ) . "</label>&nbsp;";
 155+ $s = "<label for='wpStatus'>" . wfMsgHtml( 'revreview-statusfilter' ) . "</label>\n";
104156 $s .= Xml::openElement( 'select', array( 'name' => 'status', 'id' => 'wpStatus' ) );
105157 $s .= Xml::option( wfMsg( "revreview-filter-all" ), - 1, $selected === - 1 );
106158 $s .= Xml::option( wfMsg( "revreview-filter-approved" ), 1, $selected === 1 );
@@ -110,12 +162,12 @@
111163 }
112164
113165 /**
114 - * Get a selector of "auto"/"manual"
 166+ * Get a selector of "auto"/"manual". Used for filters.
115167 * @param int $selected, selected level
116168 * @returns string
117169 */
118170 public static function getAutoFilterMenu( $selected = null ) {
119 - $s = "<label for='wpApproved'>" . wfMsgHtml( 'revreview-typefilter' ) . "</label>&nbsp;";
 171+ $s = "<label for='wpApproved'>" . wfMsgHtml( 'revreview-typefilter' ) . "</label>\n";
120172 $s .= Xml::openElement( 'select', array( 'name' => 'automatic', 'id' => 'wpApproved' ) );
121173 $s .= Xml::option( wfMsg( "revreview-filter-all" ), - 1, $selected === - 1 );
122174 $s .= Xml::option( wfMsg( "revreview-filter-manual" ), 0, $selected === 0 );
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
@@ -13,10 +13,6 @@
1414 }
1515 $list['RevisionReview'] = $wgSpecialPages['RevisionReview'] = 'RevisionReview';
1616 $list['ReviewedVersions'] = $wgSpecialPages['ReviewedVersions'] = 'ReviewedVersions';
17 - // Protect levels define allowed stability settings
18 - if ( !FlaggedRevs::useProtectionLevels() ) {
19 - $list['Stabilization'] = $wgSpecialPages['Stabilization'] = 'Stabilization';
20 - }
2117 $list['UnreviewedPages'] = $wgSpecialPages['UnreviewedPages'] = 'UnreviewedPages';
2218 $list['OldReviewedPages'] = $wgSpecialPages['OldReviewedPages'] = 'OldReviewedPages';
2319 // Show tag filtered pending edit page if there are tags
@@ -28,10 +24,12 @@
2925 }
3026 $list['QualityOversight'] = $wgSpecialPages['QualityOversight'] = 'QualityOversight';
3127 $list['ValidationStatistics'] = $wgSpecialPages['ValidationStatistics'] = 'ValidationStatistics';
32 - if ( !FlaggedRevs::isStableShownByDefault() ) {
 28+ // Protect levels define allowed stability settings
 29+ if ( FlaggedRevs::useProtectionLevels() ) {
3330 $list['StablePages'] = $wgSpecialPages['StablePages'] = 'StablePages';
3431 } else {
35 - $list['UnstablePages'] = $wgSpecialPages['UnstablePages'] = 'UnstablePages';
 32+ $list['ConfiguredPages'] = $wgSpecialPages['ConfiguredPages'] = 'ConfiguredPages';
 33+ $list['Stabilization'] = $wgSpecialPages['Stabilization'] = 'Stabilization';
3634 }
3735 return true;
3836 }
@@ -2192,7 +2190,7 @@
21932191 LogEventsList::showLogExtract( $out, 'stable', $article->getTitle()->getPrefixedText() );
21942192 return true;
21952193 }
2196 -
 2194+
21972195 // Update stability config from request
21982196 public static function onProtectionSave( $article, &$errorMsg ) {
21992197 global $wgUser, $wgRequest;
@@ -2213,19 +2211,17 @@
22142212 $form->expiry = $wgRequest->getText( 'mwStabilize-expiry' ); # Expiry
22152213 $form->expirySelection = $wgRequest->getVal( 'wpExpirySelection' ); # Expiry dropdown
22162214 # Fill in config from the protection level...
2217 - $levels = FlaggedRevs::getRestrictionLevels();
2218 - $selected = $wgRequest->getVal( 'mwStabilityConfig' );
2219 - if ( $selected == "none" ) {
2220 - $form->override = (int)FlaggedRevs::isStableShownByDefault(); // default
 2215+ $permission = $wgRequest->getVal( 'mwStabilityConfig' );
 2216+ if ( $permission == "none" ) {
22212217 $form->autoreview = ''; // default
22222218 $form->reviewThis = false;
2223 - } else if ( in_array( $selected, $levels ) ) {
2224 - $form->override = 1; // stable page
2225 - $form->autoreview = $selected; // autoreview restriction
 2219+ } else if ( in_array( $permission, FlaggedRevs::getRestrictionLevels() ) ) {
 2220+ $form->autoreview = $permission; // autoreview restriction
22262221 $form->reviewThis = true; // auto-review page; protection-like
22272222 } else {
2228 - return false; // bad level
 2223+ return false; // bad level, don't save!
22292224 }
 2225+ $form->override = null; // implied by autoreview level
22302226 $form->select = null; // site default
22312227 $form->wasPosted = $wgRequest->wasPosted();
22322228 if ( $form->handleParams() ) {
Index: trunk/extensions/FlaggedRevs/api/ApiStabilize.php
@@ -69,14 +69,13 @@
7070 # Fill in config from the protection level...
7171 $selected = $params['protectlevel'];
7272 if( $selected == "none" ) {
73 - $form->override = (int)FlaggedRevs::isStableShownByDefault(); // default
7473 $form->autoreview = ''; // default
7574 } else if( in_array( $selected, $levels ) ) {
76 - $form->override = 1; // stable page
7775 $form->autoreview = $selected; // autoreview restriction
7876 } else {
7977 $this->dieUsage( "Invalid protection level given.", 'badprotectlevel' );
8078 }
 79+ $form->override = null; // implied by autoreview level
8180 $form->select = null; // site default
8281 } else {
8382 // Fill in config fields from URL params

Follow-up revisions

RevisionCommit summaryAuthorDate
r64002Follow-up r64001: Remove special page from translatewiki tooraymond15:36, 21 March 2010
r64003Follow-up r64001: Remove special page from translatewiki tooraymond15:38, 21 March 2010
r64004Follow-up r64001: Add new special page to translatewikiraymond15:49, 21 March 2010
r64005Follow-up r64001: new line is needed by translatewikiraymond16:09, 21 March 2010

Status & tagging log