Florianschmidtwelzow has submitted this change and it was merged. Change subject: Add PLURAL support for minimumlengtherror message ......................................................................
Add PLURAL support for minimumlengtherror message https://translatewiki.net/wiki/Thread:Translating_talk:MediaWiki/About_MediaWiki:Minimumnamelength-error/ksh Change-Id: Ifa7844db0754873792b60c37fb3ae405a951df5c --- M MinimumNameLength.php M i18n/en.json 2 files changed, 2 insertions(+), 2 deletions(-) Approvals: Florianschmidtwelzow: Verified; Looks good to me, approved diff --git a/MinimumNameLength.php b/MinimumNameLength.php index d6e006c..1de493a 100644 --- a/MinimumNameLength.php +++ b/MinimumNameLength.php @@ -60,7 +60,7 @@ if( mb_strlen( $user->getName() ) < $wgMinimumUsernameLength ) { - $error = wfMessage( 'minimumnamelength-error', $wgMinimumUsernameLength )->plain(); + $error = wfMessage( 'minimumnamelength-error' )->numParams( $wgMinimumUsernameLength )->plain(); return false; } diff --git a/i18n/en.json b/i18n/en.json index 5d8652d..3855a41 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -6,5 +6,5 @@ ] }, "minimumnamelength-desc": "Allows to enforce a minimum username length", - "minimumnamelength-error": "Your username is too short. The minimum required length is $1." + "minimumnamelength-error": "Your username is too short. The minimum required length is {{PLURAL:$1|one character|$1 characters}}." } -- To view, visit https://gerrit.wikimedia.org/r/265738 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ifa7844db0754873792b60c37fb3ae405a951df5c Gerrit-PatchSet: 3 Gerrit-Project: mediawiki/extensions/MinimumNameLength Gerrit-Branch: master Gerrit-Owner: MtDu <justin.d...@gmail.com> Gerrit-Reviewer: Florianschmidtwelzow <florian.schmidt.stargatewis...@gmail.com> Gerrit-Reviewer: MtDu <justin.d...@gmail.com> Gerrit-Reviewer: Nemo bis <federicol...@tiscali.it> Gerrit-Reviewer: Purodha <puro...@blissenbach.org> Gerrit-Reviewer: Siebrand <siebr...@kitano.nl> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits