Kaldari has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/69596


Change subject: Adding support for primary and secondary links
......................................................................

Adding support for primary and secondary links

Depends on Echo change I94aed697

Change-Id: I6654c74da12ee22beba8b479dd05ecf9fc890927
---
M Thanks.hooks.php
M Thanks.i18n.php
2 files changed, 8 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Thanks 
refs/changes/96/69596/1

diff --git a/Thanks.hooks.php b/Thanks.hooks.php
index 6e752d0..16bcb71 100644
--- a/Thanks.hooks.php
+++ b/Thanks.hooks.php
@@ -120,6 +120,8 @@
                );
 
                $notifications['edit-thank'] = array(
+                       'primary-link' => array( 'message' => 
'notification-respond-to-user', 'destination' => 'agent' ),
+                       'secondary-link' => array( 'message' => 
'notification-view-edit', 'destination' => 'difflink' ),
                        'category' => 'edit-thank',
                        'group' => 'positive',
                        'formatter-class' => 'EchoThanksFormatter',
diff --git a/Thanks.i18n.php b/Thanks.i18n.php
index c889b6f..b4f9e55 100644
--- a/Thanks.i18n.php
+++ b/Thanks.i18n.php
@@ -23,7 +23,7 @@
        'echo-category-title-edit-thank' => 'Thanks',
        'notification-thanks-diff-link' => 'your edit',
        'notification-thanks' => '[[User:$1|$1]] {{GENDER:$1|thanked}} you for 
$2 on [[$3]].',
-       'notification-thanks-flyout' => '[[User:$1|$1]] {{GENDER:$1|thanked}} 
you for $2 on <b>$3</b>.',
+       'notification-thanks-flyout' => '[[User:$1|$1]] {{GENDER:$1|thanked}} 
you for $2 on $3.',
        'notification-thanks-email-subject' => '$1 {{GENDER:$1|thanked}} you 
for your edit on {{SITENAME}}',
        'notification-thanks-email-body' => '{{SITENAME}} user $1 
{{GENDER:$1|thanked}} you for your edit on $2.
 
@@ -33,6 +33,8 @@
 
 $4',
        'notification-thanks-email-batch-body' => '$1 {{GENDER:$1|thanked}} you 
for your edit on $2.',
+       'notification-respond-to-user' => 'Respond to user',
+       'notification-view-edit' => 'View edit',
        'log-name-thanks' => 'Thanks log',
        'log-description-thanks' => 'Below is a list of users thanked by other 
users.',
        'logentry-thanks-thank' => '$1 {{GENDER:$2|thanked}} $3',
@@ -85,6 +87,8 @@
        'notification-thanks-email-batch-body' => 'E-mail notification. 
Parameters:
 * $1 is a username. Can be used for GENDER.
 * $2 the title of the page the user edited.',
+       'notification-respond-to-user' => 'Label for button that links to a 
user page.',
+       'notification-view-edit' => 'Text for a link to view your edit.',
        'log-name-thanks' => 'Name of log that appears on [[Special:Log]].',
        'log-description-thanks' => 'Description of thanks log',
        'logentry-thanks-thank' => 'Log entry that is created when a user 
thanks another user for an edit. Parameters:
@@ -127,6 +131,7 @@
 
 $4",
        'notification-thanks-email-batch-body' => '$1 {{GENDER:$1|agradeció}} 
la so edición en $2.',
+
        'log-name-thanks' => "Rexistru d'agradecimientos",
        'log-description-thanks' => "Mas abaxo ta la llista d'usuarios a los 
qu'otros usuarios dieron les gracies.",
        'logentry-thanks-thank' => '$1 {{GENDER:$2|dio les gracies a}} $3',

-- 
To view, visit https://gerrit.wikimedia.org/r/69596
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6654c74da12ee22beba8b479dd05ecf9fc890927
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Thanks
Gerrit-Branch: master
Gerrit-Owner: Kaldari <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to