Some consistency tweaks:

* ExtensionCredits
** Add path
** Use an array for multiple authors

* i18n file
** Standardize prefix ra -> relatedarticles
** Article -> Page for consistenxy
** Standardize description message
** Add message documentation

Change-Id: I1b50f879f468cff2847751be32eacc51d524fd08
This commit is contained in:
raymond 2012-10-16 09:59:08 +02:00
parent bb5e4ff182
commit 58b117812a
2 changed files with 17 additions and 8 deletions

View file

@ -9,21 +9,29 @@
$messages = array();
$messages['en'] = array(
'ra-RelatedArticles' => 'Related articles',
'ra-desc' => 'Extension for presentation of related articles on the sidebar',
'relatedarticles-sidebartext' => 'Related pages',
'relatedarticles-desc' => 'Adds a link to related pages on the sidebar',
);
/** Message documentation (Message documentation)
* @author Raimond Spekking
*/
$messages['qqq'] = array(
'relatedarticles-sidebartext' => 'Shown on the sidebar',
'relatedarticles-desc' => '{{desc}}',
);
$messages['de'] = array(
'ra-RelatedArticles' => 'Verwandte Artikel',
'ra-desc' => 'Erweiterung für die Ausgabe von verwandten Artikeln auf der Sidebar',
'relatedarticles-sidebartext' => 'Verwandte Seiten',
'relatedarticles-desc' => 'Erweiterung für die Ausgabe von verwandten Seiten auf der Sidebar',
);
$messages['fr'] = array(
'ra-RelatedArticles' => 'Articoli collegati',
'relatedarticles-sidebartext' => 'Articoli collegati',
);
$messages['it'] = array(
'ra-RelatedArticles' => 'Autres articles',
'relatedarticles-sidebartext' => 'Autres articles',
);

View file

@ -11,9 +11,10 @@ $wgExtensionMessagesFiles['RelatedArticles'] = $dir . 'RelatedArticles.i18n.php'
$wgExtensionFunctions[] = 'wfSetupRelatedArticles';
$wgExtensionCredits['parserhook']['RelatedArticles'] = array(
'path' => __FILE__,
'name' => 'RelatedArticles',
'url' => 'http://wikivoyage.org/tech/RelatedArticles-Extension',
'author' => 'Roland Unger/Hans Musil',
'author' => array( 'Roland Unger', 'Hans Musil' ),
'descriptionmsg' => 'ra-desc'
);
@ -128,7 +129,7 @@ class RelatedArticles {
</div>
</div>
<div id="p-lang" class="portal">
<h5><?php $skTemplate->msg( 'ra-RelatedArticles' ) ?></h5>
<h5><?php $skTemplate->msg( 'relatedarticles-sidebartext' ) ?></h5>
<div class="body">
<ul>
<?php