r98350 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98349‎ | r98350 | r98351 >
Date:19:06, 28 September 2011
Author:dasch
Status:ok
Tags:
Comment:
fixing r98338 (adding localisation)
Modified paths:
  • /trunk/extensions/RelationLinks/RelationLinks.i18n.php (added) (history)
  • /trunk/extensions/RelationLinks/RelationLinks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/RelationLinks/RelationLinks.i18n.php
@@ -0,0 +1,27 @@
 2+<?php
 3+
 4+/**
 5+ * Messages file for the RelationLinks extension
 6+ *
 7+ * @addtogroup Extensions
 8+ */
 9+
 10+/**
 11+ * Get all extension messages
 12+ *
 13+ * @return array
 14+ */
 15+$messages = array();
 16+
 17+$messages['qqq'] = array(
 18+ 'relationlinks-desc' => 'Description for Special:Version',
 19+);
 20+
 21+$messages['en'] = array(
 22+ 'relationlinks-desc' => 'Adds link rel to header, that can used for navigation and for SEO',
 23+);
 24+
 25+$messages['de'] = array(
 26+ 'relationlinks-desc' => 'Fügt im Header versteckte Navigationslinks hinzu die für die Navigation und für die Suchmaschinenoptimierung genutzt werden',
 27+);
 28+
Property changes on: trunk/extensions/RelationLinks/RelationLinks.i18n.php
___________________________________________________________________
Added: svn:eol-style
129 + native
Index: trunk/extensions/RelationLinks/RelationLinks.php
@@ -16,10 +16,15 @@
1717 'name' => 'RelationLinks',
1818 'author' => '[http://www.dasch-tour.de DaSch]',
1919 'description' => 'Adds link rel to header, that can used for navigation and for SEO',
 20+ 'descriptionmsg' => 'relationlinks-desc',
2021 'version' => '0.2.1',
2122 'url' => 'http://www.mediawiki.org/wiki/Extension:RelationLinks',
2223 );
 24+$dir = dirname( __FILE__ ) . '/';
2325
 26+// Internationalization
 27+$wgExtensionMessagesFiles['RelationLinks'] = $dir . 'RelationLinks.i18n.php';
 28+
2429 $wgHooks['ParserBeforeTidy'][] = 'addRelationLinks';
2530
2631 function addRelationLinks( &$parser, &$text ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r98401r98350: Sort languages: 1. 'en, 2. 'qqq', 3. all other by alphabet...raymond06:57, 29 September 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r98338Adding Extension RelationLinksdasch17:53, 28 September 2011

Status & tagging log