mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-15 19:09:52 +00:00
Merge "Add GENDER support for 'thanks-error-ratelimited'"
This commit is contained in:
commit
16bc19e2da
|
@ -19,7 +19,7 @@ $messages['en'] = array(
|
|||
'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.',
|
||||
|
|
|
@ -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' ) );
|
||||
|
|
|
@ -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' ) );
|
||||
|
|
Loading…
Reference in a new issue