r64171 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64170‎ | r64171 | r64172 >
Date:19:37, 25 March 2010
Author:raymond
Status:ok
Tags:
Comment:
* Tweak extension a bit to make it work with translatewiki.
* Add NaturalLanguageList to translatewiki.
Modified paths:
  • /trunk/extensions/NaturalLanguageList/NaturalLanguageList.i18n.php (modified) (history)
  • /trunk/extensions/NaturalLanguageList/NaturalLanguageList.php (modified) (history)
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/NaturalLanguageList/NaturalLanguageList.i18n.php
@@ -1,13 +1,35 @@
22 <?php
 3+/**
 4+ * Internationalisation file for extension NaturalLanguageList.
 5+ *
 6+ * @addtogroup Extensions
 7+ */
38
 9+$messages = array();
 10+
 11+/** English */
412 $messages['en'] = array (
5 - 'nll-itemoutput' => '$1',
6 - 'nll-separator' => ', ',
7 - 'nll-lastseparator' => ' and ',
 13+ 'nll-desc' => 'Easy formatting of lists in natural languages',
 14+ 'nll-itemoutput' => '$1', # do not translate or duplicate this message to other languages
 15+ 'nll-separator' => ', ', # only translate this message to other languages if you have to change it
 16+ 'nll-lastseparator' => ' and ',
817 );
 18+
 19+/** Danish (Dansk) */
920 $messages['da'] = array (
1021 'nll-lastseparator' => ' og ',
1122 );
 23+
 24+/** Estonian (Eesti) */
1225 $messages['et'] = array (
1326 'nll-lastseparator' => ' ning ',
1427 );
 28+
 29+/** Message documentation (Message documentation)
 30+ * @author Raimond Spekking
 31+ */
 32+$messages['qqq'] = array(
 33+ 'nll-separator' => '{{Optional}}',
 34+ 'nll-lastseparator' => '{{Identical/And}}',
 35+);
 36+
Index: trunk/extensions/NaturalLanguageList/NaturalLanguageList.php
@@ -37,10 +37,12 @@
3838 */
3939
4040 $wgExtensionCredits['parserhook'][] = array(
 41+ 'path' => __FILE__,
4142 'name' => 'Natural Language List',
4243 'author' => array( 'Svip', 'Happy-melon', 'Conrad Irwin' ),
4344 'url' => 'http://www.mediawiki.org/wiki/Extension:Natural_Language_List',
4445 'description' => 'Easy formatting of lists in natural languages.',
 46+ 'descriptionmsg' => 'nll-desc',
4547 'version' => '2.2'
4648 );
4749
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -685,6 +685,11 @@
686686 MW Releases
687687 ignored = mwreleases-list
688688
 689+Natural Language List
 690+descmsg = nll-desc
 691+ignored = nll-itemoutput
 692+optional = nll-separator
 693+
689694 Navigation Popups
690695
691696 Negref

Status & tagging log