r49317 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49316‎ | r49317 | r49318 >
Date:16:34, 8 April 2009
Author:minuteelectron
Status:deferred
Tags:
Comment:
MultiBoilerplate:
* Get boilerplate list from content language message.
* Icelandic localisation updates.
Thanks to Sigurour Guobrandsson for these.
Modified paths:
  • /trunk/extensions/MultiBoilerplate/MultiBoilerplate.i18n.php (modified) (history)
  • /trunk/extensions/MultiBoilerplate/MultiBoilerplate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MultiBoilerplate/MultiBoilerplate.i18n.php
@@ -205,6 +205,15 @@
206206 'multiboilerplate-submit' => 'Cargar',
207207 );
208208
 209+/** Icelandic (Íslenska)
 210+ * @author Sigurður Guðbrandsson <sg@ro.is>
 211+ */
 212+$messages['is'] = array(
 213+ 'multiboilerplate-desc' => 'Leyfir sniðmáti að vera valið úr fellilista staðsettum ofan við ritform er verið er að breyta síðum',
 214+ 'multiboilerplate-legend' => 'Veldu sniðmát',
 215+ 'multiboilerplate-submit' => 'Hlaða',
 216+);
 217+
209218 /** Japanese (日本語)
210219 * @author Fryed-peach
211220 * @author Hosiryuhosi
Index: trunk/extensions/MultiBoilerplate/MultiBoilerplate.php
@@ -26,7 +26,7 @@
2727 'descriptionmsg' => 'multiboilerplate-desc',
2828 'author' => 'MinuteElectron',
2929 'url' => 'http://www.mediawiki.org/wiki/Extension:MultiBoilerplate',
30 - 'version' => '1.6',
 30+ 'version' => '1.7',
3131 );
3232
3333 // Hook into EditPage::showEditForm:initial to modify the edit page header.
@@ -75,7 +75,7 @@
7676 $options .= Xml::option( $name, $template, $selected );
7777 }
7878 } else {
79 - $things = wfMsg( 'multiboilerplate' );
 79+ $things = wfMsgForContent( 'multiboilerplate' );
8080 $options = '';
8181 $things = explode( "\n", str_replace( "\r", "\n", str_replace( "\r\n", "\n", $things ) ) ); // Ensure line-endings are \n
8282 foreach( $things as $row ) {

Status & tagging log