Victor Vasiliev has uploaded a new change for review. https://gerrit.wikimedia.org/r/146347
Change subject: Introduce a seperate message for stabilization reasons ...................................................................... Introduce a seperate message for stabilization reasons In some cases, it might be desirable to have seperate list for protection reasons and stabilization reasons. The default list is, however, the same, so by default the stabilization-dropdown message is empty, which causes it to fall back to protect-dropdown. Change-Id: I8ba01ff715694899cd974cf45b627ab20ca99e55 --- M frontend/specialpages/actions/Stabilization_body.php M i18n/stabilization/en.json 2 files changed, 10 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/FlaggedRevs refs/changes/47/146347/1 diff --git a/frontend/specialpages/actions/Stabilization_body.php b/frontend/specialpages/actions/Stabilization_body.php index 3ce7d9c..1581e31 100644 --- a/frontend/specialpages/actions/Stabilization_body.php +++ b/frontend/specialpages/actions/Stabilization_body.php @@ -101,10 +101,16 @@ } else { $s .= $this->msg( 'stabilization-text', $title->getPrefixedText() )->parseAsBlock(); } - # Borrow some protection messages for dropdowns + # Traditionally, the list of reasons for stabilization is the same as + # for protection. In some cases, however, it might be desirable to + # use a different list for stabilization. + $defaultReasons = $this->msg( 'stabilization-dropdown' )->inContentLanguage()->text(); + if ( !$defaultReasons ) { + $defaultReasons = $this->msg( 'protect-dropdown' )->inContentLanguage()->text(); + } $reasonDropDown = Xml::listDropDown( 'wpReasonSelection', - $this->msg( 'protect-dropdown' )->inContentLanguage()->text(), + $defaultReasons, $this->msg( 'protect-otherreason-op' )->inContentLanguage()->text(), $form->getReasonSelection(), 'mwStabilize-reason', diff --git a/i18n/stabilization/en.json b/i18n/stabilization/en.json index bb33237..99f78e0 100644 --- a/i18n/stabilization/en.json +++ b/i18n/stabilization/en.json @@ -11,6 +11,7 @@ "stabilization-def": "Revision displayed on default page view", "stabilization-def1": "The stable version; if not present, then the latest revision", "stabilization-def2": "The latest revision", + "stabilization-dropdown": "", "stabilization-restrict": "Review/auto-review restrictions", "stabilization-restrict-none": "No extra restrictions", "stabilization-submit": "Confirm", @@ -34,4 +35,4 @@ "stabilize_protect_quota": "The maximum number of currently flag-protected pages has already been reached.", "stabilize-expiring": "expires $1 (UTC)", "stabilization-review": "Mark the current revision checked" -} \ No newline at end of file +} -- To view, visit https://gerrit.wikimedia.org/r/146347 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8ba01ff715694899cd974cf45b627ab20ca99e55 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/FlaggedRevs Gerrit-Branch: master Gerrit-Owner: Victor Vasiliev <vasi...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits