Albert221 has uploaded a new change for review.
https://gerrit.wikimedia.org/r/258749
Change subject: Localization: Gave each special page its own message
......................................................................
Localization: Gave each special page its own message
Bug: T45502
Change-Id: I847c8b294d7e4596b229ad6180764c43c42af1e2
---
M includes/actions/HistoryAction.php
M includes/logging/LogEventsList.php
M includes/specials/SpecialCategories.php
M includes/specials/SpecialNewpages.php
M includes/specials/SpecialRecentchanges.php
M languages/i18n/en.json
6 files changed, 9 insertions(+), 5 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/49/258749/1
diff --git a/includes/actions/HistoryAction.php
b/includes/actions/HistoryAction.php
index a81adf9..4da51c9 100644
--- a/includes/actions/HistoryAction.php
+++ b/includes/actions/HistoryAction.php
@@ -192,7 +192,7 @@
( $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 df37610..dcd7a45 100644
--- a/includes/logging/LogEventsList.php
+++ b/includes/logging/LogEventsList.php
@@ -114,7 +114,7 @@
}
// 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 cea6ceb..564579a 100644
--- a/includes/specials/SpecialCategories.php
+++ b/includes/specials/SpecialCategories.php
@@ -191,7 +191,7 @@
'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 0fa4857..5d3700d 100644
--- a/includes/specials/SpecialNewpages.php
+++ b/includes/specials/SpecialNewpages.php
@@ -254,7 +254,7 @@
$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 3a1621a..4848d01 100644
--- a/includes/specials/SpecialRecentchanges.php
+++ b/includes/specials/SpecialRecentchanges.php
@@ -403,7 +403,7 @@
$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 9602a83..4585774 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": "<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",
--
To view, visit https://gerrit.wikimedia.org/r/258749
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I847c8b294d7e4596b229ad6180764c43c42af1e2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Albert221 <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits