Nemo bis has uploaded a new change for review.
https://gerrit.wikimedia.org/r/86747
Change subject: User words in twnmp-*-per-month and add PLURAL
......................................................................
User words in twnmp-*-per-month and add PLURAL
The slash is ugly and is also technically wrong,
as it's about last 30 or so days.
Change-Id: I20544ae84a719ddb64f8b1cb87ae96b51e31ba7f
---
M MainPage.i18n.php
M specials/SpecialTwnMainPage.php
2 files changed, 12 insertions(+), 8 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TwnMainPage
refs/changes/47/86747/1
diff --git a/MainPage.i18n.php b/MainPage.i18n.php
index 2a130c6..b7b21a8 100644
--- a/MainPage.i18n.php
+++ b/MainPage.i18n.php
@@ -38,8 +38,8 @@
'twnmp-your-translations-stats' => 'Your translation statistics',
'twnmp-your-translations-stats-all-languages' => 'For all languages',
'twnmp-your-view-language-stats' => 'View language statistics',
- 'twnmp-translations-per-month' => 'Translations/month',
- 'twnmp-reviews-per-month' => 'Reviews/month',
+ 'twnmp-translations-per-month' =>
'{{PLURAL:$1|Translation|Translations}} last month',
+ 'twnmp-reviews-per-month' => '{{PLURAL:$1|Review|Reviews}} last month',
'twnmp-translations-translator-ranking' => '{{PLURAL:$3|1=You are the
only one<br />for $4|{{GENDER:$1|Ranked}} $2 of $3<br />for $4}}',
'twnmp-translations-translator-ranking-source' => '{{PLURAL:$3|1=You
are the only one|{{GENDER:$1|Ranked}} $2 of $3}}',
@@ -133,12 +133,12 @@
See example of English version: [{{canonicalurl:Special:MainPage|uselang=en
Special:MainPage}}]',
'twnmp-your-view-language-stats' => "A link that appears under the
user's translation statistics.",
'twnmp-translations-per-month' => "Used in [[Special:Mainpage]].
-Appears in the user's statistics box near a number.
+Appears in the user's statistics box near a number ($1).
Means that the users performs that number of translations every month.
-Translate it in a way that is natural to your language - you don't have to use
the '/' character.",
- 'twnmp-reviews-per-month' => "Appears in the user's statistics box near
a number.
+Translate it in a way that is natural to your language.",
+ 'twnmp-reviews-per-month' => "Appears in the user's statistics box near
a number ($1).
Means that the users performs that number of review actions every month.
-Translate it in a way that is natural to your language - you don't have to use
the '/' character.
+Translate it in a way that is natural to your language.
{{Identical|Review}}",
'twnmp-translations-translator-ranking' => 'Shown in the "Translate"
and "Review" boxes in the center of [[Special:MainPage]].
diff --git a/specials/SpecialTwnMainPage.php b/specials/SpecialTwnMainPage.php
index accc93b..cd451d0 100644
--- a/specials/SpecialTwnMainPage.php
+++ b/specials/SpecialTwnMainPage.php
@@ -625,7 +625,9 @@
$out .= Html::element(
'div',
array( 'class' => 'count-description' ),
- $this->msg(
'twnmp-translations-per-month' )->text()
+ $this->msg(
'twnmp-translations-per-month' )
+ ->numParams( $count )
+ ->text()
);
// TODO: When refactoring, $languageName should
not be used
@@ -666,7 +668,9 @@
$out .= Html::element(
'div',
array( 'class' => 'count-description' ),
- $this->msg( 'twnmp-reviews-per-month'
)->text()
+ $this->msg( 'twnmp-reviews-per-month' )
+ ->numParams( $count )
+ ->text()
);
// TODO: When refactoring, $languageName should
not be used
--
To view, visit https://gerrit.wikimedia.org/r/86747
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I20544ae84a719ddb64f8b1cb87ae96b51e31ba7f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/TwnMainPage
Gerrit-Branch: master
Gerrit-Owner: Nemo bis <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits