From df908474b80bb97d2f8ceb3f518b3cea86739bf9 Mon Sep 17 00:00:00 2001 From: ebernhardson Date: Thu, 25 Apr 2013 08:33:57 -0700 Subject: [PATCH] thanks-thanked message needs GENDER support Bug: 46595 Change-Id: I7061403808d428ad244b75ebdcdb2dc900acd3bf --- Thanks.i18n.php | 5 +++-- modules/ext.thanks.thank.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Thanks.i18n.php b/Thanks.i18n.php index e210aaa5..47bacbb6 100644 --- a/Thanks.i18n.php +++ b/Thanks.i18n.php @@ -13,7 +13,7 @@ $messages = array(); $messages['en'] = array( 'thanks-desc' => 'Adds thank links to history and diff views', 'thanks-thank' => 'thank', - 'thanks-thanked' => 'thanked', + 'thanks-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.", @@ -44,7 +44,8 @@ $4', $messages['qqq'] = array( 'thanks-desc' => '{{desc|name=Thanks|url=http://www.mediawiki.org/wiki/Extension:Thanks}}', 'thanks-thank' => 'Link to thank another user. This is a verb.', - 'thanks-thanked' => 'Message that replaces the link to thank another user after they have been thanked (Echo-thank). This is short for "the user that created this revision has been thanked for it".', + 'thanks-thanked' => 'Message that replaces the link to thank another user after they have been thanked (Echo-thank). This is short for "You thanked the user for their edit.". Parameters: +* $1 is the current user, for GENDER support.', 'thanks-error-undefined' => 'Error message that is displayed when the thank action fails. {{Identical|Please try again}}', 'thanks-error-invalidrevision' => 'Error message that is displayed when the revision ID is not valid', diff --git a/modules/ext.thanks.thank.js b/modules/ext.thanks.thank.js index 1b5c7d40..ca0de554 100644 --- a/modules/ext.thanks.thank.js +++ b/modules/ext.thanks.thank.js @@ -16,7 +16,7 @@ 'token' : mw.user.tokens.values.editToken } ) .done( function( data ) { - $thankLink.before( mw.msg( 'thanks-thanked' ) ); + $thankLink.before( mw.message( 'thanks-thanked', mw.user ).escaped() ); $thankLink.remove(); } ) .fail( function( errorCode, details ) {