r53744 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53743‎ | r53744 | r53745 >
Date:10:21, 25 July 2009
Author:purodha
Status:deferred
Tags:
Comment:
Message documentation added, ksh messages added, minor standardisations.
Modified paths:
  • /trunk/extensions/Transliterator/Transliterator.i18n.php (modified) (history)
  • /trunk/extensions/Transliterator/Transliterator.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Transliterator/Transliterator.i18n.php
@@ -6,8 +6,11 @@
77
88 /**
99 * English
 10+ * @author: Conrad.Irwin
 11+ * @author: Purodha
1012 */
1113 $messages['en'] = array(
 14+ 'transliterator-desc' => "Provides a configurable parser function for transliteration",
1215 'transliterator-invoke' => 'transliterate', // {{#transliterate:blah}}
1316 'transliterator-prefix' => 'Transliterator:', // [[MediaWiki:Transliterator:blah]] NOTE: changing this requires moving all maps
1417 // $1 is the line from the map, 'a => z', $2 is the map-page including prefix.
@@ -17,5 +20,42 @@
1821 'transliterator-error-rulecount' => "More than $1 rules in [[MediaWiki:$2]]",
1922 // $2 is the limit on the length of the left hand side (e.g. 'alpha => beta' has 5)
2023 'transliterator-error-rulesize' => "Rule '$1' has more than $2 characters on the left in [[MediaWiki:$3]]",
21 - 'transliterator-description' => "Provides a configurable parser function for transliteration"
2224 );
 25+
 26+/**
 27+ * Message Documentation.
 28+ * @author: Purodha
 29+ */
 30+$messages['qqq'] = array(
 31+ 'transliterator-desc' => 'This is a short description of the extension. It is shown in [[Special:Version]].',
 32+ 'transliterator-invoke' => "This is the name of a parserfunction: {<nowiki />{#transliterate:''blah''}}",
 33+ 'transliterator-prefix' => "This is a prefix for the transliteration maps, used in the MediaWiki namespace like [<nowiki />[MediaWiki:Transliterator:''blah'']]. Changing this requires moving all maps.",
 34+ 'transliterator-error-ambiguous' => 'Parameters:
 35+* $1 is the line from the map, such as: <code>a => z</code>
 36+* $2 is the map-page including thr prefix {{msg-mw|transliterator-invoke}}',
 37+ 'transliterator-error-syntax' => 'Parameters:
 38+* $1 is the line from the map, such as: <code>a => z</code>
 39+* $2 is the map-page including thr prefix {{msg-mw|transliterator-invoke}}',
 40+ 'transliterator-error-rulecount' => 'Parameters:
 41+* $1 is the limit on number of rules
 42+* $2 is the map-page including thr prefix {{msg-mw|transliterator-invoke}}',
 43+ 'transliterator-error-rulesize' => 'Parameters:
 44+* $1 is the line from the map, such as: <code>a => z</code>
 45+* $2 is the limit on the length of the left hand side (e.g. <code>alpha => beta</code> has 5)
 46+* $3 is the map-page including thr prefix {{msg-mw|transliterator-invoke}}',
 47+);
 48+
 49+/**
 50+ * Ripuarian (Ripoaresch)
 51+ * @author: Purodha
 52+ */
 53+$messages['ksh'] = array(
 54+ 'transliterator-desc' => 'Deiht en ennslellba Paaserfunxjuhn en et Wiki, di Boochshtabe tuusche kann.',
 55+ 'transliterator-invoke' => 'transliterate',
 56+ 'transliterator-prefix' => 'Transliterator:',
 57+ 'transliterator-error-ambiguous' => 'Unkloh Rejel <code>$1</code> en [[MediaWiki:$2]]',
 58+ 'transliterator-error-syntax' => 'En kappodde syntax <code>$1</code> es en [[MediaWiki:$2]]',
 59+ 'transliterator-error-rulecount' => 'Et sin mieh wi $1 Rejelle en [[MediaWiki:$2]]',
 60+ 'transliterator-error-rulesize' => 'En de Rejel <code>$1</code> sinn_er mieh wi $2 Zeische op de lengke Sigg, en [[MediaWiki:$3]]',
 61+);
 62+
Index: trunk/extensions/Transliterator/Transliterator.php
@@ -20,7 +20,7 @@
2121 $wgExtensionCredits['parserhook'][] = array(
2222 'name' => "Transliterator",
2323 'version' => "1.0",
24 - 'descriptionmsg' => "transliterator-description",
 24+ 'descriptionmsg' => "transliterator-desc",
2525 'author' => 'Conrad Irwin',
2626 'url' => 'http://en.wiktionary.org/wiki/User:Conrad.Irwin/Transliterator.php'
2727 );

Status & tagging log