Index: trunk/extensions/FlaggedRevs/language/FlaggedRevs.i18n.php |
— | — | @@ -256,7 +256,8 @@ |
257 | 257 | 'revreview-reject-summary' => 'Edit summary:', |
258 | 258 | 'revreview-reject-confirm' => 'Reject these changes', |
259 | 259 | 'revreview-reject-cancel' => 'Cancel', |
260 | | - 'revreview-reject-default-summary' => 'Rejected changes by [[User:$1|$1]] to version $2 by [[User:$3|$3]]', |
| 260 | + 'revreview-reject-default-summary-cur' => 'Rejected {{PLURAL:$1|one change|$1 changes}} by $2 to [$3 this version]', |
| 261 | + 'revreview-reject-default-summary' => 'Rejected {{PLURAL:$1|one change|$1 changes}} by $2', |
261 | 262 | |
262 | 263 | 'revreview-reviewlink' => 'pending edits', |
263 | 264 | 'revreview-reviewlink-title' => 'View diff of all pending changes', |
— | — | @@ -576,6 +577,15 @@ |
577 | 578 | 'revreview-lev-quality' => '{{Flagged Revs}}', |
578 | 579 | 'revreview-lev-pristine' => '{{Flagged Revs}}', |
579 | 580 | 'revreview-reject-cancel' => '{{Identical|Cancel}}', |
| 581 | + 'revreview-reject-default-summary-cur' => '{{Flagged Revs-small}} |
| 582 | +Default summary shown when rejecting pending changes, and they are the latest revisions to a page |
| 583 | +* $1 is the number of rejected revisions |
| 584 | +* $2 is the list of (one or more) users who are being rejected |
| 585 | +* $3 is the link to the revision being reverted to', |
| 586 | + 'revreview-reject-default-summary' => '{{Flagged Revs-small}} |
| 587 | +Default summary shown when rejecting pending changes. |
| 588 | +* $1 is the number of rejected revisions |
| 589 | +* $2 is the list of (one or more) users who are being rejected', |
580 | 590 | 'revreview-reviewlink' => '{{Flagged Revs}}', |
581 | 591 | 'tooltip-ca-current' => '{{Flagged Revs}}', |
582 | 592 | 'tooltip-ca-stable' => '{{Flagged Revs}}', |
— | — | @@ -2101,7 +2111,6 @@ |
2102 | 2112 | 'revreview-reject-summary' => 'Кароткае апісаньне рэдагаваньня:', |
2103 | 2113 | 'revreview-reject-confirm' => 'Адмяніць гэтыя зьмены', |
2104 | 2114 | 'revreview-reject-cancel' => 'Адмяніць', |
2105 | | - 'revreview-reject-default-summary' => 'Адмененыя зьмены [[User:$1|$1]] да вэрсіі $2 [[User:$3|$3]]', |
2106 | 2115 | 'revreview-reviewlink' => 'рэдагаваньні чакаючыя рэцэнзаваньня', |
2107 | 2116 | 'revreview-reviewlink-title' => 'Паказаць адрозьненьні усіх нерэцэнзаваных зьменаў', |
2108 | 2117 | 'revreview-unreviewedpage' => 'неправераная старонка', |
— | — | @@ -2572,7 +2581,6 @@ |
2573 | 2582 | 'revreview-reject-summary' => 'Kemmañ an diverrañ :', |
2574 | 2583 | 'revreview-reject-confirm' => "Disteuler ar c'hemmoù-mañ", |
2575 | 2584 | 'revreview-reject-cancel' => 'Nullañ', |
2576 | | - 'revreview-reject-default-summary' => "Distaolet eo bet kemmoù [[User:$1|$1]] gant [[User:$3|$3]] evit distreiñ d'ar stumm $2", |
2577 | 2585 | 'revreview-reviewlink' => "kemmoù o c'hortoz", |
2578 | 2586 | 'revreview-reviewlink-title' => "Gwelet diff an holl kemmoù o c'hortoz", |
2579 | 2587 | 'revreview-unreviewedpage' => 'Pajenn nann-gwiriekaet', |
— | — | @@ -2827,7 +2835,6 @@ |
2828 | 2836 | 'revreview-reject-summary' => 'Uredi sažetak:', |
2829 | 2837 | 'revreview-reject-confirm' => 'Odbij ove izmjene', |
2830 | 2838 | 'revreview-reject-cancel' => 'Odustani', |
2831 | | - 'revreview-reject-default-summary' => 'Vraćam promjene od strane korisnika [[User:$1|$1]] na verziju od $2 od korisnika [[User:$3|$3]]', |
2832 | 2839 | 'revreview-reviewlink' => 'izmjene na čekanju', |
2833 | 2840 | 'revreview-reviewlink-title' => 'Pogledajte promjene svih izmjena na čekanju', |
2834 | 2841 | 'revreview-unreviewedpage' => 'neprovjerena stranica', |
— | — | @@ -3493,7 +3500,6 @@ |
3494 | 3501 | 'revreview-reject-summary' => 'Zusammenfassung:', |
3495 | 3502 | 'revreview-reject-confirm' => 'Diese Änderungen verwerfen', |
3496 | 3503 | 'revreview-reject-cancel' => 'Abbrechen', |
3497 | | - 'revreview-reject-default-summary' => 'Änderungen von [[User:$1|$1]] werden auf Version $2 von [[User:$3|$3]] zurückgesetzt', |
3498 | 3504 | 'revreview-reviewlink' => 'markieren', |
3499 | 3505 | 'revreview-reviewlink-title' => 'Betrachte den Unterschied aller unmarkierten Änderungen', |
3500 | 3506 | 'revreview-unreviewedpage' => 'ungesichtete Seite', |
— | — | @@ -5719,7 +5725,6 @@ |
5720 | 5726 | 'revreview-reject-summary' => 'Résumé de modification :', |
5721 | 5727 | 'revreview-reject-confirm' => 'Rejeter ces changements', |
5722 | 5728 | 'revreview-reject-cancel' => 'Annuler', |
5723 | | - 'revreview-reject-default-summary' => 'A rejeté les modifications de [[User:$1|$1]] pour revenir à la version $2 de [[User:$3|$3]]', |
5724 | 5729 | 'revreview-reviewlink' => 'modifications en attente', |
5725 | 5730 | 'revreview-reviewlink-title' => 'Voir le diff de toutes les modifications en attente', |
5726 | 5731 | 'revreview-unreviewedpage' => 'Page non vérifiée', |
— | — | @@ -6233,7 +6238,6 @@ |
6234 | 6239 | 'revreview-reject-summary' => 'Resumo de edición:', |
6235 | 6240 | 'revreview-reject-confirm' => 'Rexeitar estes cambios', |
6236 | 6241 | 'revreview-reject-cancel' => 'Cancelar', |
6237 | | - 'revreview-reject-default-summary' => 'Revertéronse os cambios de [[User:$1|$1]] ata a versión $2 feita por [[User:$3|$3]]', |
6238 | 6242 | 'revreview-reviewlink' => 'edicións pendentes', |
6239 | 6243 | 'revreview-reviewlink-title' => 'Ollar as diferenzas de todos os cambios pendentes', |
6240 | 6244 | 'revreview-unreviewedpage' => 'páxina non comprobada', |
— | — | @@ -6570,7 +6574,6 @@ |
6571 | 6575 | 'revreview-reject-summary' => 'Zämmefassig:', |
6572 | 6576 | 'revreview-reject-confirm' => 'Die Änderige furtgheje', |
6573 | 6577 | 'revreview-reject-cancel' => 'Abbräche', |
6574 | | - 'revreview-reject-default-summary' => 'Änderige vu [[User:$1|$1]] wäre auf d Version $2 vu [[User:$3|$3]] zruckgsetzt', |
6575 | 6578 | 'revreview-reviewlink' => 'hängigi Änderige', |
6576 | 6579 | 'revreview-reviewlink-title' => 'Alli hängige Änderige aaluege', |
6577 | 6580 | 'revreview-unreviewedpage' => 'nit aagluegti Syte', |
— | — | @@ -6854,7 +6857,6 @@ |
6855 | 6858 | 'revreview-reject-summary' => 'תקציר העריכה:', |
6856 | 6859 | 'revreview-reject-confirm' => 'דחיית שינויים אלו', |
6857 | 6860 | 'revreview-reject-cancel' => 'ביטול', |
6858 | | - 'revreview-reject-default-summary' => 'השינויים של [[User:$1|$1]] נדחו לגרסה $2 על ידי [[User:$3|$3]]', |
6859 | 6861 | 'revreview-reviewlink' => 'עריכות ממתינות', |
6860 | 6862 | 'revreview-reviewlink-title' => 'צפייה ביומן ההבדל של כל השינויים הממתינים', |
6861 | 6863 | 'revreview-unreviewedpage' => 'דף לא בדוק', |
— | — | @@ -7507,7 +7509,6 @@ |
7508 | 7510 | 'revreview-reject-summary' => 'Zjeće wobdźěłać', |
7509 | 7511 | 'revreview-reject-confirm' => 'Tute změny wotpokazać', |
7510 | 7512 | 'revreview-reject-cancel' => 'Přetorhnyć', |
7511 | | - 'revreview-reject-default-summary' => 'Změny wot wužiwarja [[User:$1|$1]] su so do wersije $2 wot wužiwarja [[User:$3|$3]] wróćo stajili', |
7512 | 7513 | 'revreview-reviewlink' => 'njepřepruwowane změny', |
7513 | 7514 | 'revreview-reviewlink-title' => 'Rozdźěl wšěch njepřepruwowanych změnow pokazać', |
7514 | 7515 | 'revreview-unreviewedpage' => 'njeskontrolowana strona', |
— | — | @@ -8021,7 +8022,6 @@ |
8022 | 8023 | 'revreview-reject-summary' => 'Summario del modification:', |
8023 | 8024 | 'revreview-reject-confirm' => 'Rejectar iste modificationes', |
8024 | 8025 | 'revreview-reject-cancel' => 'Cancellar', |
8025 | | - 'revreview-reject-default-summary' => 'Rejecta modificationes de [[User:$1|$1]] e reverte al version $2 de [[User:$3|$3]]', |
8026 | 8026 | 'revreview-reviewlink' => 'modificationes pendente', |
8027 | 8027 | 'revreview-reviewlink-title' => 'Vider comparation de tote le modificationes pendente', |
8028 | 8028 | 'revreview-unreviewedpage' => 'pagina non verificate', |
— | — | @@ -8794,7 +8794,6 @@ |
8795 | 8795 | 'revreview-reject-summary' => '編集の要約:', |
8796 | 8796 | 'revreview-reject-confirm' => 'これらの変更を拒否', |
8797 | 8797 | 'revreview-reject-cancel' => '中止', |
8798 | | - 'revreview-reject-default-summary' => '[[User:$1|$1]]による変更を拒否し、[[User:$3|$3]]による$2版にする', |
8799 | 8798 | 'revreview-reviewlink' => '査読待ちの編集', |
8800 | 8799 | 'revreview-reviewlink-title' => '保留中の変更をすべて差分表示する', |
8801 | 8800 | 'revreview-unreviewedpage' => '未確認ページ', |
— | — | @@ -10127,7 +10126,6 @@ |
10128 | 10127 | 'revreview-reject-summary' => 'Resumé änneren', |
10129 | 10128 | 'revreview-reject-confirm' => 'Dës Ännerungen rejetéieren', |
10130 | 10129 | 'revreview-reject-cancel' => 'Ofbriechen', |
10131 | | - 'revreview-reject-default-summary' => "Ännerunge vum [[User:$1|$1]] ginn op d'Versioun $2 vum [[User:$3|$3]] zréckgesat", |
10132 | 10130 | 'revreview-reviewlink' => 'Ännerungen am Suspens', |
10133 | 10131 | 'revreview-reviewlink-title' => 'Ënnerscheed fir all Ännerungen am Suspens weisen', |
10134 | 10132 | 'revreview-unreviewedpage' => 'Net nogekuckte Säit', |
— | — | @@ -10676,7 +10674,6 @@ |
10677 | 10675 | 'revreview-reject-summary' => 'Опис на уредувањето:', |
10678 | 10676 | 'revreview-reject-confirm' => 'Отфрли ги промениве', |
10679 | 10677 | 'revreview-reject-cancel' => 'Откажи', |
10680 | | - 'revreview-reject-default-summary' => 'Отфрлање на промените на [[User:$1|$1]] во верзијата $2 од [[User:$3|$3]]', |
10681 | 10678 | 'revreview-reviewlink' => 'уредувања во исчекување', |
10682 | 10679 | 'revreview-reviewlink-title' => 'Види разлика со сите промени во исчекување', |
10683 | 10680 | 'revreview-unreviewedpage' => 'непроверена страница', |
— | — | @@ -10928,7 +10925,6 @@ |
10929 | 10926 | 'revreview-reject-summary' => 'തിരുത്തലിന്റെ സംഗ്രഹം:', |
10930 | 10927 | 'revreview-reject-confirm' => 'ഈ മാറ്റങ്ങൾ നിരാകരിക്കുക', |
10931 | 10928 | 'revreview-reject-cancel' => 'റദ്ദാക്കുക', |
10932 | | - 'revreview-reject-default-summary' => '[[User:$1|$1]] നടത്തിയ മാറ്റങ്ങൾ നിരാകരിച്ച് [[User:$3|$3]] സൃഷ്ടിച്ച $2 എന്ന പതിപ്പിലോട്ട് സ്ഥാപിക്കുന്നു', |
10933 | 10929 | 'revreview-reviewlink' => 'അവശേഷിക്കുന്ന തിരുത്തലുകൾ', |
10934 | 10930 | 'revreview-reviewlink-title' => 'അവശേഷിക്കുന്ന എല്ലാ മാറ്റങ്ങളും സൃഷ്ടിച്ച വ്യത്യാസം കാണുക', |
10935 | 10931 | 'revreview-unreviewedpage' => 'പരിശോധിക്കപ്പെടാത്ത താൾ', |
— | — | @@ -11579,7 +11575,6 @@ |
11580 | 11576 | 'revreview-reject-summary' => 'Bewerkingssamenvatting:', |
11581 | 11577 | 'revreview-reject-confirm' => 'Deze wijzigingen afkeuren', |
11582 | 11578 | 'revreview-reject-cancel' => 'Annuleren', |
11583 | | - 'revreview-reject-default-summary' => 'Afwijzing van wijzigingen door [[User:$1|$1]] naar versie $2 door [[User:$3|$3]]', |
11584 | 11579 | 'revreview-reviewlink' => 'te controleren bewerkingen', |
11585 | 11580 | 'revreview-reviewlink-title' => 'Alle ongecontroleerde verschillen bekijken', |
11586 | 11581 | 'revreview-unreviewedpage' => 'ongecontroleerde pagina', |
— | — | @@ -12011,7 +12006,6 @@ |
12012 | 12007 | 'revreview-reject-summary' => 'Redigeringssammendrag:', |
12013 | 12008 | 'revreview-reject-confirm' => 'Avvis disse endringene', |
12014 | 12009 | 'revreview-reject-cancel' => 'Avbryt', |
12015 | | - 'revreview-reject-default-summary' => 'Avviser endringer av [[User:$1|$1]] til versjon $2 av [[User:$3|$3]]', |
12016 | 12010 | 'revreview-reviewlink' => 'ventende endringer', |
12017 | 12011 | 'revreview-reviewlink-title' => 'Se diff for alle ventende endringer', |
12018 | 12012 | 'revreview-unreviewedpage' => 'ukontrollert side', |
— | — | @@ -12509,7 +12503,6 @@ |
12510 | 12504 | 'revreview-reject-summary' => 'Opis zmian', |
12511 | 12505 | 'revreview-reject-confirm' => 'Wycofaj te zmiany', |
12512 | 12506 | 'revreview-reject-cancel' => 'Anuluj', |
12513 | | - 'revreview-reject-default-summary' => 'Wycofano zmiany użytkownika [[User:$1|$1]]. Przywrócono wersję $2 autorstwa [[User:$3|$3]].', |
12514 | 12507 | 'revreview-reviewlink' => 'oczekuje na przejrzenie', |
12515 | 12508 | 'revreview-reviewlink-title' => 'Pokaż różnicę dla wszystkich oczekujących zmian', |
12516 | 12509 | 'revreview-unreviewedpage' => 'nieprzejrzana strona', |
— | — | @@ -12764,7 +12757,6 @@ |
12765 | 12758 | 'revreview-reject-summary' => 'Resumé dla modìfica:', |
12766 | 12759 | 'revreview-reject-confirm' => 'Arfuda sti cambi', |
12767 | 12760 | 'revreview-reject-cancel' => 'Scancela', |
12768 | | - 'revreview-reject-default-summary' => 'Cambi arfudà da [[User:$1|$1]] a la vërsion $2 ëd [[User:$3|$3]]', |
12769 | 12761 | 'revreview-reviewlink' => "modìfiche ch'a speto", |
12770 | 12762 | 'revreview-reviewlink-title' => "Vëdde le diferense ëd tùit ij cambiament ch'a speto", |
12771 | 12763 | 'revreview-unreviewedpage' => 'pàgina pa controlà', |
— | — | @@ -13060,7 +13052,6 @@ |
13061 | 13053 | 'revreview-reject-summary' => 'Resumo da edição:', |
13062 | 13054 | 'revreview-reject-confirm' => 'Rejeitar estas mudanças', |
13063 | 13055 | 'revreview-reject-cancel' => 'Cancelar', |
13064 | | - 'revreview-reject-default-summary' => 'A reverter as mudanças de [[User:$1|$1]] para a versão $2 de [[User:$3|$3]]', |
13065 | 13056 | 'revreview-reviewlink' => 'edições pendentes', |
13066 | 13057 | 'revreview-reviewlink-title' => 'Ver diferenças de todas as alterações pendentes', |
13067 | 13058 | 'revreview-unreviewedpage' => 'página não revista', |
— | — | @@ -13321,7 +13312,6 @@ |
13322 | 13313 | 'revreview-reject-summary' => 'Resumo da edição:', |
13323 | 13314 | 'revreview-reject-confirm' => 'Rejeitar estas mudanças', |
13324 | 13315 | 'revreview-reject-cancel' => 'Cancelar', |
13325 | | - 'revreview-reject-default-summary' => 'Revertendo as mudanças de [[User:$1|$1]] para a versão $2 de [[User:$3|$3]]', |
13326 | 13316 | 'revreview-reviewlink' => 'edições pendentes', |
13327 | 13317 | 'revreview-reviewlink-title' => 'Ver diferenças de todas as alterações pendentes', |
13328 | 13318 | 'revreview-unreviewedpage' => 'página não verificada', |
— | — | @@ -13969,7 +13959,6 @@ |
13970 | 13960 | 'revreview-reject-summary' => 'Описание изменений:', |
13971 | 13961 | 'revreview-reject-confirm' => 'Отклонить эти изменения', |
13972 | 13962 | 'revreview-reject-cancel' => 'Отмена', |
13973 | | - 'revreview-reject-default-summary' => 'Отклонены изменения [[User:$1|$1]] в версию $2 [[User:$3|$3]]', |
13974 | 13963 | 'revreview-reviewlink' => 'непроверенные изменения', |
13975 | 13964 | 'revreview-reviewlink-title' => 'Просмотр разницы всех непроверенных изменений', |
13976 | 13965 | 'revreview-unreviewedpage' => 'непроверенная страница', |
— | — | @@ -14809,7 +14798,6 @@ |
14810 | 14799 | 'revreview-reject-summary' => 'Povzetek urejanja:', |
14811 | 14800 | 'revreview-reject-confirm' => 'Zavrni te spremembe', |
14812 | 14801 | 'revreview-reject-cancel' => 'Prekliči', |
14813 | | - 'revreview-reject-default-summary' => 'Zavračanje sprememb [[User:$1|$1]] na različico $2 uporabnika [[User:$3|$3]]', |
14814 | 14802 | 'revreview-reviewlink' => 'urejanja v teku', |
14815 | 14803 | 'revreview-reviewlink-title' => 'Ogled primerjave vseh sprememb v teku', |
14816 | 14804 | 'revreview-unreviewedpage' => 'nepreverjena stran', |
— | — | @@ -17665,7 +17653,6 @@ |
17666 | 17654 | 'revreview-reject-summary' => 'Tóm lược sửa đổi:', |
17667 | 17655 | 'revreview-reject-confirm' => 'Từ chối những thay đổi này', |
17668 | 17656 | 'revreview-reject-cancel' => 'Hủy bỏ', |
17669 | | - 'revreview-reject-default-summary' => 'Đã từ chối thay đổi của [[User:$1|$1]], quay về phiên bản $2 của [[User:$3|$3]]', |
17670 | 17657 | 'revreview-reviewlink' => 'sửa đổi đang chờ', |
17671 | 17658 | 'revreview-reviewlink-title' => 'So sánh các thay đổi đang chờ', |
17672 | 17659 | 'revreview-unreviewedpage' => 'trang chưa xem qua', |
Index: trunk/extensions/FlaggedRevs/forms/RevisionReviewForm.php |
— | — | @@ -1000,16 +1000,20 @@ |
1001 | 1001 | $dbr = wfGetDB( DB_SLAVE ); |
1002 | 1002 | $oldid = $dbr->addQuotes( $oldRev->getId() ); |
1003 | 1003 | $newid = $dbr->addQuotes( $newRev->getId() ); |
1004 | | - $res = $dbr->select( 'revision', 'rev_id', |
1005 | | - array( 'rev_id > ' . $oldid, 'rev_id <= ' . $newid, |
1006 | | - 'rev_page' => $oldRev->getPage() ), |
| 1004 | + $res = $dbr->select( 'revision', array( 'rev_id', 'rev_user_text' ), |
| 1005 | + array( |
| 1006 | + 'rev_id > ' . $oldid, |
| 1007 | + 'rev_id <= ' . $newid, |
| 1008 | + 'rev_page' => $oldRev->getPage() |
| 1009 | + ), |
1007 | 1010 | __METHOD__ |
1008 | 1011 | ); |
1009 | 1012 | |
1010 | | - $ids = array(); |
| 1013 | + $rejectIds = array(); |
1011 | 1014 | if( $res ) { |
1012 | 1015 | foreach( $res as $r ) { |
1013 | | - $ids[] = $r->rev_id; |
| 1016 | + $rejectIds[$r->rev_id] = |
| 1017 | + "[[User:{$r->rev_user_text}|{$r->rev_user_text}]]"; |
1014 | 1018 | } |
1015 | 1019 | } |
1016 | 1020 | |
— | — | @@ -1019,7 +1023,8 @@ |
1020 | 1024 | // FIXME: we need a generic revision list class |
1021 | 1025 | $spRevDelete = SpecialPage::getPage( 'RevisionReview' ); |
1022 | 1026 | $spRevDelete->skin = $this->user->getSkin(); // XXX |
1023 | | - $list = new RevDel_RevisionList( $spRevDelete, $oldRev->getTitle(), $ids ); |
| 1027 | + $list = new RevDel_RevisionList( $spRevDelete, $oldRev->getTitle(), |
| 1028 | + array_keys( $rejectIds ) ); |
1024 | 1029 | for ( $list->reset(); $list->current(); $list->next() ) { |
1025 | 1030 | $item = $list->current(); |
1026 | 1031 | if ( $item->canView() ) { |
— | — | @@ -1032,11 +1037,20 @@ |
1033 | 1038 | $wgOut->addWikiMsg( 'revreview-reject-text-revto', |
1034 | 1039 | $oldRev->getTitle()->getPrefixedDBKey(), $oldRev->getId(), |
1035 | 1040 | $wgLang->timeanddate( $oldRev->getTimestamp(), true ) ); |
| 1041 | + $defaultSummary = wfMsg( 'revreview-reject-default-summary-cur', |
| 1042 | + $wgLang->formatNum( count( $rejectIds ) ), |
| 1043 | + $wgLang->listToText( array_values( array_unique( $rejectIds ) ) ), |
| 1044 | + $oldRev->getTitle()->getFullURL( |
| 1045 | + array( 'oldid' => $oldRev->getId() ) |
| 1046 | + ) |
| 1047 | + ); |
| 1048 | + } else { |
| 1049 | + $defaultSummary = wfMsg( 'revreview-reject-default-summary', |
| 1050 | + $wgLang->formatNum( count( $rejectIds ) ), |
| 1051 | + $wgLang->listToText( array_values( array_unique( $rejectIds ) ) ) |
| 1052 | + ); |
1036 | 1053 | } |
1037 | 1054 | $wgOut->addHtml( '</div>' ); |
1038 | | - |
1039 | | - $defaultSummary = wfMsg( 'revreview-reject-default-summary', |
1040 | | - $newRev->getUserText(), $oldRev->getId(), $oldRev->getUserText() ); |
1041 | 1055 | |
1042 | 1056 | $form = Xml::openElement( 'form', |
1043 | 1057 | array( 'method' => 'POST', 'action' => $thisPage->getFullUrl() ) |