r52887 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52886‎ | r52887 | r52888 >
Date:07:52, 8 July 2009
Author:raymond
Status:deferred
Tags:
Comment:
* Change 'delaydef_desc' to 'delaydef-desc' for consistency
* Add extension to translatewiki
Modified paths:
  • /trunk/extensions/DelayedDefinition/DelayedDefinition.i18n.php (modified) (history)
  • /trunk/extensions/DelayedDefinition/DelayedDefinition.php (modified) (history)
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/DelayedDefinition/DelayedDefinition.i18n.php
@@ -8,7 +8,7 @@
99 $messages = array();
1010
1111 $messages['en'] = array(
12 - 'delaydef_desc' => 'Adds <define> and <display> to allow for code to be repositioned',
 12+ 'delaydef-desc' => 'Adds <define> and <display> to allow for code to be repositioned',
1313 'delaydef-error-missing-def' => 'Error: Definition needed for <display name="$1"> not found.',
1414 'delaydef-error-no-name' => 'Error: No name parameter specified.',
1515 'delaydef-error-redef' => 'Error: Attempted redefinition of $1.',
@@ -17,5 +17,5 @@
1818 /** Message documentation (Message documentation)
1919 */
2020 $messages['qqq'] = array(
21 - 'delaydef_desc' => 'Short description of the DelayedDefinition extension, shown on [[Special:Version]].',
 21+ 'delaydef-desc' => 'Short description of the DelayedDefinition extension, shown on [[Special:Version]].',
2222 );
Index: trunk/extensions/DelayedDefinition/DelayedDefinition.php
@@ -24,12 +24,12 @@
2525 'url' => 'http://www.mediawiki.org/wiki/Extension:DelayedDefinition',
2626 'author' => 'Robert Rohde',
2727 'description' => 'Allow for wikicode to be defined separately from where it is displayed',
28 - 'descriptionmsg' => 'delaydef_desc',
 28+ 'descriptionmsg' => 'delaydef-desc',
2929 );
 30+$dir = dirname( __FILE__ );
 31+$wgAutoloadClasses['ExtDelayedDefinition'] = $dir . '/DelayedDefinition_body.php';
 32+$wgExtensionMessagesFiles['DelayedDefinition'] = $dir . '/DelayedDefinition.i18n.php';
3033
31 -$wgAutoloadClasses['ExtDelayedDefinition'] = dirname( __FILE__ ) . '/DelayedDefinition_body.php';
32 -$wgExtensionMessagesFiles['DelayedDefinition'] = dirname( __FILE__ ) . '/DelayedDefinition.i18n.php';
33 -
3434 // Load the classes, which then attaches the parser hooks, etc.
3535 function wfDelayedDefinition() {
3636 new ExtDelayedDefinition;
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -226,6 +226,9 @@
227227 file = DataTransfer/languages/DT_Messages.php
228228 descmsg = dt-desc
229229
 230+Delayed Definition
 231+descmsg = delaydef-desc
 232+
230233 Delete Batch
231234
232235 Delete Queue

Status & tagging log