http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95995
Revision: 95995
Author: siebrand
Date: 2011-09-01 15:09:29 +0000 (Thu, 01 Sep 2011)
Log Message:
-----------
i18n fixes.
Modified Paths:
--------------
trunk/extensions/Postcomment/Postcomment.i18n.php
trunk/extensions/Postcomment/Postcomment.php
Modified: trunk/extensions/Postcomment/Postcomment.i18n.php
===================================================================
--- trunk/extensions/Postcomment/Postcomment.i18n.php 2011-09-01 15:00:42 UTC
(rev 95994)
+++ trunk/extensions/Postcomment/Postcomment.i18n.php 2011-09-01 15:09:29 UTC
(rev 95995)
@@ -16,8 +16,8 @@
'postcomment_addcommentdiscussionpage' => 'Add your comment on this
discussion page',
'postcomment_leavemessagefor' => 'Leave a message for $1',
'postcomment_post' => 'Post',
- 'postcomment_on' => 'On',
- 'postcomment_said' => 'said',
+ 'postcomment_on' => 'On $1',
+ 'postcomment-userwrote' => '[[User:$1|$2]] wrote:',
'postcomment_invalidrequest' => 'Invalid request.',
'postcomment_replyto' => 'Reply to $1',
'postcomment_nopostingtoadd' => 'No posting to add.',
@@ -34,8 +34,11 @@
'postcomment_addcommentdiscussionpage' => 'Message displayed before
comment form. For example see http://www.wikihow.com/Discussion:Main-Page',
'postcomment_leavemessagefor' => 'Message displayed before comment form
in user talks.',
'postcomment_post' => 'Name of button. For example see
http://www.wikihow.com/Discussion:Main-Page',
- 'postcomment_on' => '"On" as in "On <date>". For example see
http://www.wikihow.com/Discussion:Main-Page',
- 'postcomment_said' => '<Username> said. For example see
http://www.wikihow.com/Discussion:Main-Page',
+ 'postcomment_on' => 'For example see
http://www.wikihow.com/Discussion:Main-Page. Parameters:
+* $1 is a timestamp.',
+ 'postcomment-usersaid' => 'This message supports GENDER. Parameters:
+* $1 is a user name
+* $2 is a user real name.',
'postcomment_replyto' => '$1 is the user that has posted previous
comment. For example see http://www.wikihow.com/Discussion:Main-Page',
);
Modified: trunk/extensions/Postcomment/Postcomment.php
===================================================================
--- trunk/extensions/Postcomment/Postcomment.php 2011-09-01 15:00:42 UTC
(rev 95994)
+++ trunk/extensions/Postcomment/Postcomment.php 2011-09-01 15:09:29 UTC
(rev 95995)
@@ -85,21 +85,17 @@
}
$dateStr = $wgLang->timeanddate( wfTimestampNow() );
- //echo "$dateStr<br />";
-
$formattedComment = "
<div id=\"discussion_entry\"><table width=\"100%\">
- <tr><td width=\"50%\" valign=\"top\"
class=\"discussion_entry_user\">
- [[User:$user|$real_name]] " . wfMsg( 'postcomment_said' ) . ":
-</td><td align=\"right\" width=\"50%\" class=\"discussion_entry_date\">" .
wfMsg( 'postcomment_on' ) . " $dateStr<br />
+ <tr><td width=\"50%\" valign=\"top\"
class=\"discussion_entry_user\">" .
+ wfMsgExt( 'postcomment-userwrote', array( 'parsemag' ),
$user, $real_name ) . "
+</td><td align=\"right\" width=\"50%\" class=\"discussion_entry_date\">" .
wfMsg( 'postcomment_on', $dateStr ) . "<br />
</td></tr><tr>
<td colspan=2 class=\"discussion_entry_comment\">
$comment</td></tr>
<tr><td colspan=\"2\" class=\"discussion_entry_date\"
padding=5>[[User_talk:$user#post|" . wfMsg('postcomment_replyto', $real_name) .
"]]</td></tr>
</table></div>
-
";
- //echo "$formattedComment";
$text = '';
@@ -110,9 +106,6 @@
$text .= "\n\n$formattedComment\n\n";
- //echo "updating with text:<br /> $text";
- //exit;
-
$tmp = "";
if ( $wgFilterCallback && $wgFilterCallback( $t, $text, $tmp) )
{
# Error messages or other handling should be performed
by the filter function
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs