Jeroen De Dauw has uploaded a new change for review. https://gerrit.wikimedia.org/r/65810
Change subject: Register component info of QueryEngine in MW ...................................................................... Register component info of QueryEngine in MW Change-Id: Iba7ab396a4bf4f1b49c5041c85976c7702fddc0f --- A QueryEngine/QueryEngine.i18n.php M QueryEngine/QueryEngine.mw.php M QueryEngine/QueryEngine.php 3 files changed, 56 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase refs/changes/10/65810/1 diff --git a/QueryEngine/QueryEngine.i18n.php b/QueryEngine/QueryEngine.i18n.php new file mode 100644 index 0000000..69f95c0 --- /dev/null +++ b/QueryEngine/QueryEngine.i18n.php @@ -0,0 +1,44 @@ +<?php + +/** + * Internationalization file for the Wikibase QueryEngine component. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @since 0.1 + * + * @file + * @ingroup WikibaseQueryEngine + * + * @licence GNU GPL v2+ + * @author Jeroen De Dauw < jeroended...@gmail.com > + */ + +$messages = array(); + +/** English + * @author Jeroen De Dauw + */ +$messages['en'] = array( + 'wikibasequeryegnine-desc' => 'Component containing query answering code for Ask queries against a collection of Wikibase entities', +); + +/** Message documentation (Message documentation) + * @author Jeroen De Dauw + */ +$messages['qqq'] = array( + 'wikibasequeryegnine-desc' => '{{desc|name=Wikibase QueryEngine|url=http://www.mediawiki.org/wiki/Extension:Wikibase}}', +); diff --git a/QueryEngine/QueryEngine.mw.php b/QueryEngine/QueryEngine.mw.php index 11dc5c6..3e29f70 100644 --- a/QueryEngine/QueryEngine.mw.php +++ b/QueryEngine/QueryEngine.mw.php @@ -30,9 +30,18 @@ global $wgExtensionCredits, $wgExtensionMessagesFiles, $wgAutoloadClasses, $wgHooks; -//$wgExtensionCredits['other'][] = include( __DIR__ . '/DataModel.credits.php' ); +$wgExtensionCredits['wikibase'][] = array( + 'path' => __DIR__, + 'name' => 'Wikibase QueryEngine', + 'version' => WIKIBASE_QUERYENGINE_VERSION, + 'author' => array( + '[https://www.mediawiki.org/wiki/User:Jeroen_De_Dauw Jeroen De Dauw]', + ), + 'url' => 'https://www.mediawiki.org/wiki/Extension:Wikibase_QueryEngine', + 'descriptionmsg' => 'wikibasequeryegnine-desc' +); -//$wgExtensionMessagesFiles['WikibaseDataModel'] = __DIR__ . '/DataModel.i18n.php'; +$wgExtensionMessagesFiles['WikibaseQueryEngine'] = __DIR__ . '/QueryEngine.i18n.php'; if ( defined( 'MW_PHPUNIT_TEST' ) ) { require_once __DIR__ . '/tests/testLoader.php'; diff --git a/QueryEngine/QueryEngine.php b/QueryEngine/QueryEngine.php index 8396cf5..0d7f87d 100644 --- a/QueryEngine/QueryEngine.php +++ b/QueryEngine/QueryEngine.php @@ -27,7 +27,7 @@ * @author Jeroen De Dauw < jeroended...@gmail.com > */ -define( 'WIKIBASE_Query', '0.1 alpha' ); +define( 'WIKIBASE_QUERYENGINE_VERSION', '0.1 alpha' ); spl_autoload_register( function ( $className ) { $className = ltrim( $className, '\\' ); -- To view, visit https://gerrit.wikimedia.org/r/65810 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iba7ab396a4bf4f1b49c5041c85976c7702fddc0f Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: Jeroen De Dauw <jeroended...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits