r46943 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46942‎ | r46943 | r46944 >
Date:21:20, 6 February 2009
Author:demon
Status:ok
Tags:
Comment:
(bug 16782) Link to "Project:Babel" in the auto-create summary and abort messages.
Modified paths:
  • /trunk/extensions/Babel/Babel.i18n.php (modified) (history)
  • /trunk/extensions/Babel/BabelAutoCreate.class.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Babel/Babel.i18n.php
@@ -16,8 +16,8 @@
1717 'babel-desc' => 'Adds the <tt>#babel</tt> parser function to allow automated generation of a babel userbox column with the ability to include custom templates',
1818 'babel-url' => 'Project:Babel',
1919
20 - 'babel-autocreate-abort' => 'The username you specified is used for Babel category auto-creation and cannot be registered.',
21 - 'babel-autocreate-reason' => 'Automatically creating Babel category page.',
 20+ 'babel-autocreate-abort' => 'The username you specified is used for [[$1|Babel]] category auto-creation and cannot be registered.', // $1 is babel-url
 21+ 'babel-autocreate-reason' => 'Automatically creating [[$1|Babel]] category page.', // $1 is babel-url
2222 'babel-autocreate-text-levels' => 'Users in this category indicate they have skill level $1 for language $2.',
2323 'babel-autocreate-text-main' => 'Users in this category indicate they have knowledge of language $1.',
2424 'babel-autocreate-user' => 'Babel AutoCreate',
Index: trunk/extensions/Babel/BabelAutoCreate.class.php
@@ -4,7 +4,7 @@
55 static $user = false;
66 public static function RegisterAbort( User $user, &$message ) {
77 wfLoadExtensionMessages( 'Babel' );
8 - $message = wfMsg( 'babel-autocreate-abort' );
 8+ $message = wfMsg( 'babel-autocreate-abort', wfMsg( 'babel-url' ) );
99 return !( $user->getName() === wfMsgForContent( 'babel-autocreate-user' ) );
1010 }
1111 public static function create( $category, $language, $level = null ) {
@@ -17,7 +17,7 @@
1818 $text = wfMsgForContent( 'babel-autocreate-text-levels', $language, $level );
1919 }
2020 $article = new Article( $title );
21 - $article->doEdit( $text, wfMsgForContent( 'babel-autocreate-reason' ), EDIT_SUPPRESS_RC, false, self::user() );
 21+ $article->doEdit( $text, wfMsgForContent( 'babel-autocreate-reason', wfMsgForContent( 'babel-url' ) ), EDIT_SUPPRESS_RC, false, self::user() );
2222 }
2323 public static function user() {
2424 if( !self::$user ) {

Status & tagging log