From: Pmlineditor Date: Fri, 11 Mar 2016 14:15:30 +0000 (+0530) Subject: i18n of submit button on Special:ChangeContentModel X-Git-Tag: 1.31.0-rc.0~7648^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=371f4e76d41575582026493bc92bac797f1fe784;p=lhc%2Fweb%2Fwiklou.git i18n of submit button on Special:ChangeContentModel This patch adds a message, 'changecontentmodel-submit', for Special:ChangeContentModel to prevent reuse of the default "Submit" text from FormSpecialPage. Bug: T120576 Change-Id: I72466867a6739ba144c5a2984b8ca2589292815c --- diff --git a/includes/specials/SpecialChangeContentModel.php b/includes/specials/SpecialChangeContentModel.php index 57c6fec5b5..ee9f665bbd 100644 --- a/includes/specials/SpecialChangeContentModel.php +++ b/includes/specials/SpecialChangeContentModel.php @@ -43,6 +43,9 @@ class SpecialChangeContentModel extends FormSpecialPage { } $this->addHelpLink( 'Help:ChangeContentModel' ); + + // T120576 + $form->setSubmitTextMsg( 'changecontentmodel-submit' ); } public function validateTitle( $title ) { diff --git a/languages/i18n/en.json b/languages/i18n/en.json index 99f5066f26..03b50beded 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -2127,6 +2127,7 @@ "changecontentmodel-title-label": "Page title", "changecontentmodel-model-label": "New content model", "changecontentmodel-reason-label": "Reason:", + "changecontentmodel-submit": "Change", "changecontentmodel-success-title": "The content model was changed", "changecontentmodel-success-text": "The content type of [[:$1]] has been changed.", "changecontentmodel-cannot-convert": "The content on [[:$1]] cannot be converted to a type of $2.", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index 50dd7af532..4058d83197 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -2303,6 +2303,7 @@ "changecontentmodel-title-label": "Label for the input field where the target page title should be entered\n{{Identical|Page title}}", "changecontentmodel-model-label": "Label of the dropdown listing available content model types the user can change a page to", "changecontentmodel-reason-label": "{{Identical|Reason}}", + "changecontentmodel-submit": "Label of the form \"submit\" button for [[Special:ChangeContentModel]]\n{{Identical|Change}}", "changecontentmodel-success-title": "Title of the success page of the change content model special page", "changecontentmodel-success-text": "Message telling user that their change has been successfully done.\n* $1 - Target page title", "changecontentmodel-cannot-convert": "Error message shown if the content model cannot be changed to the specified type. $1 is the page title, $2 is the localized content model name.",