http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89045
Revision: 89045
Author: jeroendedauw
Date: 2011-05-28 16:56:23 +0000 (Sat, 28 May 2011)
Log Message:
-----------
importing Spark extension
Added Paths:
-----------
trunk/extensions/Spark/
trunk/extensions/Spark/Spark.i18n.php
trunk/extensions/Spark/Spark.php
trunk/extensions/Spark/Spark.settings.php
Added: trunk/extensions/Spark/Spark.i18n.php
===================================================================
--- trunk/extensions/Spark/Spark.i18n.php (rev 0)
+++ trunk/extensions/Spark/Spark.i18n.php 2011-05-28 16:56:23 UTC (rev
89045)
@@ -0,0 +1,29 @@
+<?php
+
+/**
+ * Internationalization file for the Spark extension.
+ *
+ * @since 0.1
+ *
+ * @file Spark.i18n.php
+ * @ingroup Spark
+ *
+ * @licence GNU GPL v3+
+ * @author Jeroen De Dauw < [email protected] >
+ */
+
+$messages = array();
+
+/** English
+ * @author Jeroen De Dauw
+ */
+$messages['en'] = array(
+ 'spark-desc' => 'Adds a <code><nowiki><spark /></nowiki></code> tag
that enables embedding [http://km.aifb.kit.edu/sites/spark/ Spark] mash-ups.',
+);
+
+/** Message documentation (Message documentation)
+ * @author Jeroen De Dauw
+ */
+$messages['qqq'] = array(
+ 'spark-desc' => '{{desc}}',
+);
\ No newline at end of file
Property changes on: trunk/extensions/Spark/Spark.i18n.php
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/extensions/Spark/Spark.php
===================================================================
--- trunk/extensions/Spark/Spark.php (rev 0)
+++ trunk/extensions/Spark/Spark.php 2011-05-28 16:56:23 UTC (rev 89045)
@@ -0,0 +1,48 @@
+<?php
+
+/**
+ * Initialization file for the Spark extension.
+ *
+ * Documentation:
http://www.mediawiki.org/wiki/Extension:Spark
+ * Support
http://www.mediawiki.org/wiki/Extension_talk:Spark
+ * Source code:
http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/Spark
+ *
+ * @file Spark.php
+ * @ingroup Spark
+ *
+ * @licence GNU GPL v3+
+ * @author Jeroen De Dauw < [email protected] >
+ */
+
+/**
+ * This documenation group collects source code files belonging to Spark.
+ *
+ * @defgroup Spark Spark
+ */
+
+if ( !defined( 'MEDIAWIKI' ) ) {
+ die( 'Not an entry point.' );
+}
+
+if ( version_compare( $wgVersion, '1.17', '<' ) ) {
+ die( '<b>Error:</b> Spark requires MediaWiki 1.17 or above.' );
+}
+
+define( 'Spark_VERSION', '0.1 alpha' );
+
+$wgExtensionCredits['other'][] = array(
+ 'path' => __FILE__,
+ 'name' => 'Spark',
+ 'version' => Spark_VERSION,
+ 'author' => array(
+ '[http://www.mediawiki.org/wiki/User:Jeroen_De_Dauw Jeroen De
Dauw]',
+ ),
+ 'url' => 'http://www.mediawiki.org/wiki/Extension:Spark',
+ 'descriptionmsg' => 'spark-desc'
+);
+
+$egSparkScriptPath = ( $wgExtensionAssetsPath === false ? $wgScriptPath .
'/extensions' : $wgExtensionAssetsPath ) . '/Spark';
+
+$wgExtensionMessagesFiles['Spark'] = dirname( __FILE__ ) . '/Spark.i18n.php';
+
+require_once 'Spark.settings.php';
\ No newline at end of file
Property changes on: trunk/extensions/Spark/Spark.php
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/extensions/Spark/Spark.settings.php
===================================================================
--- trunk/extensions/Spark/Spark.settings.php (rev 0)
+++ trunk/extensions/Spark/Spark.settings.php 2011-05-28 16:56:23 UTC (rev
89045)
@@ -0,0 +1,21 @@
+<?php
+
+/**
+ * File defining the settings for the Spark extension.
+ * More info can be found at
http://www.mediawiki.org/wiki/Extension:Spark#Settings
+ *
+ * NOTICE:
+ * Changing one of these settings can be done by copying or cutting it,
+ * and placing it in LocalSettings.php, AFTER the inclusion of this extension.
+ *
+ * @file Spark.settings.php
+ * @ingroup Spark
+ *
+ * @licence GNU GPL v3+
+ * @author Jeroen De Dauw < [email protected] >
+ */
+
+if ( !defined( 'MEDIAWIKI' ) ) {
+ die( 'Not an entry point.' );
+}
+
Property changes on: trunk/extensions/Spark/Spark.settings.php
___________________________________________________________________
Added: svn:eol-style
+ native
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs