Localization: Gave each special page its own message
authorAlbert221 <w.albert221@gmail.com>
Sun, 13 Dec 2015 13:34:28 +0000 (14:34 +0100)
committerAlbert221 <w.albert221@gmail.com>
Sun, 13 Dec 2015 15:16:25 +0000 (16:16 +0100)
Bug: T45502
Change-Id: I847c8b294d7e4596b229ad6180764c43c42af1e2

includes/actions/HistoryAction.php
includes/logging/LogEventsList.php
includes/specials/SpecialCategories.php
includes/specials/SpecialNewpages.php
includes/specials/SpecialRecentchanges.php
languages/i18n/en.json
languages/i18n/qqq.json

index a81adf9..4da51c9 100644 (file)
@@ -192,7 +192,7 @@ class HistoryAction extends FormlessAction {
                        ( $tagSelector ? ( implode( '&#160;', $tagSelector ) . '&#160;' ) : '' ) .
                        $checkDeleted .
                        Html::submitButton(
-                               $this->msg( 'allpagessubmit' )->text(),
+                               $this->msg( 'historyaction-submit' )->text(),
                                array(),
                                array( 'mw-ui-progressive' )
                        ) . "\n" .
index df37610..dcd7a45 100644 (file)
@@ -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 );
index cea6ceb..564579a 100644 (file)
@@ -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' )
                                                )
                                )
index 0fa4857..5d3700d 100644 (file)
@@ -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.
index 3a1621a..4848d01 100644 (file)
@@ -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 ) {
index 9602a83..4585774 100644 (file)
        "usercreated": "{{GENDER:$3|Created}} on $1 at $2",
        "newpages": "New pages",
        "newpages-summary": "",
+       "newpages-submit": "Show",
        "newpages-username": "Username:",
        "ancientpages": "Oldest pages",
        "ancientpages-summary": "",
        "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.",
        "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",
        "delete-confirm": "Delete \"$1\"",
        "delete-legend": "Delete",
        "historywarning": "<strong>Warning:</strong> 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",
index f741b6e..7131567 100644 (file)
        "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}}",
        "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}}",
        "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]].",
        "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}}",