r77169 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77168‎ | r77169 | r77170 >
Date:17:20, 23 November 2010
Author:raymond
Status:ok
Tags:
Comment:
Follow-up r77000: Add i18n file
Add extension to Translatewiki
Modified paths:
  • /trunk/extensions/OpenGraphMeta/OpenGraphMeta.i18n.php (added) (history)
  • /trunk/extensions/OpenGraphMeta/OpenGraphMeta.php (modified) (history)
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/OpenGraphMeta/OpenGraphMeta.php
@@ -28,11 +28,13 @@
2929 "path" => __FILE__,
3030 "name" => "OpenGraphMeta",
3131 "author" => "[http://mediawiki.org/wiki/User:Dantman Daniel Friesen]",
32 - "description" => "Adds OpenGraph meta tags used by FaceBook's Like button",
 32+ 'descriptionmsg' => 'opengraphmeta-desc',
3333 'url' => 'http://www.mediawiki.org/wiki/Extension:OpenGraphMeta',
3434 );
3535
36 -$wgExtensionMessagesFiles['OpenGraphMetaMagic'] = dirname( __FILE__ ) . '/OpenGraphMeta.magic.php';
 36+$dir = dirname( __FILE__ );
 37+$wgExtensionMessagesFiles['OpenGraphMetaMagic'] = $dir . '/OpenGraphMeta.magic.php';
 38+$wgExtensionMessagesFiles['OpenGraphMeta'] = $dir . '/OpenGraphMeta.i18n.php';
3739
3840 $wgHooks['ParserFirstCallInit'][] = 'efOpenGraphMetaParserInit';
3941 function efOpenGraphMetaParserInit( $parser ) {
Index: trunk/extensions/OpenGraphMeta/OpenGraphMeta.i18n.php
@@ -0,0 +1,17 @@
 2+<?php
 3+/**
 4+ * Internationalisation for OpenGraphMeta extension
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
 9+
 10+$messages = array();
 11+
 12+/** English
 13+ * @author Daniel Friesen
 14+ */
 15+$messages['en'] = array(
 16+ 'opengraphmeta-desc' => "Adds OpenGraph meta tags used by FaceBook's Like button",
 17+);
 18+
Property changes on: trunk/extensions/OpenGraphMeta/OpenGraphMeta.i18n.php
___________________________________________________________________
Added: svn:eol-style
119 + native
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -824,6 +824,9 @@
825825 aliasfile = OpenID/OpenID.alias.php
826826 optional = prefs-openid, openid-urls-url
827827
 828+Open Graph Meta
 829+magicfile = OpenGraphMeta/OpenGraphMeta.magic.php
 830+
828831 Open Search Xml
829832
830833 Other Sites

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r77000Commit Description2 and OpenGraphMeta extensionsdantman01:40, 19 November 2010

Status & tagging log