r29745 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r29744‎ | r29745 | r29746 >
Date:14:11, 14 January 2008
Author:raymond
Status:old
Tags:
Comment:
Use {{PLURAL}} for log entry
Modified paths:
  • /trunk/extensions/Renameuser/SpecialRenameuser.i18n.php (modified) (history)
  • /trunk/extensions/Renameuser/SpecialRenameuser.php (modified) (history)
  • /trunk/extensions/Renameuser/SpecialRenameuser_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Renameuser/SpecialRenameuser_body.php
@@ -201,7 +201,7 @@
202202 $rename->rename();
203203
204204 $log = new LogPage( 'renameuser' );
205 - $log->addEntry( 'renameuser', $oldusername, wfMsgForContent( 'renameuser-log', $wgContLang->formatNum( $contribs ), $reason ), $newusername->getText() );
 205+ $log->addEntry( 'renameuser', $oldusername, wfMsgExt( 'renameuser-log', array( 'parsemag', 'content' ), $wgContLang->formatNum( $contribs ), $reason ), $newusername->getText() );
206206
207207 $wgOut->addWikiText( "<div class=\"successbox\">" . wfMsg( 'renameusersuccess', $oldusername->getText(), $newusername->getText() ) . "</div><br style=\"clear:both\" />" );
208208
Index: trunk/extensions/Renameuser/SpecialRenameuser.i18n.php
@@ -25,7 +25,7 @@
2626 'renameuserlogpage' => 'User rename log',
2727 'renameuserlogpagetext' => 'This is a log of changes to user names',
2828 'renameuserlogentry' => 'has renamed $1 to $2',
29 - 'renameuser-log' => '$1 edits. Reason: $2',
 29+ 'renameuser-log' => '{{PLURAL:$1|1 edit|$1 edits}}. Reason: $2',
3030 'renameuser-move-log' => 'Automatically moved page while renaming the user "[[User:$1|$1]]" to "[[User:$2|$2]]"',
3131 );
3232
@@ -209,7 +209,7 @@
210210 'renameuserlogpage' => 'Benutzernamenänderungs-Logbuch',
211211 'renameuserlogpagetext' => 'In diesem Logbuch werden die Änderungen von Benutzernamen protokolliert.',
212212 'renameuserlogentry' => 'hat „$1“ in „$2“ umbenannt',
213 - 'renameuser-log' => '$1 Bearbeitungen. Grund: $2',
 213+ 'renameuser-log' => '{{PLURAL:$1|1 Bearbeitung|$1 Bearbeitungen}}. Grund: $2',
214214 'renameuser-move-log' => 'durch die Umbenennung von „[[{{ns:user}}:$1]]“ nach „[[{{ns:user}}:$2]]“ automatisch verschobene Seite.',
215215 );
216216
Index: trunk/extensions/Renameuser/SpecialRenameuser.php
@@ -19,6 +19,7 @@
2020 'author' => 'Ævar Arnfjörð Bjarmason',
2121 'url' => 'http://www.mediawiki.org/wiki/Extension:Renameuser',
2222 'description' => 'Rename a user (need \'\'renameuser\'\' right)',
 23+ 'version' => '2008-01-14',
2324 );
2425
2526 # Internationalisation file

Status & tagging log