Jdlrobson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/71630
Change subject: Bug 50571: Make plural work for
mobile-frontend-diffview-editcount
......................................................................
Bug 50571: Make plural work for mobile-frontend-diffview-editcount
Change-Id: Ib881581db0d53e9de4781835d554c588b777c2a5
---
M MobileFrontend.i18n.php
M includes/specials/SpecialMobileDiff.php
2 files changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/30/71630/1
diff --git a/MobileFrontend.i18n.php b/MobileFrontend.i18n.php
index 9a2e7b5..47ca70e 100644
--- a/MobileFrontend.i18n.php
+++ b/MobileFrontend.i18n.php
@@ -188,7 +188,7 @@
'mobile-frontend-diffview-404-title' => 'Bad revision',
'mobile-frontend-diffview-404-desc' => 'The id for the revision you
requested does not exist.',
'mobile-frontend-diffview-title' => 'Changes',
- 'mobile-frontend-diffview-editcount' => '$1 {{PLURAL:$1|edit|edits}}',
+ 'mobile-frontend-diffview-editcount' => '<div>$1</div>
{{PLURAL:$1|edit|edits}}',
'mobile-frontend-diffview-anonymous' => 'Anonymous user',
'mobile-frontend-diffview-bytesadded' => '$1 {{PLURAL:$1|byte|bytes}}
added',
'mobile-frontend-diffview-bytesremoved' => '$1 {{PLURAL:$1|byte|bytes}}
removed',
@@ -583,7 +583,7 @@
'mobile-frontend-diffview-title' => 'Header for common mobile
diff/change view. Parameters:
* $1 - page title (an optional parameter for backwards compatibility)
{{Identical|Change}}',
- 'mobile-frontend-diffview-editcount' => 'Edit count of user in common
mobile diff/change view. $1 is the count, may use PLURAL.',
+ 'mobile-frontend-diffview-editcount' => 'Edit count of user in common
mobile diff/change view. $1 is the count, may use PLURAL. Ensure number is
wrapped in a div element',
'mobile-frontend-diffview-anonymous' => 'Label to indicate anonymous
user in common mobile diff/change view.
{{Identical|Anonymous user}}',
'mobile-frontend-diffview-bytesadded' => 'Edit byte-changed counter for
common mobile diff/change view when change adds bytes. $1 is byte count; may
use PLURAL.',
diff --git a/includes/specials/SpecialMobileDiff.php
b/includes/specials/SpecialMobileDiff.php
index e3a4a4f..d403175 100644
--- a/includes/specials/SpecialMobileDiff.php
+++ b/includes/specials/SpecialMobileDiff.php
@@ -215,7 +215,7 @@
$this->listGroups( $user ) .
'</div>' .
'<div class="mw-mf-edit-count">' .
- $this->msg(
'mobile-frontend-diffview-editcount', '<div>' .
$this->getLanguage()->formatNum( $edits ) . '</div>' )->parse() .
+ $this->msg(
'mobile-frontend-diffview-editcount', $this->getLanguage()->formatNum( $edits )
)->parse() .
'</div>'
);
} else {
--
To view, visit https://gerrit.wikimedia.org/r/71630
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib881581db0d53e9de4781835d554c588b777c2a5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits