r67800 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67799‎ | r67800 | r67801 >
Date:11:35, 10 June 2010
Author:raymond
Status:ok
Tags:
Comment:
Some tweaks for proper i18n
Add extension to translatewiki
Modified paths:
  • /trunk/extensions/CategoryMultisort/CategoryMultisort.i18n.php (modified) (history)
  • /trunk/extensions/CategoryMultisort/CategoryMultisort.php (modified) (history)
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/CategoryMultisort/CategoryMultisort.i18n.php
@@ -1,16 +1,20 @@
22 <?php
 3+/**
 4+ * Internationalisation for Category Multisort
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
39
4 -if ( !defined( 'MEDIAWIKI' ) ) {
5 - die();
6 -}
7 -
810 $messages = array();
911
 12+/** English */
1013 $messages['en'] = array(
11 - 'categorymultisort-desc' => 'An extension allowing categories to be viewed with different sortkeys.',
 14+ 'categorymultisort-desc' => 'Allowing categories to be viewed with different sortkeys',
1215 'categorymultisort-defaultsortkey-name' => 'Default',
13 - 'categorymultisort-sortkey' => 'Sortkey: ',
 16+ 'categorymultisort-sortkey' => 'Sortkey:',
1417 'categorymultisort-go' => 'Go',
1518 'categorymultisort-default-sortkey' => 'Default sortkey:',
1619 'prefs-category' => 'Category',
1720 );
 21+
Index: trunk/extensions/CategoryMultisort/CategoryMultisort.php
@@ -5,16 +5,18 @@
66 }
77
88 $wgExtensionCredits['other'][] = array(
 9+ 'path' => __FILE__,
910 'name' => 'CategoryMultisort',
1011 'author' => 'Liangent',
1112 'descriptionmsg' => 'categorymultisort-desc',
1213 'url' => 'http://www.mediawiki.org/wiki/Extension:CategoryMultisort',
1314 );
1415
15 -$wgAutoloadClasses['CategoryMultisortHooks'] = dirname( __FILE__ ) . '/CategoryMultisort.hooks.php';
16 -$wgAutoloadClasses['CategoryMultisortViewer'] = dirname( __FILE__ ) . '/CategoryMultisort.class.php';
 16+$dir = dirname(__FILE__) . '/';
 17+$wgAutoloadClasses['CategoryMultisortHooks'] = $dir . 'CategoryMultisort.hooks.php';
 18+$wgAutoloadClasses['CategoryMultisortViewer'] = $dir . 'CategoryMultisort.class.php';
1719
18 -$wgExtensionMessagesFiles['CategoryMultisort'] = dirname( __FILE__ ) . '/CategoryMultisort.i18n.php';
 20+$wgExtensionMessagesFiles['CategoryMultisort'] = $dir . 'CategoryMultisort.i18n.php';
1921
2022 $wgCategoryMultisortHooks = new CategoryMultisortHooks();
2123
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -94,6 +94,8 @@
9595 Category Intersection
9696 aliasfile = CategoryIntersection/CategoryIntersection.alias.php
9797
 98+Category Multisort
 99+
98100 Category On Upload
99101 optional = categoryonupload-none
100102

Status & tagging log