Index: trunk/extensions/ArticleComments/ArticleComments.php |
— | — | @@ -156,6 +156,9 @@ |
157 | 157 | $wgMessageCache->addMessage('article-comments-talk-page-starter', "<noinclude>Comments on [[$1]]\n<comments />\n----- __NOEDITSECTION__</noinclude>\n"); |
158 | 158 | $wgMessageCache->addMessage('article-comments-commenter-said', '$1 said ...'); |
159 | 159 | $wgMessageCache->addMessage('article-comments-summary', 'Comment provided by $1 - via ArticleComments extension'); |
| 160 | + $wgMessageCache->addMessage('article-comments-submission-succeeded', 'Comment submission succeeded'); |
| 161 | + $wgMessageCache->addMessage('article-comments-submission-success', 'You have successfully submitted a comment for [[$1]]'); |
| 162 | + $wgMessageCache->addMessage('article-comments-submission-view-all', 'You may view all comments on that article [[$1|here]]'); |
160 | 163 | $wgMessageCache->addMessage('processcomment', 'Process Article Comment'); |
161 | 164 | } |
162 | 165 | |
— | — | @@ -240,7 +243,8 @@ |
241 | 244 | # Determine signature components |
242 | 245 | $d = $wgContLang->timeanddate( date( 'YmdHis' ), false, false) . ' (' . date( 'T' ) . ')'; |
243 | 246 | if ($commenterURL) $sigText = "[$commenterURL $commenterName]"; |
244 | | - else $sigText = $wgParser->getUserSig( $wgUser ); |
| 247 | + else if ($wgUser->isLoggedIn()) $sigText = $wgParser->getUserSig( $wgUser ); |
| 248 | + else $sigText = $commenterName; |
245 | 249 | |
246 | 250 | # Append most recent comment |
247 | 251 | $talkContent .= "\n== ".wfMsgForContent($ac.'commenter-said', $commenterName)." ==\n\n"; |
— | — | @@ -259,9 +263,9 @@ |
260 | 264 | return; |
261 | 265 | } |
262 | 266 | |
263 | | - $wgOut->setPageTitle("Comment Submission Success!"); |
264 | | - $wgOut->addWikiText("You have successfully commented on [[".$title->getPrefixedText()."]].\n\n"); |
265 | | - $wgOut->addWikiText("You may view all comments on that article [[".$talkTitle->getPrefixedText()."|here]]"); |
| 267 | + $wgOut->setPageTitle(wfMsgForContent($ac.'submission-succeeded')); |
| 268 | + $wgOut->addWikiText(wfMsgForContent($ac.'submission-success', $title->getPrefixedText())); |
| 269 | + $wgOut->addWikiText(wfMsgForContent($ac.'submission-view-all', $talkTitle->getPrefixedText())); |
266 | 270 | } |
267 | 271 | |
268 | 272 | //</source> |