From ed69044f8027c610a6208c363e7508561084e29d Mon Sep 17 00:00:00 2001 From: Albert221 Date: Sun, 13 Dec 2015 14:34:28 +0100 Subject: [PATCH] Localization: Gave each special page its own message Bug: T45502 Change-Id: I847c8b294d7e4596b229ad6180764c43c42af1e2 --- includes/actions/HistoryAction.php | 2 +- includes/logging/LogEventsList.php | 2 +- includes/specials/SpecialCategories.php | 2 +- includes/specials/SpecialNewpages.php | 2 +- includes/specials/SpecialRecentchanges.php | 2 +- languages/i18n/en.json | 4 ++++ languages/i18n/qqq.json | 4 ++++ 7 files changed, 13 insertions(+), 5 deletions(-) diff --git a/includes/actions/HistoryAction.php b/includes/actions/HistoryAction.php index a81adf99ce..4da51c93ae 100644 --- a/includes/actions/HistoryAction.php +++ b/includes/actions/HistoryAction.php @@ -192,7 +192,7 @@ class HistoryAction extends FormlessAction { ( $tagSelector ? ( implode( ' ', $tagSelector ) . ' ' ) : '' ) . $checkDeleted . Html::submitButton( - $this->msg( 'allpagessubmit' )->text(), + $this->msg( 'historyaction-submit' )->text(), array(), array( 'mw-ui-progressive' ) ) . "\n" . diff --git a/includes/logging/LogEventsList.php b/includes/logging/LogEventsList.php index df3761072e..dcd7a45215 100644 --- a/includes/logging/LogEventsList.php +++ b/includes/logging/LogEventsList.php @@ -114,7 +114,7 @@ class LogEventsList extends ContextSource { } // Submit button - $html .= Xml::submitButton( $this->msg( 'allpagessubmit' )->text() ); + $html .= Xml::submitButton( $this->msg( 'logeventslist-submit' )->text() ); // Fieldset $html = Xml::fieldset( $this->msg( 'log' )->text(), $html ); diff --git a/includes/specials/SpecialCategories.php b/includes/specials/SpecialCategories.php index cea6ceb9b6..564579a8bb 100644 --- a/includes/specials/SpecialCategories.php +++ b/includes/specials/SpecialCategories.php @@ -191,7 +191,7 @@ class CategoryPager extends AlphabeticPager { 'from', 'from', 20, $from, array( 'class' => 'mw-ui-input-inline' ) ) . ' ' . Html::submitButton( - $this->msg( 'allpagessubmit' )->text(), + $this->msg( 'categories-submit' )->text(), array(), array( 'mw-ui-progressive' ) ) ) diff --git a/includes/specials/SpecialNewpages.php b/includes/specials/SpecialNewpages.php index 0fa4857d3a..5d3700d5ea 100644 --- a/includes/specials/SpecialNewpages.php +++ b/includes/specials/SpecialNewpages.php @@ -254,7 +254,7 @@ class SpecialNewpages extends IncludableSpecialPage { $htmlForm = new HTMLForm( $form, $this->getContext() ); - $htmlForm->setSubmitText( $this->msg( 'allpagessubmit' )->text() ); + $htmlForm->setSubmitText( $this->msg( 'newpages-submit' )->text() ); $htmlForm->setSubmitProgressive(); // The form should be visible on each request (inclusive requests with submitted forms), so // return always false here. diff --git a/includes/specials/SpecialRecentchanges.php b/includes/specials/SpecialRecentchanges.php index 3a1621ab9c..4848d01141 100644 --- a/includes/specials/SpecialRecentchanges.php +++ b/includes/specials/SpecialRecentchanges.php @@ -403,7 +403,7 @@ class SpecialRecentChanges extends ChangesListSpecialPage { $extraOpts = $this->getExtraOptions( $opts ); $extraOptsCount = count( $extraOpts ); $count = 0; - $submit = ' ' . Xml::submitbutton( $this->msg( 'allpagessubmit' )->text() ); + $submit = ' ' . Xml::submitbutton( $this->msg( 'recentchanges-submit' )->text() ); $out = Xml::openElement( 'table', array( 'class' => 'mw-recentchanges-table' ) ); foreach ( $extraOpts as $name => $optionRow ) { diff --git a/languages/i18n/en.json b/languages/i18n/en.json index 9602a83059..4585774b56 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -1761,6 +1761,7 @@ "usercreated": "{{GENDER:$3|Created}} on $1 at $2", "newpages": "New pages", "newpages-summary": "", + "newpages-submit": "Show", "newpages-username": "Username:", "ancientpages": "Oldest pages", "ancientpages-summary": "", @@ -1792,6 +1793,7 @@ "specialloguserlabel": "Performer:", "speciallogtitlelabel": "Target (title or {{ns:user}}:username for user):", "log": "Logs", + "logeventslist-submit": "Show", "all-logs-page": "All public logs", "alllogstext": "Combined display of all available logs of {{SITENAME}}.\nYou can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).", "logempty": "No matching items in log.", @@ -1816,6 +1818,7 @@ "cachedspecial-refresh-now": "View latest.", "categories": "Categories", "categories-summary": "", + "categories-submit": "Show", "categoriespagetext": "The following {{PLURAL:$1|category contains|categories contain}} pages or media.\n[[Special:UnusedCategories|Unused categories]] are not shown here.\nAlso see [[Special:WantedCategories|wanted categories]].", "categoriesfrom": "Display categories starting at:", "special-categories-sort-count": "sort by count", @@ -1974,6 +1977,7 @@ "delete-confirm": "Delete \"$1\"", "delete-legend": "Delete", "historywarning": "Warning: The page you are about to delete has a history with $1 {{PLURAL:$1|revision|revisions}}:", + "historyaction-submit": "Show", "confirmdeletetext": "You are about to delete a page along with all of its history.\nPlease confirm that you intend to do this, that you understand the consequences, and that you are doing this in accordance with [[{{MediaWiki:Policy-url}}|the policy]].", "actioncomplete": "Action complete", "actionfailed": "Action failed", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index f741b6ea76..7131567f75 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -950,6 +950,7 @@ "page_last": "This is part of the navigation message on the top and bottom of Special pages which are lists of things in alphabetical order, e.g. the '[[Special:Categories|Categories]]' special page. It is followed by the message {{msg-mw|Viewprevnext}}.\n\n{{Identical|Last}}", "histlegend": "Text in history page.\n\nSee also:\n* {{msg-mw|Cur}}\n* {{msg-mw|Last}}\n* {{msg-mw|Minoreditletter}}", "history-fieldset-title": "Fieldset label in the edit history pages.", + "historyaction-submit": "Submit button on history pages", "history-show-deleted": "CheckBox to show only per [[mw:Manual:RevisionDelete|RevisonDelete]] deleted versions.\n\nUsed in History and [[Special:Contributions]].", "history_copyright": "{{notranslate}}", "histfirst": "This is part of the navigation message on the top and bottom of Page History pages which are lists of things in date order, e.g. [{{canonicalurl:Support|action=history}} Page History of Support].\n\nIt is followed by the message {{msg-mw|Viewprevnext}}.\n{{Identical|Oldest}}", @@ -1937,6 +1938,7 @@ "newpages": "{{doc-special|NewPages}}\n{{Identical|New page}}", "newpages-summary": "{{notranslate}}\nThe summary displayed at the top of [[Special:Newpages]]. [[mw:Manual:Interface/Special pages summary|mw manual]].", "newpages-username": "{{Identical|Username}}", + "newpages-submit": "Submit button on [[Special:Newpages]]", "ancientpages": "{{doc-special|AncientPages}}\nSee [[mw:Manual:Interface/Special pages title|manual]].", "ancientpages-summary": "{{doc-specialpagesummary|ancientpages}}", "move": "Name of Move tab. Should be in the imperative mood.\n\nSee also:\n* {{msg-mw|Move}}\n* {{msg-mw|Accesskey-ca-move}}\n* {{msg-mw|Tooltip-ca-move}}\n{{Identical|Move}}", @@ -1969,6 +1971,7 @@ "log": "{{doc-special|Log}}\n{{Identical|Log}}", "all-logs-page": "{{doc-logpage}}\nTitle of [[Special:Log]].", "alllogstext": "Header of [[Special:Log]]", + "logeventslist-submit": "Submit button on [[Special:Log]]", "logempty": "Used as warning when there are no items to show.", "log-title-wildcard": "* Appears in: [[Special:Log]]\n* Description: A check box to enable prefix search option", "showhideselectedlogentries": "Text of the button which brings up the [[mw:RevisionDelete|RevisionDelete]] menu on [[Special:Log]].", @@ -1991,6 +1994,7 @@ "cachedspecial-refresh-now": "Link text pointing to the most recent version of the page.", "categories": "The page name of [[Special:Categories]].\n{{Identical|Category}}", "categories-summary": "{{doc-specialpagesummary|categories}}", + "categories-submit": "Submit button on [[Special:Categories]]", "categoriespagetext": "{{doc-important|Do not translate or change links.}}\nText displayed in [[Special:Categories]].\n\nIn order to translate \"Unused categories\" and \"wanted categories\" see {{msg-mw|Unusedcategories}} and {{msg-mw|Wantedcategories}}.\n\nParameters:\n* $1 - number of categories", "categoriesfrom": "Used as label for the input box in [[Special:Categories]].\n\nThis message follows the fieldset label {{msg-mw|categories}}, and is followed by the input box.", "special-categories-sort-count": "Commented out at this time.\n\nThis message is used on [[Special:Categories]] to sort the list by the number of members in the categories.\n\nSee also:\n* {{msg-mw|Special-categories-sort-abc}}", -- 2.20.1