jenkins-bot has submitted this change and it was merged.

Change subject: i18n of submit button on Special:ChangeContentModel
......................................................................


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
---
M includes/specials/SpecialChangeContentModel.php
M languages/i18n/en.json
M languages/i18n/qqq.json
3 files changed, 5 insertions(+), 0 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  Umherirrender: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/includes/specials/SpecialChangeContentModel.php 
b/includes/specials/SpecialChangeContentModel.php
index 57c6fec..ee9f665 100644
--- a/includes/specials/SpecialChangeContentModel.php
+++ b/includes/specials/SpecialChangeContentModel.php
@@ -43,6 +43,9 @@
                }
 
                $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 99f5066..03b50be 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 50dd7af..4058d83 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.",

-- 
To view, visit https://gerrit.wikimedia.org/r/276742
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I72466867a6739ba144c5a2984b8ca2589292815c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Pmlineditor <[email protected]>
Gerrit-Reviewer: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: Umherirrender <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to