Siebrand has uploaded a new change for review. https://gerrit.wikimedia.org/r/88119
Change subject: Add GENDER support for 'thanks-error-ratelimited' ...................................................................... Add GENDER support for 'thanks-error-ratelimited' Spotted by Matma Rex and reported at https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Thanks-error-ratelimited/en Change-Id: Ib19f7297e6a99d89cc9465233d1604e55c330bfa --- M Thanks.i18n.php M modules/ext.thanks.mobilediff.js M modules/ext.thanks.thank.js 3 files changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Thanks refs/changes/19/88119/1 diff --git a/Thanks.i18n.php b/Thanks.i18n.php index bf280c3..3fb42f3 100644 --- a/Thanks.i18n.php +++ b/Thanks.i18n.php @@ -19,7 +19,7 @@ 'thanks-button-thanked' => '{{GENDER:$1|Thanked}}', 'thanks-error-undefined' => 'Thank action failed. Please try again.', 'thanks-error-invalidrevision' => 'Revision ID is not valid.', - 'thanks-error-ratelimited' => "You've exceeded your rate limit. Please wait some time and try again.", + 'thanks-error-ratelimited' => "{{GENDER:$1|You}}'ve exceeded your rate limit. Please wait some time and try again.", 'thanks-thank-tooltip' => '{{GENDER:$1|Send}} a thank you notification to this {{GENDER:$2|user}}', 'thanks-confirmation' => 'Do you want to {{GENDER:$1|thank}} $2 for this edit?', 'thanks-thanked-notice' => '$1 was notified that you liked {{GENDER:$2|his|her|their}} edit.', diff --git a/modules/ext.thanks.mobilediff.js b/modules/ext.thanks.mobilediff.js index 31ff2f6..58a4a6c 100644 --- a/modules/ext.thanks.mobilediff.js +++ b/modules/ext.thanks.mobilediff.js @@ -22,7 +22,7 @@ popup.show( mw.msg( 'thanks-error-invalidrevision' ) ); break; case 'ratelimited': - popup.show( mw.msg( 'thanks-error-ratelimited' ) ); + popup.show( mw.msg( 'thanks-error-ratelimited', gender ) ); break; default: popup.show( mw.msg( 'thanks-error-undefined' ) ); diff --git a/modules/ext.thanks.thank.js b/modules/ext.thanks.thank.js index 7a0b83b..6526823 100644 --- a/modules/ext.thanks.thank.js +++ b/modules/ext.thanks.thank.js @@ -93,7 +93,7 @@ alert( mw.msg( 'thanks-error-invalidrevision' ) ); break; case 'ratelimited': - alert( mw.msg( 'thanks-error-ratelimited' ) ); + alert( mw.msg( 'thanks-error-ratelimited', mw.user ) ); break; default: alert( mw.msg( 'thanks-error-undefined' ) ); -- To view, visit https://gerrit.wikimedia.org/r/88119 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib19f7297e6a99d89cc9465233d1604e55c330bfa Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Thanks Gerrit-Branch: master Gerrit-Owner: Siebrand <siebr...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits