01tonythomas has uploaded a new change for review.

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

Change subject: Added username as parameter to MediaWiki:Comments-reply-to
......................................................................

Added username as parameter to MediaWiki:Comments-reply-to

The interface message  needs to have the username as a parameter
since the subject-object order varies between languages.
Hence, for some languages, like hindi(hi), the username will need
to be before the the text for the message to make sense.

Bug: 43696
Change-Id: I9cfd71bf7fba134c2d1e22640600bcc6e209e06b
---
M Comment.js
M Comments.i18n.php
2 files changed, 5 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Comments 
refs/changes/57/118957/1

diff --git a/Comment.js b/Comment.js
index 2c8fbb9..3d7c195 100644
--- a/Comment.js
+++ b/Comment.js
@@ -252,7 +252,7 @@
         */
        reply: function( parentId, poster ) {
                jQuery( '#replyto' ).text(
-                       mw.msg( 'comments-reply-to' ) + ' ' + poster + ' ('
+                       mw.msg( 'comments-reply-to', poster ) + ' ('
                );
                jQuery( '<a>', {
                        href: 'javascript:void(0);',
diff --git a/Comments.i18n.php b/Comments.i18n.php
index ba7ce19..21ba77a 100644
--- a/Comments.i18n.php
+++ b/Comments.i18n.php
@@ -19,7 +19,7 @@
        'comments-loading' => 'Loading...',
        'comments-auto-refresher-enable' => 'Enable comment auto-refresher',
        'comments-auto-refresher-pause' => 'Pause comment auto-refresher',
-       'comments-reply-to' => 'Reply to',
+       'comments-reply-to' => 'Reply to $1',
        'comments-cancel-reply' => 'Cancel',
        'comments-block-warning-anon' => 'Are you sure you want to permanently 
ignore all comments from this anonymous user (via their IP address)?',
        'comments-block-warning-user' => 'Are you sure you want to permanently 
ignore all comments from user $1?',
@@ -92,7 +92,9 @@
        'comments-auto-refresher-pause' => 'Auto-refresher is a feature where a 
page with the <code><nowiki><comments /></nowiki></code> tag is automatically 
refreshed for new comments.
 
 Refer to the [[mw:File:Comments.png|image]] for details.',
-       'comments-reply-to' => 'This message is followed by the user\'s 
username whom you\'re about to reply to. For example, "Reply to Jack Phoenix".',
+       'comments-reply-to' => 'This message is followed by the user\'s 
username whom you\'re about to reply to. For example, "Reply to Jack Phoenix".
+Parameters:
+* $1 - the user name to whom your\'re about to reply to',
        'comments-cancel-reply' => 'Used as link text in JavaScript code.
 {{Identical|Cancel}}',
        'comments-block-warning-anon' => '{{doc-singularthey}}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9cfd71bf7fba134c2d1e22640600bcc6e209e06b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Comments
Gerrit-Branch: master
Gerrit-Owner: 01tonythomas <[email protected]>

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

Reply via email to