r54085 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54084‎ | r54085 | r54086 >
Date:10:07, 31 July 2009
Author:roberthl
Status:deferred
Tags:
Comment:
MultiBoilerplate:
* Message cleanup.
Modified paths:
  • /trunk/extensions/MultiBoilerplate/MultiBoilerplate.i18n.php (modified) (history)
  • /trunk/extensions/MultiBoilerplate/SpecialBoilerplates_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MultiBoilerplate/SpecialBoilerplates_body.php
@@ -21,17 +21,15 @@
2222 wfLoadExtensionMessages( 'MultiBoilerplate' );
2323 if( !$this->mIncluding ) {
2424 $this->setHeaders();
25 - $wgOut->setPagetitle( wfMsg( "multiboilerplate-special-title" ) );
2625 $wgOut->addWikiMsg( "multiboilerplate-special-pagetext" );
27 - $wgOut->wrapWikiMsg( "==$1==\n", "boilerplates-name" );
2826 }
2927 if( is_array( $wgMultiBoilerplateOptions ) ) {
30 - if( !$this->mIncluding ) $wgOut->addWikiMsg( "multiboilerplate-special-define-on-localsettings" );
 28+ if( !$this->mIncluding ) $wgOut->addWikiMsg( "multiboilerplate-special-define-in-localsettings" );
3129 foreach( $wgMultiBoilerplateOptions as $name => $template ) {
3230 $wgOut->addWikiText( "* [[$template]]\n" );
3331 }
3432 } else {
35 - if( !$this->mIncluding ) $wgOut->addWikiMsg( "multiboilerplate-special-define-on-interface" ) ;
 33+ if( !$this->mIncluding ) $wgOut->addWikiMsg( "multiboilerplate-special-define-in-interface" ) ;
3634 $things = explode( "\n", str_replace( "\r", "\n", str_replace( "\r\n", "\n", wfMsg( 'multiboilerplate' ) ) ) ); // Ensure line-endings are \n
3735 foreach( $things as $row ) {
3836 if ( substr( ltrim( $row ), 0, 1 ) === '*' ) {
Index: trunk/extensions/MultiBoilerplate/MultiBoilerplate.i18n.php
@@ -17,15 +17,10 @@
1818 'multiboilerplate-label' => '',
1919 'multiboilerplate-legend' => 'Select boilerplate',
2020 'multiboilerplate-submit' => 'Load',
21 - 'boilerplates' => 'Custom preload on creation',
22 - 'boilerplates-name' => 'Boilerplates',
23 - 'multiboilerplate-special-title' => 'Custom templates preloader',
24 - 'multiboilerplate-special-pagetext' => 'Those templates can be preloaded on page creation. (<span class=plainlinks>[{{fullurl:This page does not exist|action=edit}} demo]</span>)',
25 - 'multiboilerplate-special-define-on-localsettings' => 'Boilerplates are defined on LocalSettings.php in array <code>&#36;wgMultiBoilerplateOptions</code>. Set <code>&#36;wgMultiBoilerplateOptions = false;</code> to use [[MediaWiki:Multiboilerplate]] instead.',
26 - 'multiboilerplate-special-define-on-interface' => 'Boilerplates are defined on interface page: [[MediaWiki:Multiboilerplate]].',
27 - 'multiboilerplate-label' => '',
28 - 'multiboilerplate-legend' => 'Select boilerplate',
29 - 'multiboilerplate-submit' => 'Load',
 21+ 'boilerplates' => 'Available boilerplates',
 22+ 'multiboilerplate-special-pagetext' => 'These templates can be preloaded on page creation. (<span class=plainlinks>[{{fullurl:This page does not exist|action=edit}} demo]</span>)',
 23+ 'multiboilerplate-special-define-in-localsettings' => 'Boilerplates are defined in LocalSettings.',
 24+ 'multiboilerplate-special-define-in-interface' => 'Boilerplates are defined in [[MediaWiki:Multiboilerplate]].',
3025 );
3126
3227 /** Message documentation (Message documentation)

Status & tagging log