Index: trunk/extensions/Spark/Spark.i18n.php |
— | — | @@ -0,0 +1,29 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +/** |
| 5 | + * Internationalization file for the Spark extension. |
| 6 | + * |
| 7 | + * @since 0.1 |
| 8 | + * |
| 9 | + * @file Spark.i18n.php |
| 10 | + * @ingroup Spark |
| 11 | + * |
| 12 | + * @licence GNU GPL v3+ |
| 13 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
| 14 | + */ |
| 15 | + |
| 16 | +$messages = array(); |
| 17 | + |
| 18 | +/** English |
| 19 | + * @author Jeroen De Dauw |
| 20 | + */ |
| 21 | +$messages['en'] = array( |
| 22 | + 'spark-desc' => 'Adds a <code><nowiki><spark /></nowiki></code> tag that enables embedding [http://km.aifb.kit.edu/sites/spark/ Spark] mash-ups.', |
| 23 | +); |
| 24 | + |
| 25 | +/** Message documentation (Message documentation) |
| 26 | + * @author Jeroen De Dauw |
| 27 | + */ |
| 28 | +$messages['qqq'] = array( |
| 29 | + 'spark-desc' => '{{desc}}', |
| 30 | +); |
\ No newline at end of file |
Property changes on: trunk/extensions/Spark/Spark.i18n.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 31 | + native |
Index: trunk/extensions/Spark/Spark.settings.php |
— | — | @@ -0,0 +1,21 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +/** |
| 5 | + * File defining the settings for the Spark extension. |
| 6 | + * More info can be found at http://www.mediawiki.org/wiki/Extension:Spark#Settings |
| 7 | + * |
| 8 | + * NOTICE: |
| 9 | + * Changing one of these settings can be done by copying or cutting it, |
| 10 | + * and placing it in LocalSettings.php, AFTER the inclusion of this extension. |
| 11 | + * |
| 12 | + * @file Spark.settings.php |
| 13 | + * @ingroup Spark |
| 14 | + * |
| 15 | + * @licence GNU GPL v3+ |
| 16 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
| 17 | + */ |
| 18 | + |
| 19 | +if ( !defined( 'MEDIAWIKI' ) ) { |
| 20 | + die( 'Not an entry point.' ); |
| 21 | +} |
| 22 | + |
Property changes on: trunk/extensions/Spark/Spark.settings.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 23 | + native |
Index: trunk/extensions/Spark/Spark.php |
— | — | @@ -0,0 +1,48 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +/** |
| 5 | + * Initialization file for the Spark extension. |
| 6 | + * |
| 7 | + * Documentation: http://www.mediawiki.org/wiki/Extension:Spark |
| 8 | + * Support http://www.mediawiki.org/wiki/Extension_talk:Spark |
| 9 | + * Source code: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/Spark |
| 10 | + * |
| 11 | + * @file Spark.php |
| 12 | + * @ingroup Spark |
| 13 | + * |
| 14 | + * @licence GNU GPL v3+ |
| 15 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
| 16 | + */ |
| 17 | + |
| 18 | +/** |
| 19 | + * This documenation group collects source code files belonging to Spark. |
| 20 | + * |
| 21 | + * @defgroup Spark Spark |
| 22 | + */ |
| 23 | + |
| 24 | +if ( !defined( 'MEDIAWIKI' ) ) { |
| 25 | + die( 'Not an entry point.' ); |
| 26 | +} |
| 27 | + |
| 28 | +if ( version_compare( $wgVersion, '1.17', '<' ) ) { |
| 29 | + die( '<b>Error:</b> Spark requires MediaWiki 1.17 or above.' ); |
| 30 | +} |
| 31 | + |
| 32 | +define( 'Spark_VERSION', '0.1 alpha' ); |
| 33 | + |
| 34 | +$wgExtensionCredits['other'][] = array( |
| 35 | + 'path' => __FILE__, |
| 36 | + 'name' => 'Spark', |
| 37 | + 'version' => Spark_VERSION, |
| 38 | + 'author' => array( |
| 39 | + '[http://www.mediawiki.org/wiki/User:Jeroen_De_Dauw Jeroen De Dauw]', |
| 40 | + ), |
| 41 | + 'url' => 'http://www.mediawiki.org/wiki/Extension:Spark', |
| 42 | + 'descriptionmsg' => 'spark-desc' |
| 43 | +); |
| 44 | + |
| 45 | +$egSparkScriptPath = ( $wgExtensionAssetsPath === false ? $wgScriptPath . '/extensions' : $wgExtensionAssetsPath ) . '/Spark'; |
| 46 | + |
| 47 | +$wgExtensionMessagesFiles['Spark'] = dirname( __FILE__ ) . '/Spark.i18n.php'; |
| 48 | + |
| 49 | +require_once 'Spark.settings.php'; |
\ No newline at end of file |
Property changes on: trunk/extensions/Spark/Spark.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 50 | + native |