From 9e195d7f7bfed58c6a0e894f275c885f181188f8 Mon Sep 17 00:00:00 2001 From: PranavK Date: Fri, 11 Dec 2015 17:42:03 +0530 Subject: [PATCH] Localisation: Gave each special page its own message Bug: T45502 Change-Id: I6d41c2174a67bc9b231b6fc6209677fb84692cc5 --- includes/specials/SpecialActiveusers.php | 4 +++- includes/specials/SpecialListusers.php | 2 +- includes/specials/SpecialPrefixindex.php | 2 +- includes/specials/SpecialProtectedpages.php | 2 +- includes/specials/SpecialProtectedtitles.php | 2 +- includes/specials/SpecialWatchlist.php | 2 +- includes/specials/SpecialWhatlinkshere.php | 2 +- languages/i18n/en.json | 9 +++++++++ languages/i18n/qqq.json | 9 +++++++++ 9 files changed, 27 insertions(+), 7 deletions(-) diff --git a/includes/specials/SpecialActiveusers.php b/includes/specials/SpecialActiveusers.php index e51b6c03f7..70c7a8b6d5 100644 --- a/includes/specials/SpecialActiveusers.php +++ b/includes/specials/SpecialActiveusers.php @@ -240,7 +240,7 @@ class ActiveUsersPager extends UsersPager { # Submit button and form bottom $out .= Xml::submitButton( - $this->msg( 'allpagessubmit' )->text(), + $this->msg( 'activeusers-submit' )->text(), array( 'tabindex' => 4 ) ) . "\n"; $out .= Xml::closeElement( 'fieldset' ); @@ -318,3 +318,5 @@ class SpecialActiveUsers extends SpecialPage { return 'users'; } } + + diff --git a/includes/specials/SpecialListusers.php b/includes/specials/SpecialListusers.php index 274a95a096..d43a263f7e 100644 --- a/includes/specials/SpecialListusers.php +++ b/includes/specials/SpecialListusers.php @@ -322,7 +322,7 @@ class UsersPager extends AlphabeticPager { # Submit button and form bottom $out .= Html::hidden( 'limit', $this->mLimit ); - $out .= Xml::submitButton( $this->msg( 'allpagessubmit' )->text() ); + $out .= Xml::submitButton( $this->msg( 'listusers-submit' )->text() ); Hooks::run( 'SpecialListusersHeader', array( $this, &$out ) ); $out .= Xml::closeElement( 'fieldset' ) . Xml::closeElement( 'form' ); diff --git a/includes/specials/SpecialPrefixindex.php b/includes/specials/SpecialPrefixindex.php index 2f65d69c83..6de394b46b 100644 --- a/includes/specials/SpecialPrefixindex.php +++ b/includes/specials/SpecialPrefixindex.php @@ -138,7 +138,7 @@ class SpecialPrefixindex extends SpecialAllPages { 'stripprefix', $this->stripPrefix ) . ' ' . - Xml::submitButton( $this->msg( 'allpagessubmit' )->text() ) . + Xml::submitButton( $this->msg( 'prefixindex-submit' )->text() ) . " "; $out .= Xml::closeElement( 'table' ); diff --git a/includes/specials/SpecialProtectedpages.php b/includes/specials/SpecialProtectedpages.php index 0119781c6d..7a82cd8a88 100644 --- a/includes/specials/SpecialProtectedpages.php +++ b/includes/specials/SpecialProtectedpages.php @@ -109,7 +109,7 @@ class SpecialProtectedpages extends SpecialPage { $this->getRedirectCheck( $noRedirect ) . "\n" . "
\n" . $this->getSizeLimit( $sizetype, $size ) . "\n" . - Xml::submitButton( $this->msg( 'allpagessubmit' )->text() ) . "\n" . + Xml::submitButton( $this->msg( 'protectedpages-submit' )->text() ) . "\n" . Xml::closeElement( 'fieldset' ) . Xml::closeElement( 'form' ); } diff --git a/includes/specials/SpecialProtectedtitles.php b/includes/specials/SpecialProtectedtitles.php index 85ce78ff58..2c79fec1da 100644 --- a/includes/specials/SpecialProtectedtitles.php +++ b/includes/specials/SpecialProtectedtitles.php @@ -126,7 +126,7 @@ class SpecialProtectedtitles extends SpecialPage { Html::hidden( 'title', $special ) . " \n" . $this->getNamespaceMenu( $namespace ) . " \n" . $this->getLevelMenu( $level ) . " \n" . - " " . Xml::submitButton( $this->msg( 'allpagessubmit' )->text() ) . "\n" . + " " . Xml::submitButton( $this->msg( 'protectedtitles-submit' )->text() ) . "\n" . ""; } diff --git a/includes/specials/SpecialWatchlist.php b/includes/specials/SpecialWatchlist.php index b5e614d2c8..e22a8e6c26 100644 --- a/includes/specials/SpecialWatchlist.php +++ b/includes/specials/SpecialWatchlist.php @@ -502,7 +502,7 @@ class SpecialWatchlist extends ChangesListSpecialPage { $opts['associated'], array( 'title' => $this->msg( 'tooltip-namespace_association' )->text() ) ) . "\n"; - $form .= Xml::submitButton( $this->msg( 'allpagessubmit' )->text() ) . "\n"; + $form .= Xml::submitButton( $this->msg( 'watchlist-submit' )->text() ) . "\n"; foreach ( $hiddenFields as $key => $value ) { $form .= Html::hidden( $key, $value ) . "\n"; } diff --git a/includes/specials/SpecialWhatlinkshere.php b/includes/specials/SpecialWhatlinkshere.php index 0e5ffce4ff..25f01ee65d 100644 --- a/includes/specials/SpecialWhatlinkshere.php +++ b/includes/specials/SpecialWhatlinkshere.php @@ -496,7 +496,7 @@ class SpecialWhatLinksHere extends IncludableSpecialPage { $f .= ' '; # Submit - $f .= Xml::submitButton( $this->msg( 'allpagessubmit' )->text() ); + $f .= Xml::submitButton( $this->msg( 'whatlinkshere-submit' )->text() ); # Close $f .= Xml::closeElement( 'fieldset' ) . Xml::closeElement( 'form' ) . "\n"; diff --git a/languages/i18n/en.json b/languages/i18n/en.json index 70a2b805b7..75d577dc07 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -1250,6 +1250,7 @@ "recentchanges-legend-bot": "{{int:recentchanges-label-bot}}", "recentchanges-legend-unpatrolled": "{{int:recentchanges-label-unpatrolled}}", "recentchanges-legend-plusminus": "(±123)", + "recentchanges-submit": "Show", "rcnotefrom": "Below {{PLURAL:$5|is the change|are the changes}} since $3, $4 (up to $1 shown).", "rclistfrom": "Show new changes starting from $2, $3", "rcshowhideminor": "$1 minor edits", @@ -1721,6 +1722,7 @@ "prefixindex": "All pages with prefix", "prefixindex-namespace": "All pages with prefix ($1 namespace)", "prefixindex-summary": "", + "prefixindex-submit": "Show", "prefixindex-strip": "Strip prefix in list", "shortpages": "Short pages", "shortpages-summary": "", @@ -1741,12 +1743,14 @@ "protectedpages-performer": "Protecting user", "protectedpages-params": "Protection parameters", "protectedpages-reason": "Reason", + "protectedpages-submit": "Display pages", "protectedpages-unknown-timestamp": "Unknown", "protectedpages-unknown-performer": "Unknown user", "protectedpages-unknown-reason": "—", "protectedtitles": "Protected titles", "protectedtitles-summary": "This page lists titles that are currently protected from creation. For a list of existing pages that are protected, see [[{{#special:ProtectedPages}}|{{int:protectedpages}}]].", "protectedtitlesempty": "No titles are currently protected with these parameters.", + "protectedtitles-submit": "Display titles", "listusers": "User list", "listusers-summary": "", "listusers-editsonly": "Show only users with edits", @@ -1839,6 +1843,7 @@ "activeusers-hidebots": "Hide bots", "activeusers-hidesysops": "Hide administrators", "activeusers-noresult": "No users found.", + "activeusers-submit": "Display active users", "listgrouprights": "User group rights", "listgrouprights-summary": "The following is a list of user groups defined on this wiki, with their associated access rights.\nThere may be [[{{MediaWiki:Listgrouprights-helppage}}|additional information]] about individual rights.", "listgrouprights-key": "Legend:\n* Granted right\n* Revoked right", @@ -1930,6 +1935,7 @@ "wlshowlast": "Show last $1 hours $2 days", "watchlistall2": "all", "watchlist-hide": "Hide", + "watchlist-submit": "Show", "wlshowtime": "Period of time to display:", "wlshowhideminor": "minor edits", "wlshowhidebots": "bots", @@ -2165,6 +2171,7 @@ "whatlinkshere-hidelinks": "$1 links", "whatlinkshere-hideimages": "$1 file links", "whatlinkshere-filters": "Filters", + "whatlinkshere-submit": "Go", "autoblockid": "Autoblock #$1", "block": "Block user", "unblock": "Unblock user", @@ -3874,3 +3881,5 @@ "mw-widgets-titleinput-description-redirect": "redirect to $1", "api-error-blacklisted": "Please choose a different, descriptive title." } + + diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index fc72a4b281..73b352261a 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -1425,6 +1425,7 @@ "recentchanges-legend-bot": "Used as legend on [[Special:RecentChanges]] and [[Special:Watchlist]].\n\nRefers to {{msg-mw|Recentchanges-label-bot}}.", "recentchanges-legend-unpatrolled": "Used as legend on [[Special:RecentChanges]] and [[Special:Watchlist]].\n\nRefers to {{msg-mw|Recentchanges-label-unpatrolled}}.", "recentchanges-legend-plusminus": "{{optional}}\nA plus/minus sign with a number for the legend.", + "recentchanges-submit": "Label for submit button in [[Special:RecentChanges]]", "rcnotefrom": "This message is displayed at [[Special:RecentChanges]] when viewing recentchanges from some specific time.\n\nThe corresponding message is {{msg-mw|Rclistfrom}}.\n\nParameters:\n* $1 - the maximum number of changes that are displayed\n* $2 - (Optional) a date and time\n* $3 - a date\n* $4 - a time\n* $5 - Number of changes are displayed, for use with PLURAL", "rclistfrom": "Used on [[Special:RecentChanges]]. Parameters:\n* $1 - (Currently not use) date and time. The date and the time adds to the rclistfrom description.\n* $2 - time. The time adds to the rclistfrom link description (with split of date and time).\n* $3 - date. The date adds to the rclistfrom link description (with split of date and time).\n\nThe corresponding message is {{msg-mw|Rcnotefrom}}.", "rcshowhideminor": "Option text in [[Special:RecentChanges]]. Parameters:\n* $1 - the \"show/hide\" command, with the text taken from either {{msg-mw|rcshowhideminor-show}} or {{msg-mw|rcshowhideminor-hide}}\n{{Identical|Minor edit}}", @@ -1895,6 +1896,7 @@ "mostrevisions-summary": "{{notranslate}}\nThe summary displayed at the top of [[Special:Mostrevisions]]. [[mw:Manual:Interface/Special pages summary|mw manual]].", "prefixindex": "{{doc-special|PrefixIndex}}\nWhen the user limits the list to a certain namespace, {{msg-mw|allinnamespace}} is used instead.", "prefixindex-namespace": "The page title of [[Special:PrefixIndex]] limited to a specific namespace. Similar to {{msg-mw|allinnamespace}}. $1 is the name of the namespace", + "prefixindex-submit": "Label on submit button in [[Special:PrefixIndex]]", "prefixindex-summary": "{{notranslate}}\n\nThe summary displayed at the top of [[Special:Prefixindex]]. [[mw:Manual:Interface/Special pages summary|MediaWiki manual]].", "prefixindex-strip": "Label for a checkbox. If the checkbox is checked, the prefix searched will be removed from the title displayed in the list. Used in [[Special:PrefixIndex]].\n\nSee the following search results:\n* [{{canonicalurl:Special:PrefixIndex|prefix=Doc&namespace=10}} Special:PrefixIndex?prefix=Doc&namespace=10] (prefix NOT stripped)\n* [{{canonicalurl:Special:PrefixIndex|prefix=Doc&namespace=10&stripprefix=1}} Special:PrefixIndex?prefix=Doc&namespace=10&stripprefix=1] (prefix stripped)", "shortpages": "{{doc-special|ShortPages}}", @@ -1916,12 +1918,14 @@ "protectedpages-performer": "This is a column header in the table on the page [[Special:ProtectedPages]].", "protectedpages-params": "This is a column header in the table on the page [[Special:ProtectedPages]].\n\nProtection parameters are:\n* {{msg-mw|Restriction-level-autoconfirmed}}\n* {{msg-mw|Restriction-level-sysop}}", "protectedpages-reason": "This is a column header in the table on the page [[Special:ProtectedPages]].\n{{Identical|Reason}}", + "protectedpages-submit": "Label on search button in [[Special:ProtectedPages]]", "protectedpages-unknown-timestamp": "This is shown, when the date and time is unknown for a protection on the page [[Special:ProtectedPages]].\n{{Identical|Unknown}}", "protectedpages-unknown-performer": "This is shown, when the protecting user is unknown for a protection on the page [[Special:ProtectedPages]].", "protectedpages-unknown-reason": "{{ignored}}Comment used for extremely old protection log events (before there was a reason field).", "protectedtitles": "{{doc-special|ProtectedTitles}}", "protectedtitles-summary": "Summary of [[Special:ProtectedTitles]].\n\nSee also:\n* {{msg-mw|Protectedpages-summary}}", "protectedtitlesempty": "Used on [[Special:ProtectedTitles]]. This text appears if the list of protected titles is empty. See the [[mw:Project:Protected_titles|help page on MediaWiki]] for more information.", + "protectedtitles-submit": "Label on submit button in [[Special:ProtectedTitles]]", "listusers": "{{doc-special|ListUsers}}", "listusers-summary": "{{notranslate}}\nThe summary displayed at the top of [[Special:Listusers]]. [[mw:Manual:Interface/Special pages summary|mw manual]].", "listusers-editsonly": "Option in [[Special:ListUsers]].", @@ -2014,6 +2018,7 @@ "activeusers-hidebots": "Used as label for checkbox in the form on [[Special:ActiveUsers]].\n\nSee also:\n* {{msg-mw|activeusers|legend for the form}}\n* {{msg-mw|activeusers-from|label for input box}}\n* {{msg-mw|activeusers-hidesysops|label for checkbox}}", "activeusers-hidesysops": "Used as label for checkbox in the form on [[Special:ActiveUsers]].\n\nSee also:\n* {{msg-mw|activeusers|legend for the form}}\n* {{msg-mw|activeusers-from|label for input box}}\n* {{msg-mw|activeusers-hidebots|label for checkbox}}", "activeusers-noresult": "identical with {{msg-mw|listusers-noresult}}", + "activeusers-submit": "Used as label for button in the form on [[Special:ActiveUsers]]", "listgrouprights": "The name of the special page [[Special:ListGroupRights]].", "listgrouprights-summary": "The description used on [[Special:ListGroupRights]].\n\nRefers to {{msg-mw|Listgrouprights-helppage}}.", "listgrouprights-key": "Footer note for the [[Special:ListGroupRights]] page", @@ -2105,6 +2110,7 @@ "wlshowlast": "Appears on [[Special:Watchlist]]. Parameters:\n* $1 - a choice of different numbers of hours (\"1 | 2 | 6 | 12\")\n* $2 - a choice of different numbers of days (\"1 | 3 | 7\" and the maximum number of days available)\nClicking on your choice changes the list of changes you see (without changing the default in my preferences).", "watchlistall2": "Appears on [[Special:Watchlist]], after {{msg-mw|wlshowtime}}, as the option to display all available data regardless of age.\n{{Identical|All}}", "watchlist-hide": "Appears on [[Special:Watchlist]]. It is the first word on a new line with checkboxes to hide/unhide options\n{{Identical|Hide}}", + "watchlist-submit": "Label on the submit button in [[Special:Watchlist]]", "wlshowtime": "Appears on [[Special:Watchlist]]. Label of a drop-down list used to specify the period of time to display in the watchlist. This period can be {{msg-mw|days}}, {{msg-mw|hours}}, or {{msg-mw|watchlistall2}}.", "wlshowhideminor": "Option text in [[Special:Watchlist]]. Cf. {{msg-mw|rcshowhideminor}}.\n{{Identical|Minor edit}}", "wlshowhidebots": "Option text in [[Special:Watchlist]]. Cf. {{msg-mw|rcshowhidebots}}.\n{{Identical|Bot}}", @@ -2340,6 +2346,7 @@ "whatlinkshere-hidelinks": "Filter option in [[Special:WhatLinksHere]]. Parameters:\n* $1 is the {{msg-mw|hide}} or {{msg-mw|show}}\n{{Identical|Link}}", "whatlinkshere-hideimages": "Filter option in [[Special:WhatLinksHere]]. Parameters:\n* $1 - the {{msg-mw|Hide}} or {{msg-mw|Show}}\n\nSee also:\n*{{msg-mw|Isimage}}\n*{{msg-mw|Media tip}}", "whatlinkshere-filters": "{{Identical|Filter}}", + "whatlinkshere-submit": "Label for submit button in [[Special:WhatLinksHere]]", "autoblockid": "Used as name of autoblock, instead of autoblocked IPs. Parameters:\n* $1 - autoblock ID", "block": "{{doc-special|Block}}\n{{Identical|Block user}}", "unblock": "{{doc-special|Unblock}}", @@ -4049,3 +4056,5 @@ "mw-widgets-titleinput-description-redirect": "Description label for a redirect in the title input widget.", "api-error-blacklisted": "Used as error message.\n\nFollowed by the link {{msg-mw|Mwe-upwiz-feedback-blacklist-info-prompt}}." } + + -- 2.20.1