Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -361,14 +361,14 @@ |
362 | 362 | $wgAutoloadClasses['ReviewedPages'] = $dir . 'specialpages/ReviewedPages_body.php'; |
363 | 363 | $wgExtensionMessagesFiles['ReviewedPages'] = $langDir . 'ReviewedPages.i18n.php'; |
364 | 364 | $wgSpecialPageGroups['ReviewedPages'] = 'quality'; |
365 | | -# Load stable pages list |
| 365 | +# Load stable pages list (for protection config) |
366 | 366 | $wgAutoloadClasses['StablePages'] = $dir . 'specialpages/StablePages_body.php'; |
367 | 367 | $wgExtensionMessagesFiles['StablePages'] = $langDir . 'StablePages.i18n.php'; |
368 | 368 | $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'; |
373 | 373 | # To oversee quality revisions |
374 | 374 | $wgAutoloadClasses['QualityOversight'] = $dir . 'specialpages/QualityOversight_body.php'; |
375 | 375 | $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 @@ |
19 | 19 | 'RevisionReview' => array( 'RevisionReview' ), |
20 | 20 | 'Stabilization' => array( 'Stabilization', 'Stabilisation' ), |
21 | 21 | 'StablePages' => array( 'StablePages' ), |
| 22 | + 'ConfiguredPages' => array( 'ConfiguredPages' ), |
22 | 23 | 'ReviewedVersions' => array( 'ReviewedVersions', 'StableVersions' /*old name*/ ), |
23 | 24 | 'UnreviewedPages' => array( 'UnreviewedPages' ), |
24 | | - 'UnstablePages' => array( 'UnstablePages' ), |
25 | 25 | 'ValidationStatistics' => array( 'ValidationStatistics' ), |
26 | 26 | ); |
27 | 27 | |
— | — | @@ -44,7 +44,6 @@ |
45 | 45 | 'StablePages' => array( 'صفحات_مستقرة' ), |
46 | 46 | 'ReviewedVersions' => array( 'نسخ_مراجعة', 'نسخ_مستقرة' ), |
47 | 47 | 'UnreviewedPages' => array( 'صفحات_غير_مراجعة' ), |
48 | | - 'UnstablePages' => array( 'صفحات_غير_مستقرة' ), |
49 | 48 | 'ValidationStatistics' => array( 'إحصاءات_التحقق' ), |
50 | 49 | ); |
51 | 50 | |
— | — | @@ -59,7 +58,6 @@ |
60 | 59 | 'StablePages' => array( 'صفحات_مستقرة' ), |
61 | 60 | 'ReviewedVersions' => array( 'نسخ_مراجعة', 'نسخ_مستقرة' ), |
62 | 61 | 'UnreviewedPages' => array( 'صفحات_مش_مراجعة' ), |
63 | | - 'UnstablePages' => array( 'صفحات_مش_مستقرة' ), |
64 | 62 | 'ValidationStatistics' => array( 'إحصاءات_التحقق' ), |
65 | 63 | ); |
66 | 64 | |
— | — | @@ -86,7 +84,6 @@ |
87 | 85 | 'Stabilization' => array( 'Stabilizacija' ), |
88 | 86 | 'StablePages' => array( 'StabilneStranice' ), |
89 | 87 | 'UnreviewedPages' => array( 'NeprovjereneStranice' ), |
90 | | - 'UnstablePages' => array( 'NestabilneStranice' ), |
91 | 88 | 'ValidationStatistics' => array( 'StatistikeValidacije' ), |
92 | 89 | ); |
93 | 90 | |
— | — | @@ -99,7 +96,6 @@ |
100 | 97 | 'Stabilization' => array( 'Seitenkonfiguration', 'Stabilisierung' ), |
101 | 98 | 'StablePages' => array( 'Konfigurierte Seiten' ), |
102 | 99 | 'UnreviewedPages' => array( 'Ungesichtete Seiten' ), |
103 | | - 'UnstablePages' => array( 'Unstabile Seiten' ), |
104 | 100 | 'ValidationStatistics' => array( 'Markierungsstatistik' ), |
105 | 101 | ); |
106 | 102 | |
— | — | @@ -112,7 +108,6 @@ |
113 | 109 | 'Stabilization' => array( 'Stabilizacija' ), |
114 | 110 | 'StablePages' => array( 'Stabilne boki' ), |
115 | 111 | 'UnreviewedPages' => array( 'Njepśeglědane boki' ), |
116 | | - 'UnstablePages' => array( 'Njestabilne boki' ), |
117 | 112 | 'ValidationStatistics' => array( 'Statistika pśeglědanjow' ), |
118 | 113 | ); |
119 | 114 | |
— | — | @@ -141,7 +136,6 @@ |
142 | 137 | 'StablePages' => array( 'صفحههای_پایدار' ), |
143 | 138 | 'ReviewedVersions' => array( 'نسخههای_پایدار' ), |
144 | 139 | 'UnreviewedPages' => array( 'صفحههایبازبینینشده' ), |
145 | | - 'UnstablePages' => array( 'صفحههای_ناپایدار' ), |
146 | 140 | 'ValidationStatistics' => array( 'آمار_تاییدها' ), |
147 | 141 | ); |
148 | 142 | |
— | — | @@ -151,7 +145,6 @@ |
152 | 146 | 'Stabilization' => array( 'Vakaaksi versioksi' ), |
153 | 147 | 'StablePages' => array( 'Vakaat sivut' ), |
154 | 148 | 'UnreviewedPages' => array( 'Arvioimattomat sivut' ), |
155 | | - 'UnstablePages' => array( 'Epävakaat sivut' ), |
156 | 149 | ); |
157 | 150 | |
158 | 151 | /** French (Français) */ |
— | — | @@ -162,7 +155,6 @@ |
163 | 156 | 'RevisionReview' => array( 'Relecture des révisions' ), |
164 | 157 | 'StablePages' => array( 'Pages stables' ), |
165 | 158 | 'UnreviewedPages' => array( 'Pages non relues' ), |
166 | | - 'UnstablePages' => array( 'Pages instables' ), |
167 | 159 | 'ValidationStatistics' => array( 'Statistiques de validation' ), |
168 | 160 | ); |
169 | 161 | |
— | — | @@ -175,7 +167,6 @@ |
176 | 168 | 'Stabilization' => array( 'Stabilisacion' ), |
177 | 169 | 'StablePages' => array( 'Pâges stâbles', 'PâgesStâbles' ), |
178 | 170 | 'UnreviewedPages' => array( 'Pâges pas revues', 'PâgesPasRevues' ), |
179 | | - 'UnstablePages' => array( 'Pâges enstâbles', 'PâgesEnstâbles' ), |
180 | 171 | 'ValidationStatistics' => array( 'Statistiques de validacion', 'StatistiquesDeValidacion' ), |
181 | 172 | ); |
182 | 173 | |
— | — | @@ -188,7 +179,6 @@ |
189 | 180 | 'Stabilization' => array( 'Estabilización' ), |
190 | 181 | 'StablePages' => array( 'Páxinas estábeis' ), |
191 | 182 | 'UnreviewedPages' => array( 'Páxinas non revisadas' ), |
192 | | - 'UnstablePages' => array( 'Páxinas non estables' ), |
193 | 183 | 'ValidationStatistics' => array( 'Estatísticas de validación' ), |
194 | 184 | ); |
195 | 185 | |
— | — | @@ -201,7 +191,6 @@ |
202 | 192 | 'Stabilization' => array( 'Sytekonfiguration' ), |
203 | 193 | 'StablePages' => array( 'Konfigurierti Syte' ), |
204 | 194 | 'UnreviewedPages' => array( 'Syte wu nit gsichtet sin' ), |
205 | | - 'UnstablePages' => array( 'Syte wu nit konfiguriert sin' ), |
206 | 195 | 'ValidationStatistics' => array( 'Markierigsstatischtik' ), |
207 | 196 | ); |
208 | 197 | |
— | — | @@ -238,7 +227,6 @@ |
239 | 228 | 'Stabilization' => array( 'Stabilizacija' ), |
240 | 229 | 'StablePages' => array( 'Stabilne strony' ), |
241 | 230 | 'UnreviewedPages' => array( 'Njepřehladane strony' ), |
242 | | - 'UnstablePages' => array( 'Njestabilne strony' ), |
243 | 231 | 'ValidationStatistics' => array( 'Statistika přehladanjow' ), |
244 | 232 | ); |
245 | 233 | |
— | — | @@ -251,7 +239,6 @@ |
252 | 240 | 'Stabilization' => array( 'Lap rögzítése' ), |
253 | 241 | 'StablePages' => array( 'Rögzített lapok' ), |
254 | 242 | 'UnreviewedPages' => array( 'Ellenőrizetlen lapok' ), |
255 | | - 'UnstablePages' => array( 'Nem rögzített lapok', 'Rögzítetlen lapok' ), |
256 | 243 | 'ValidationStatistics' => array( 'Ellenőrzési statisztika' ), |
257 | 244 | ); |
258 | 245 | |
— | — | @@ -265,7 +252,6 @@ |
266 | 253 | 'StablePages' => array( 'Paginas publicate', 'Paginas stabile' ), |
267 | 254 | 'ReviewedVersions' => array( 'Versiones revidite', 'Versiones stabile' ), |
268 | 255 | 'UnreviewedPages' => array( 'Paginas non revidite' ), |
269 | | - 'UnstablePages' => array( 'Paginas non stabile' ), |
270 | 256 | 'ValidationStatistics' => array( 'Statisticas de validation' ), |
271 | 257 | ); |
272 | 258 | |
— | — | @@ -279,7 +265,6 @@ |
280 | 266 | 'Stabilization' => array( 'Stabilisasi' ), |
281 | 267 | 'StablePages' => array( 'Halaman stabil', 'HalamanStabil' ), |
282 | 268 | 'UnreviewedPages' => array( 'Halaman yang belum ditinjau', 'HalamanBelumDitinjau' ), |
283 | | - 'UnstablePages' => array( 'Halaman tak stabil', 'HalamanTakStabil' ), |
284 | 269 | 'ValidationStatistics' => array( 'Statistik validasi', 'StatistikValidasi' ), |
285 | 270 | ); |
286 | 271 | |
— | — | @@ -293,7 +278,6 @@ |
294 | 279 | 'Stabilization' => array( '固定', '採択', 'ページの採択' ), |
295 | 280 | 'StablePages' => array( '固定ページ', '安定ページ', '採用ページ' ), |
296 | 281 | 'UnreviewedPages' => array( '未査読ページ', '査読待ちページ' ), |
297 | | - 'UnstablePages' => array( '未固定ページ', '非安定ページ' ), |
298 | 282 | 'ValidationStatistics' => array( '判定統計' ), |
299 | 283 | ); |
300 | 284 | |
— | — | @@ -314,7 +298,6 @@ |
315 | 299 | 'StablePages' => array( 'Stabil Säiten' ), |
316 | 300 | 'ReviewedVersions' => array( 'Stabil Versiounen' ), |
317 | 301 | 'UnreviewedPages' => array( 'Net iwwerpréifte Säiten' ), |
318 | | - 'UnstablePages' => array( 'Net stabil Säiten' ), |
319 | 302 | 'ValidationStatistics' => array( 'Statistik vun den iwwerpréifte Säiten' ), |
320 | 303 | ); |
321 | 304 | |
— | — | @@ -329,7 +312,6 @@ |
330 | 313 | 'StablePages' => array( 'СтабилниСтраници' ), |
331 | 314 | 'ReviewedVersions' => array( 'ПрегледаниВерзии', 'СтабилниВерзии' ), |
332 | 315 | 'UnreviewedPages' => array( 'НепрегледаниСтраници' ), |
333 | | - 'UnstablePages' => array( 'НестабилниСтраници' ), |
334 | 316 | 'ValidationStatistics' => array( 'ВалидацискиСтатистики' ), |
335 | 317 | ); |
336 | 318 | |
— | — | @@ -344,7 +326,6 @@ |
345 | 327 | 'StablePages' => array( 'സ്ഥിരതാളുകള്' ), |
346 | 328 | 'ReviewedVersions' => array( 'സംശോധിതപതിപ്പുകൾ', 'സ്ഥിരതയുള്ള പതിപ്പുകൾ' ), |
347 | 329 | 'UnreviewedPages' => array( 'സംശോധനംചെയ്യാത്തതാളുകൾ' ), |
348 | | - 'UnstablePages' => array( 'അസ്ഥിരതാളുകള്' ), |
349 | 330 | 'ValidationStatistics' => array( 'മൂല്യനിർണ്ണയസ്ഥിതിവിവരം' ), |
350 | 331 | ); |
351 | 332 | |
— | — | @@ -357,7 +338,6 @@ |
358 | 339 | 'Stabilization' => array( 'स्थिरीकरण' ), |
359 | 340 | 'StablePages' => array( 'स्थिरपाने' ), |
360 | 341 | 'UnreviewedPages' => array( 'नतपासलेलीपाने' ), |
361 | | - 'UnstablePages' => array( 'अस्थीरपाने' ), |
362 | 342 | ); |
363 | 343 | |
364 | 344 | /** Malay (Bahasa Melayu) */ |
— | — | @@ -379,7 +359,6 @@ |
380 | 360 | 'Stabilization' => array( 'Stabilisasie' ), |
381 | 361 | 'StablePages' => array( "Stebiele_pagina's" ), |
382 | 362 | 'UnreviewedPages' => array( "Pagina's_zonder_eindredactie" ), |
383 | | - 'UnstablePages' => array( "Instebiele_pagina's" ), |
384 | 363 | 'ValidationStatistics' => array( 'Eindredactiestaotestieken' ), |
385 | 364 | ); |
386 | 365 | |
— | — | @@ -394,7 +373,6 @@ |
395 | 374 | 'StablePages' => array( 'StabielePaginas', "StabielePagina's" ), |
396 | 375 | 'ReviewedVersions' => array( 'GecontroleerdeVersies', 'StabieleVersies' ), |
397 | 376 | 'UnreviewedPages' => array( 'PaginasZonderEindredactie', "Pagina'sZonderEindredactie" ), |
398 | | - 'UnstablePages' => array( 'InstabielePaginas', "InstabielePagina's" ), |
399 | 377 | 'ValidationStatistics' => array( 'Eindredactiestatistieken', 'StatistiekenEindredactie' ), |
400 | 378 | ); |
401 | 379 | |
— | — | @@ -407,7 +385,6 @@ |
408 | 386 | 'Stabilization' => array( 'Stabilisering' ), |
409 | 387 | 'StablePages' => array( 'Stabile sider' ), |
410 | 388 | 'UnreviewedPages' => array( 'Ikkje-vurderte sider' ), |
411 | | - 'UnstablePages' => array( 'Ustabile sider' ), |
412 | 389 | 'ValidationStatistics' => array( 'Valideringsstatistikk' ), |
413 | 390 | ); |
414 | 391 | |
— | — | @@ -422,7 +399,6 @@ |
423 | 400 | 'StablePages' => array( 'Stabile sider' ), |
424 | 401 | 'ReviewedVersions' => array( 'Gjennomgåtte sider' ), |
425 | 402 | 'UnreviewedPages' => array( 'Ikke-gjennomgåtte sider' ), |
426 | | - 'UnstablePages' => array( 'Ustabile sider' ), |
427 | 403 | 'ValidationStatistics' => array( 'Valideringsstatistikk' ), |
428 | 404 | ); |
429 | 405 | |
— | — | @@ -434,7 +410,6 @@ |
435 | 411 | 'RevisionReview' => array( 'Relectura de las revisions' ), |
436 | 412 | 'StablePages' => array( 'Paginas establas', 'PaginasEstablas' ), |
437 | 413 | 'UnreviewedPages' => array( 'Paginas pas relegidas', 'PaginasPasRelegidas' ), |
438 | | - 'UnstablePages' => array( 'Paginas instablas', 'PaginasInstablas', 'PaginasPas Relegidas' ), |
439 | 414 | ); |
440 | 415 | |
441 | 416 | /** Polish (Polski) */ |
— | — | @@ -447,7 +422,6 @@ |
448 | 423 | 'Stabilization' => array( 'Konfiguracja strony' ), |
449 | 424 | 'StablePages' => array( 'Strony stabilizowane', 'Strony z domyślnie pokazywaną wersją oznaczoną' ), |
450 | 425 | 'UnreviewedPages' => array( 'Nieprzejrzane strony' ), |
451 | | - 'UnstablePages' => array( 'Strony destabilizowane', 'Strony z domyślnie pokazywaną wersją bieżącą' ), |
452 | 426 | 'ValidationStatistics' => array( 'Statystyki oznaczania' ), |
453 | 427 | ); |
454 | 428 | |
— | — | @@ -461,7 +435,6 @@ |
462 | 436 | 'StablePages' => array( 'Páginas estáveis' ), |
463 | 437 | 'ReviewedVersions' => array( 'Versões revistas' ), |
464 | 438 | 'UnreviewedPages' => array( 'Páginas a analisar' ), |
465 | | - 'UnstablePages' => array( 'Páginas instáveis' ), |
466 | 439 | 'ValidationStatistics' => array( 'Estatísticas de validação' ), |
467 | 440 | ); |
468 | 441 | |
— | — | @@ -474,7 +447,6 @@ |
475 | 448 | 'Stabilization' => array( 'Estabilização' ), |
476 | 449 | 'StablePages' => array( 'Páginas_estáveis' ), |
477 | 450 | 'UnreviewedPages' => array( 'Páginas_a_analisar' ), |
478 | | - 'UnstablePages' => array( 'Páginas instáveis' ), |
479 | 451 | 'ValidationStatistics' => array( 'Estatísticas de validação' ), |
480 | 452 | ); |
481 | 453 | |
— | — | @@ -487,7 +459,6 @@ |
488 | 460 | 'Stabilization' => array( 'स्वास्थ्य' ), |
489 | 461 | 'StablePages' => array( 'स्वस्थपृष्ठ' ), |
490 | 462 | 'UnreviewedPages' => array( 'असमसमीक्षीतपृष्ठ:' ), |
491 | | - 'UnstablePages' => array( 'अस्थीरपृष्ठ' ), |
492 | 463 | 'ValidationStatistics' => array( 'उपयोगितासिद्धीसांख्यिकी' ), |
493 | 464 | ); |
494 | 465 | |
— | — | @@ -501,7 +472,6 @@ |
502 | 473 | 'Stabilization' => array( 'Stabilizácia' ), |
503 | 474 | 'StablePages' => array( 'StabilnéStránky' ), |
504 | 475 | 'UnreviewedPages' => array( 'NeskontrolovanéStránky' ), |
505 | | - 'UnstablePages' => array( 'NestabilnéStránky' ), |
506 | 476 | 'ValidationStatistics' => array( 'ŠtatistikaOverovania' ), |
507 | 477 | ); |
508 | 478 | |
— | — | @@ -509,7 +479,6 @@ |
510 | 480 | $aliases['sq'] = array( |
511 | 481 | 'Stabilization' => array( 'Stabilizim' ), |
512 | 482 | 'StablePages' => array( 'FaqetStabile' ), |
513 | | - 'UnstablePages' => array( 'FaqetJoStabile' ), |
514 | 483 | ); |
515 | 484 | |
516 | 485 | /** Serbian Cyrillic ekavian (Српски (ћирилица)) */ |
— | — | @@ -530,7 +499,6 @@ |
531 | 500 | 'Stabilization' => array( 'Stabilisering' ), |
532 | 501 | 'StablePages' => array( 'Stabila sidor' ), |
533 | 502 | 'UnreviewedPages' => array( 'Ogranskade sidor' ), |
534 | | - 'UnstablePages' => array( 'Ostabila sidor' ), |
535 | 503 | 'ValidationStatistics' => array( 'Valideringsstatistik' ), |
536 | 504 | ); |
537 | 505 | |
— | — | @@ -541,7 +509,6 @@ |
542 | 510 | 'Stabilization' => array( 'Uimalishaji' ), |
543 | 511 | 'StablePages' => array( 'KurasaImara' ), |
544 | 512 | 'UnreviewedPages' => array( 'KurasaZisizoonyeshwa' ), |
545 | | - 'UnstablePages' => array( 'KurasaZisizomadhubuti' ), |
546 | 513 | 'ValidationStatistics' => array( 'TakwimuIliyosahihi' ), |
547 | 514 | ); |
548 | 515 | |
— | — | @@ -554,7 +521,6 @@ |
555 | 522 | 'Stabilization' => array( 'Pagpapatatag', 'pagpapatibay' ), |
556 | 523 | 'StablePages' => array( 'Matatag na mga pahina' ), |
557 | 524 | 'UnreviewedPages' => array( 'Mga pahina hindi pa nasusuri' ), |
558 | | - 'UnstablePages' => array( 'Hindi matatag na mga pahina' ), |
559 | 525 | 'ValidationStatistics' => array( 'Mga estadistika ng pagtitiyak' ), |
560 | 526 | ); |
561 | 527 | |
— | — | @@ -569,7 +535,6 @@ |
570 | 536 | 'StablePages' => array( 'StabilSayfalar', 'İstikrarlıSayfalar' ), |
571 | 537 | 'ReviewedVersions' => array( 'İncelenmişSürümler', 'StabilSürümler' ), |
572 | 538 | 'UnreviewedPages' => array( 'İncelenmemişSayfalar' ), |
573 | | - 'UnstablePages' => array( 'StabilOlmayanSayfalar', 'İstikrarsızSayfalar' ), |
574 | 539 | 'ValidationStatistics' => array( 'Doğrulamaİstatistikleri' ), |
575 | 540 | ); |
576 | 541 | |
— | — | @@ -580,7 +545,6 @@ |
581 | 546 | 'ReviewedPages' => array( 'PagineRiesaminà' ), |
582 | 547 | 'StablePages' => array( 'PagineStabili' ), |
583 | 548 | 'UnreviewedPages' => array( 'PagineNonRiesaminà' ), |
584 | | - 'UnstablePages' => array( 'PagineMiaStabili' ), |
585 | 549 | 'ValidationStatistics' => array( 'StatìstegheDeValidassion' ), |
586 | 550 | ); |
587 | 551 | |
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 |
1 | 25 | + native |
Index: trunk/extensions/FlaggedRevs/language/FlaggedRevs.i18n.php |
— | — | @@ -197,20 +197,32 @@ |
198 | 198 | |
199 | 199 | 'revreview-filter-all' => 'all', |
200 | 200 | 'revreview-filter-stable' => 'published', |
| 201 | + |
| 202 | + 'revreview-statusfilter' => 'Status change:', |
201 | 203 | 'revreview-filter-approved' => 'Approved', |
202 | 204 | 'revreview-filter-reapproved' => 'Re-approved', |
203 | 205 | 'revreview-filter-unapproved' => 'Unapproved', |
| 206 | + |
| 207 | + 'revreview-typefilter' => 'Type:', |
204 | 208 | 'revreview-filter-auto' => 'Automatic', |
205 | 209 | 'revreview-filter-manual' => 'Manual', |
206 | | - 'revreview-statusfilter' => 'Status change:', |
207 | | - 'revreview-typefilter' => 'Type:', |
| 210 | + |
208 | 211 | 'revreview-levelfilter' => 'Level:', |
209 | | - |
| 212 | + 'revreview-precedencefilter' => 'Precedence:', |
210 | 213 | 'revreview-lev-all' => 'any', |
211 | 214 | 'revreview-lev-basic' => 'checked', |
212 | 215 | 'revreview-lev-quality' => 'quality', |
213 | 216 | '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 | + |
215 | 227 | 'revreview-reviewlink' => 'review', |
216 | 228 | |
217 | 229 | 'tooltip-ca-current' => 'View this page with pending changes', |
Index: trunk/extensions/FlaggedRevs/language/StablePages.i18n.php |
— | — | @@ -9,13 +9,9 @@ |
10 | 10 | |
11 | 11 | $messages['en'] = array( |
12 | 12 | '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.', |
15 | 15 | '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:', |
20 | 16 | ); |
21 | 17 | |
22 | 18 | /** Message documentation (Message documentation) |
Index: trunk/extensions/FlaggedRevs/specialpages/Stabilization_body.php |
— | — | @@ -128,17 +128,22 @@ |
129 | 129 | $comment = $this->reason; // just use custom reason |
130 | 130 | } |
131 | 131 | $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... |
137 | 133 | 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... |
140 | 142 | } else { |
| 143 | + if ( $this->override !== 0 && $this->override !== 1 ) { |
| 144 | + return false; // default version settings is 0 or 1 |
| 145 | + } |
141 | 146 | if ( !FlaggedRevs::isValidPrecedence( $this->select ) ) { |
142 | | - return false; // invalid value |
| 147 | + return false; // invalid precedence value |
143 | 148 | } |
144 | 149 | } |
145 | 150 | // Check autoreview setting |
— | — | @@ -269,9 +274,9 @@ |
270 | 275 | Xml::radioLabel( wfMsg( 'stabilization-select2' ), 'wpStableconfig-select', |
271 | 276 | FLAGGED_VIS_LATEST, 'stable-select2', FLAGGED_VIS_LATEST == $this->select, |
272 | 277 | $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 ) . |
276 | 281 | $this->buildSelector( $this->autoreview ) . |
277 | 282 | Xml::closeElement( 'fieldset' ) . |
278 | 283 | |
— | — | @@ -551,8 +556,7 @@ |
552 | 557 | protected function configIsReset( $select, $override, $autoreview ) { |
553 | 558 | # For protection config, just ignore the fpc_select column |
554 | 559 | if( FlaggedRevs::useProtectionLevels() ) { |
555 | | - return ( $override == FlaggedRevs::isStableShownByDefault() |
556 | | - && $autoreview == '' ); |
| 560 | + return ( $autoreview == '' ); |
557 | 561 | } else { |
558 | 562 | return ( $select == FlaggedRevs::getPrecedence() |
559 | 563 | && $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( ' ', $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 |
1 | 214 | + native |
Index: trunk/extensions/FlaggedRevs/specialpages/StablePages_body.php |
— | — | @@ -4,6 +4,7 @@ |
5 | 5 | exit( 1 ); |
6 | 6 | } |
7 | 7 | |
| 8 | +// Assumes $wgFlaggedRevsProtection is on |
8 | 9 | class StablePages extends SpecialPage |
9 | 10 | { |
10 | 11 | public function __construct() { |
— | — | @@ -17,7 +18,7 @@ |
18 | 19 | $this->skin = $wgUser->getSkin(); |
19 | 20 | |
20 | 21 | $this->namespace = $wgRequest->getIntOrNull( 'namespace' ); |
21 | | - $this->precedence = $wgRequest->getIntOrNull( 'precedence' ); |
| 22 | + $this->autoreview = $wgRequest->getVal( 'restriction', '' ); |
22 | 23 | |
23 | 24 | $this->showForm(); |
24 | 25 | $this->showPageList(); |
— | — | @@ -27,13 +28,13 @@ |
28 | 29 | global $wgOut, $wgScript; |
29 | 30 | $wgOut->addHTML( wfMsgExt( 'stablepages-text', array( 'parseinline' ) ) ); |
30 | 31 | $fields = array(); |
31 | | - $namespaces = FlaggedRevs::getReviewNamespaces(); |
32 | | - if ( count( $namespaces ) > 1 ) { |
| 32 | + # Namespace selector |
| 33 | + if ( count( FlaggedRevs::getReviewNamespaces() ) > 1 ) { |
33 | 34 | $fields[] = FlaggedRevsXML::getNamespaceMenu( $this->namespace, '' ); |
34 | 35 | } |
35 | | - if ( FlaggedRevs::qualityVersions() ) { |
36 | | - $fields[] = Xml::label( wfMsg( 'stablepages-precedence' ), 'wpPrecedence' ) . |
37 | | - ' ' . FlaggedRevsXML::getPrecedenceMenu( $this->precedence ); |
| 36 | + # Restriction level selector |
| 37 | + if( FlaggedRevs::getRestrictionLevels() ) { |
| 38 | + $fields[] = FlaggedRevsXML::getRestrictionFilterMenu( $this->autoreview ); |
38 | 39 | } |
39 | 40 | if ( count( $fields ) ) { |
40 | 41 | $form = Xml::openElement( 'form', |
— | — | @@ -52,52 +53,31 @@ |
53 | 54 | global $wgOut; |
54 | 55 | # Take this opportunity to purge out expired configurations |
55 | 56 | FlaggedRevs::purgeExpiredConfigurations(); |
56 | | - $pager = new StablePagesPager( $this, array(), $this->namespace, $this->precedence ); |
| 57 | + $pager = new StablePagesPager( $this, array(), $this->namespace, $this->autoreview ); |
57 | 58 | if ( $pager->getNumRows() ) { |
58 | 59 | $wgOut->addHTML( $pager->getNavigationBar() ); |
59 | 60 | $wgOut->addHTML( $pager->getBody() ); |
60 | 61 | $wgOut->addHTML( $pager->getNavigationBar() ); |
61 | 62 | } else { |
62 | | - $wgOut->addHTML( wfMsgExt( 'stablepages-none', array( 'parse' ) ) ); |
| 63 | + $wgOut->addHTML( wfMsgExt( 'configuredpages-none', array( 'parse' ) ) ); |
63 | 64 | } |
64 | 65 | } |
65 | 66 | |
66 | 67 | public function formatRow( $row ) { |
67 | 68 | global $wgLang; |
68 | | - |
69 | 69 | $title = Title::makeTitle( $row->page_namespace, $row->page_title ); |
| 70 | + # Link to page |
70 | 71 | $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 |
96 | 76 | $restr = ''; |
97 | 77 | if( $row->fpc_level != '' ) { |
98 | 78 | $restr = 'autoreview='.htmlspecialchars($row->fpc_level); |
99 | 79 | $restr = "[$restr]"; |
100 | 80 | } |
101 | | - |
| 81 | + # When these configuration settings expire |
102 | 82 | if ( $row->fpc_expiry != 'infinity' && strlen( $row->fpc_expiry ) ) { |
103 | 83 | $expiry_description = " (" . wfMsgForContent( |
104 | 84 | 'protect-expiring', |
— | — | @@ -108,8 +88,7 @@ |
109 | 89 | } else { |
110 | 90 | $expiry_description = ""; |
111 | 91 | } |
112 | | - |
113 | | - return "<li>{$link} ({$config}) {$type} {$restr}<i>{$expiry_description}</i></li>"; |
| 92 | + return "<li>{$link} ({$config}) {$restr}<i>{$expiry_description}</i></li>"; |
114 | 93 | } |
115 | 94 | } |
116 | 95 | |
— | — | @@ -117,11 +96,11 @@ |
118 | 97 | * Query to list out stable versions for a page |
119 | 98 | */ |
120 | 99 | class StablePagesPager extends AlphabeticPager { |
121 | | - public $mForm, $mConds, $namespace; |
| 100 | + public $mForm, $mConds, $namespace, $override; |
122 | 101 | |
123 | 102 | // @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 ) { |
126 | 105 | $this->mForm = $form; |
127 | 106 | $this->mConds = $conds; |
128 | 107 | # Must be content pages... |
— | — | @@ -134,10 +113,12 @@ |
135 | 114 | $namespace = $validNS; // "all" |
136 | 115 | } |
137 | 116 | $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 |
140 | 121 | } |
141 | | - $this->precedence = $precedence; |
| 122 | + $this->autoreview = $autoreview; |
142 | 123 | parent::__construct(); |
143 | 124 | } |
144 | 125 | |
— | — | @@ -149,13 +130,13 @@ |
150 | 131 | $conds = $this->mConds; |
151 | 132 | $conds[] = 'page_id = fpc_page_id'; |
152 | 133 | $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; |
155 | 136 | } |
156 | 137 | $conds['page_namespace'] = $this->namespace; |
157 | 138 | return array( |
158 | 139 | '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', |
160 | 141 | 'conds' => $conds, |
161 | 142 | 'options' => array() |
162 | 143 | ); |
Index: trunk/extensions/FlaggedRevs/FlaggedRevsXML.php |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | } |
48 | 48 | |
49 | 49 | /** |
50 | | - * Get a selector of review levels |
| 50 | + * Get a selector of review levels. Used for filters. |
51 | 51 | * @param int $selected, selected level |
52 | 52 | * @param string $all, all selector msg? |
53 | 53 | * @param int $max max level? |
— | — | @@ -55,7 +55,7 @@ |
56 | 56 | public static function getLevelMenu( |
57 | 57 | $selected = null, $all = 'revreview-filter-all', $max = 2 |
58 | 58 | ) { |
59 | | - $s = "<label for='wpLevel'>" . wfMsgHtml( 'revreview-levelfilter' ) . "</label> "; |
| 59 | + $s = "<label for='wpLevel'>" . wfMsgHtml( 'revreview-levelfilter' ) . "</label>\n"; |
60 | 60 | $s .= Xml::openElement( 'select', array( 'name' => 'level', 'id' => 'wpLevel' ) ); |
61 | 61 | if ( $all !== false ) |
62 | 62 | $s .= Xml::option( wfMsg( $all ), - 1, $selected === - 1 ); |
— | — | @@ -70,36 +70,88 @@ |
71 | 71 | } |
72 | 72 | |
73 | 73 | /** |
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" |
76 | 76 | * @returns string |
77 | 77 | */ |
78 | | - public static function getPrecedenceMenu( $selected = null ) { |
79 | | - if( is_null($selected) ) { |
| 78 | + public static function getPrecedenceFilterMenu( $selected = null ) { |
| 79 | + if ( is_null( $selected ) ) { |
80 | 80 | $selected = ''; // "all" |
81 | 81 | } |
82 | | - $s = Xml::openElement( 'select', |
| 82 | + $s = Xml::label( wfMsg( 'revreview-precedencefilter' ), 'wpPrecedence' ) . "\n"; |
| 83 | + $s .= Xml::openElement( 'select', |
83 | 84 | array( 'name' => 'precedence', 'id' => 'wpPrecedence' ) ); |
84 | | - $s .= Xml::option( wfMsg( 'revreview-lev-all' ), '', $selected == '' ); |
| 85 | + $s .= Xml::option( wfMsg( 'revreview-lev-all' ), '', $selected === '' ); |
85 | 86 | $s .= Xml::option( wfMsg( 'revreview-lev-basic' ), FLAGGED_VIS_LATEST, |
86 | 87 | $selected === FLAGGED_VIS_LATEST ); |
87 | | - if ( FlaggedRevs::qualityVersions() ) |
| 88 | + if ( FlaggedRevs::qualityVersions() ) { |
88 | 89 | $s .= Xml::option( wfMsg( 'revreview-lev-quality' ), FLAGGED_VIS_QUALITY, |
89 | 90 | $selected === FLAGGED_VIS_QUALITY ); |
90 | | - if ( FlaggedRevs::pristineVersions() ) |
| 91 | + } |
| 92 | + if ( FlaggedRevs::pristineVersions() ) { |
91 | 93 | $s .= Xml::option( wfMsg( 'revreview-lev-pristine' ), FLAGGED_VIS_PRISTINE, |
92 | 94 | $selected === FLAGGED_VIS_PRISTINE ); |
| 95 | + } |
93 | 96 | $s .= Xml::closeElement( 'select' ) . "\n"; |
94 | 97 | return $s; |
95 | 98 | } |
96 | 99 | |
97 | 100 | /** |
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. |
99 | 151 | * @param int $selected, selected level |
100 | 152 | * @returns string |
101 | 153 | */ |
102 | 154 | public static function getStatusFilterMenu( $selected = null ) { |
103 | | - $s = "<label for='wpStatus'>" . wfMsgHtml( 'revreview-statusfilter' ) . "</label> "; |
| 155 | + $s = "<label for='wpStatus'>" . wfMsgHtml( 'revreview-statusfilter' ) . "</label>\n"; |
104 | 156 | $s .= Xml::openElement( 'select', array( 'name' => 'status', 'id' => 'wpStatus' ) ); |
105 | 157 | $s .= Xml::option( wfMsg( "revreview-filter-all" ), - 1, $selected === - 1 ); |
106 | 158 | $s .= Xml::option( wfMsg( "revreview-filter-approved" ), 1, $selected === 1 ); |
— | — | @@ -110,12 +162,12 @@ |
111 | 163 | } |
112 | 164 | |
113 | 165 | /** |
114 | | - * Get a selector of "auto"/"manual" |
| 166 | + * Get a selector of "auto"/"manual". Used for filters. |
115 | 167 | * @param int $selected, selected level |
116 | 168 | * @returns string |
117 | 169 | */ |
118 | 170 | public static function getAutoFilterMenu( $selected = null ) { |
119 | | - $s = "<label for='wpApproved'>" . wfMsgHtml( 'revreview-typefilter' ) . "</label> "; |
| 171 | + $s = "<label for='wpApproved'>" . wfMsgHtml( 'revreview-typefilter' ) . "</label>\n"; |
120 | 172 | $s .= Xml::openElement( 'select', array( 'name' => 'automatic', 'id' => 'wpApproved' ) ); |
121 | 173 | $s .= Xml::option( wfMsg( "revreview-filter-all" ), - 1, $selected === - 1 ); |
122 | 174 | $s .= Xml::option( wfMsg( "revreview-filter-manual" ), 0, $selected === 0 ); |
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -13,10 +13,6 @@ |
14 | 14 | } |
15 | 15 | $list['RevisionReview'] = $wgSpecialPages['RevisionReview'] = 'RevisionReview'; |
16 | 16 | $list['ReviewedVersions'] = $wgSpecialPages['ReviewedVersions'] = 'ReviewedVersions'; |
17 | | - // Protect levels define allowed stability settings |
18 | | - if ( !FlaggedRevs::useProtectionLevels() ) { |
19 | | - $list['Stabilization'] = $wgSpecialPages['Stabilization'] = 'Stabilization'; |
20 | | - } |
21 | 17 | $list['UnreviewedPages'] = $wgSpecialPages['UnreviewedPages'] = 'UnreviewedPages'; |
22 | 18 | $list['OldReviewedPages'] = $wgSpecialPages['OldReviewedPages'] = 'OldReviewedPages'; |
23 | 19 | // Show tag filtered pending edit page if there are tags |
— | — | @@ -28,10 +24,12 @@ |
29 | 25 | } |
30 | 26 | $list['QualityOversight'] = $wgSpecialPages['QualityOversight'] = 'QualityOversight'; |
31 | 27 | $list['ValidationStatistics'] = $wgSpecialPages['ValidationStatistics'] = 'ValidationStatistics'; |
32 | | - if ( !FlaggedRevs::isStableShownByDefault() ) { |
| 28 | + // Protect levels define allowed stability settings |
| 29 | + if ( FlaggedRevs::useProtectionLevels() ) { |
33 | 30 | $list['StablePages'] = $wgSpecialPages['StablePages'] = 'StablePages'; |
34 | 31 | } else { |
35 | | - $list['UnstablePages'] = $wgSpecialPages['UnstablePages'] = 'UnstablePages'; |
| 32 | + $list['ConfiguredPages'] = $wgSpecialPages['ConfiguredPages'] = 'ConfiguredPages'; |
| 33 | + $list['Stabilization'] = $wgSpecialPages['Stabilization'] = 'Stabilization'; |
36 | 34 | } |
37 | 35 | return true; |
38 | 36 | } |
— | — | @@ -2192,7 +2190,7 @@ |
2193 | 2191 | LogEventsList::showLogExtract( $out, 'stable', $article->getTitle()->getPrefixedText() ); |
2194 | 2192 | return true; |
2195 | 2193 | } |
2196 | | - |
| 2194 | + |
2197 | 2195 | // Update stability config from request |
2198 | 2196 | public static function onProtectionSave( $article, &$errorMsg ) { |
2199 | 2197 | global $wgUser, $wgRequest; |
— | — | @@ -2213,19 +2211,17 @@ |
2214 | 2212 | $form->expiry = $wgRequest->getText( 'mwStabilize-expiry' ); # Expiry |
2215 | 2213 | $form->expirySelection = $wgRequest->getVal( 'wpExpirySelection' ); # Expiry dropdown |
2216 | 2214 | # 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" ) { |
2221 | 2217 | $form->autoreview = ''; // default |
2222 | 2218 | $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 |
2226 | 2221 | $form->reviewThis = true; // auto-review page; protection-like |
2227 | 2222 | } else { |
2228 | | - return false; // bad level |
| 2223 | + return false; // bad level, don't save! |
2229 | 2224 | } |
| 2225 | + $form->override = null; // implied by autoreview level |
2230 | 2226 | $form->select = null; // site default |
2231 | 2227 | $form->wasPosted = $wgRequest->wasPosted(); |
2232 | 2228 | if ( $form->handleParams() ) { |
Index: trunk/extensions/FlaggedRevs/api/ApiStabilize.php |
— | — | @@ -69,14 +69,13 @@ |
70 | 70 | # Fill in config from the protection level... |
71 | 71 | $selected = $params['protectlevel']; |
72 | 72 | if( $selected == "none" ) { |
73 | | - $form->override = (int)FlaggedRevs::isStableShownByDefault(); // default |
74 | 73 | $form->autoreview = ''; // default |
75 | 74 | } else if( in_array( $selected, $levels ) ) { |
76 | | - $form->override = 1; // stable page |
77 | 75 | $form->autoreview = $selected; // autoreview restriction |
78 | 76 | } else { |
79 | 77 | $this->dieUsage( "Invalid protection level given.", 'badprotectlevel' ); |
80 | 78 | } |
| 79 | + $form->override = null; // implied by autoreview level |
81 | 80 | $form->select = null; // site default |
82 | 81 | } else { |
83 | 82 | // Fill in config fields from URL params |