http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89066
Revision: 89066
Author: jeroendedauw
Date: 2011-05-28 19:58:39 +0000 (Sat, 28 May 2011)
Log Message:
-----------
added i18n file
Modified Paths:
--------------
trunk/extensions/SemanticGraph/includes/SemanticGraph2.php
Added Paths:
-----------
trunk/extensions/SemanticGraph/SemanticGraph.i18n.php
Added: trunk/extensions/SemanticGraph/SemanticGraph.i18n.php
===================================================================
--- trunk/extensions/SemanticGraph/SemanticGraph.i18n.php
(rev 0)
+++ trunk/extensions/SemanticGraph/SemanticGraph.i18n.php 2011-05-28
19:58:39 UTC (rev 89066)
@@ -0,0 +1,28 @@
+<?php
+
+/**
+ * Internationalization file for the Semantic Graph extension.
+ *
+ * @since 0.9
+ *
+ * @file SemanticGraph.i18n.php
+ *
+ * @licence GNU GPL v3+
+ * @author Jeroen De Dauw < [email protected] >
+ */
+
+$messages = array();
+
+/** English
+ * @author Jeroen De Dauw
+ */
+$messages['en'] = array(
+ 'semanticgraph-desc' => 'This extension depends on graphviz, freemind
applet and hypergraph applet',
+);
+
+/** Message documentation (Message documentation)
+ * @author Jeroen De Dauw
+ */
+$messages['qqq'] = array(
+ 'semanticgraph-desc' => '{{desc}}',
+);
\ No newline at end of file
Property changes on: trunk/extensions/SemanticGraph/SemanticGraph.i18n.php
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: trunk/extensions/SemanticGraph/includes/SemanticGraph2.php
===================================================================
--- trunk/extensions/SemanticGraph/includes/SemanticGraph2.php 2011-05-28
19:26:47 UTC (rev 89065)
+++ trunk/extensions/SemanticGraph/includes/SemanticGraph2.php 2011-05-28
19:58:39 UTC (rev 89066)
@@ -23,19 +23,23 @@
die( -1 );
}
+define( 'SemanticGraph_VERSION', '0.9 alpha' );
+
# Define a setup function
$wgExtensionFunctions[] = 'efSGraphParserFunction_Setup';
# Add a hook to initialise the magic word
$wgHooks['LanguageGetMagic'][] = 'efSGraphParserFunction_Magic';
// Extension credits that will show up on Special:Version
-$wgExtensionCredits['parserhook'][] = array(
- 'name' => 'SemanticGraph',
- 'version' => '0.9 alpha',
- 'author' => 'Rob Challen',
- 'url' => 'http://semanticgraph.sourceforge.net/',
- 'description' => 'This extension depends on graphviz, freemind applet
and hypergraph applet'
+$wgExtensionCredits[defined( 'SEMANTIC_EXTENSION_TYPE' ) ? 'semantic' :
'parserhook'][] = array(
+ 'name' => 'SemanticGraph',
+ 'version' => SemanticGraph_VERSION,
+ 'author' => 'Rob Challen',
+ 'url' =>
'https://secure.wikimedia.org/wikipedia/mediawiki/wiki/Extension:Semantic_Graph',
+ 'descriptionmsg' => 'semanticgraph-desc'
);
+$wgExtensionMessagesFiles['SemanticGraph']
= dirname( __FILE__ ) . '/../SemanticGraph.i18n.php';
+
$wgAutoloadClasses['SemanticGraphSettings']
= dirname( __FILE__ ) . '/SemanticGraphSettings.php';
$wgAutoloadClasses['graphfile']
= dirname( __FILE__ ) . '/SemanticGraphFiles.php';
$wgAutoloadClasses['renderer']
= dirname( __FILE__ ) . '/SemanticGraphRenderer.php';
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs