r30832 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r30831‎ | r30832 | r30833 >
Date:14:11, 11 February 2008
Author:grondin
Status:old
Tags:
Comment:
* Add internationalization extension description message in [[Special:Version]]
* Add new internationalization message
Modified paths:
  • /trunk/extensions/LiquidThreads/Lqt.i18n.php (modified) (history)
  • /trunk/extensions/LiquidThreads/LqtPages.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/Lqt.i18n.php
@@ -12,6 +12,8 @@
1313 $messages = array();
1414
1515 $messages['en'] = array(
 16+ 'lqt-desc' => 'Add threading discussions to talk pages',
 17+ 'lqt-nothread' => 'There are no threads in the archive.',
1618 'lqt_newmessages' => 'New Messages',
1719 'lqt_movethread' => 'Move Thread to Another Page',
1820 'lqt_deletethread' => 'Delete or Undelete Thread',
@@ -279,6 +281,8 @@
280282 * @author Dereckson
281283 */
282284 $messages['fr'] = array(
 285+ 'lqt-desc' => 'Ajoute des fils de discussion dans les pages de discussion',
 286+ 'lqt-nothread' => 'Il n’existe aucun fil de discussion dans les archives.',
283287 'lqt_newmessages' => 'Nouveaux messages',
284288 'lqt_movethread' => 'Déplacer le fil vers une autre page',
285289 'lqt_deletethread' => 'Effacer ou récupérer le fil',
Index: trunk/extensions/LiquidThreads/LqtPages.php
@@ -13,11 +13,12 @@
1414 }
1515
1616 $wgExtensionCredits['other'][] = array(
17 - 'name' => 'Liquid Threads',
18 - 'version' => '1.0',
19 - 'url' => 'http://www.mediawiki.org/wiki/Extension:LiquidThreads',
20 - 'author' => 'David McCabe',
21 - 'description' => 'Add threading discussions to talk pages',
 17+ 'name' => 'Liquid Threads',
 18+ 'version' => '1.0',
 19+ 'url' => 'http://www.mediawiki.org/wiki/Extension:LiquidThreads',
 20+ 'author' => 'David McCabe',
 21+ 'description' => 'Add threading discussions to talk pages',
 22+ 'descriptionmsg' => 'lqt-desc',
2223 );
2324
2425 function efArrayDefault($name, $key, $default) {
@@ -475,7 +476,7 @@
476477
477478 $empty = $this->showSearchForm();
478479 if ($empty) {
479 - $this->output->addHTML('<p>There are no threads in the archive.');
 480+ $this->output->addHTML('<p><br/><b>'. wfMsg('lqt-nothread' ) . '</b>' );
480481 return false;
481482 }
482483

Status & tagging log