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 = array();
$messages['en'] = array( $messages['en'] = array(
'ra-RelatedArticles' => 'Related articles', 'relatedarticles-sidebartext' => 'Related pages',
'ra-desc' => 'Extension for presentation of related articles on the sidebar', '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( $messages['de'] = array(
'ra-RelatedArticles' => 'Verwandte Artikel', 'relatedarticles-sidebartext' => 'Verwandte Seiten',
'ra-desc' => 'Erweiterung für die Ausgabe von verwandten Artikeln auf der Sidebar', 'relatedarticles-desc' => 'Erweiterung für die Ausgabe von verwandten Seiten auf der Sidebar',
); );
$messages['fr'] = array( $messages['fr'] = array(
'ra-RelatedArticles' => 'Articoli collegati', 'relatedarticles-sidebartext' => 'Articoli collegati',
); );
$messages['it'] = array( $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'; $wgExtensionFunctions[] = 'wfSetupRelatedArticles';
$wgExtensionCredits['parserhook']['RelatedArticles'] = array( $wgExtensionCredits['parserhook']['RelatedArticles'] = array(
'path' => __FILE__,
'name' => 'RelatedArticles', 'name' => 'RelatedArticles',
'url' => 'http://wikivoyage.org/tech/RelatedArticles-Extension', 'url' => 'http://wikivoyage.org/tech/RelatedArticles-Extension',
'author' => 'Roland Unger/Hans Musil', 'author' => array( 'Roland Unger', 'Hans Musil' ),
'descriptionmsg' => 'ra-desc' 'descriptionmsg' => 'ra-desc'
); );
@ -128,7 +129,7 @@ class RelatedArticles {
</div> </div>
</div> </div>
<div id="p-lang" class="portal"> <div id="p-lang" class="portal">
<h5><?php $skTemplate->msg( 'ra-RelatedArticles' ) ?></h5> <h5><?php $skTemplate->msg( 'relatedarticles-sidebartext' ) ?></h5>
<div class="body"> <div class="body">
<ul> <ul>
<?php <?php