Jeroen De Dauw has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/64486


Change subject: Add credits and i18n file to MW file of DataModel component
......................................................................

Add credits and i18n file to MW file of DataModel component

Change-Id: If3726b88ddefc29ad4f4efde67fabc5eb131c6fa
---
A DataModel/DataModel.i18n.php
M DataModel/DataModel.mw.php
2 files changed, 55 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/86/64486/1

diff --git a/DataModel/DataModel.i18n.php b/DataModel/DataModel.i18n.php
new file mode 100644
index 0000000..604da63
--- /dev/null
+++ b/DataModel/DataModel.i18n.php
@@ -0,0 +1,44 @@
+<?php
+
+/**
+ * Internationalization file for the Wikibase DataModel 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.4
+ *
+ * @file
+ * @ingroup WikibaseDataModel
+ *
+ * @licence GNU GPL v2+
+ * @author Jeroen De Dauw < [email protected] >
+ */
+
+$messages = array();
+
+/** English
+ * @author Jeroen De Dauw
+ */
+$messages['en'] = array(
+       'wikibasedatamodel-desc' => 'Component defining the Wikibase data 
model',
+);
+
+/** Message documentation (Message documentation)
+ * @author Jeroen De Dauw
+ */
+$messages['qqq'] = array(
+       'wikibasedatamodel-desc' => '{{desc|name=Wikibase 
DataModel|url=http://www.mediawiki.org/wiki/Extension:Wikibase}}',
+);
diff --git a/DataModel/DataModel.mw.php b/DataModel/DataModel.mw.php
index c213f54..b499943 100644
--- a/DataModel/DataModel.mw.php
+++ b/DataModel/DataModel.mw.php
@@ -34,9 +34,18 @@
 
 global $wgExtensionCredits, $wgExtensionMessagesFiles, $wgAutoloadClasses, 
$wgHooks;
 
-//$wgExtensionCredits['other'][] = include( __DIR__ . '/DataModel.credits.php' 
);
+$wgExtensionCredits['wikibase'][] = array(
+       'path' => __DIR__,
+       'name' => 'Wikibase DataModel',
+       'version' => WIKIBASE_DATAMODEL_VERSION,
+       'author' => array(
+               '[https://www.mediawiki.org/wiki/User:Jeroen_De_Dauw Jeroen De 
Dauw]',
+       ),
+       'url' => 'https://www.mediawiki.org/wiki/Extension:Wikibase_DataModel',
+       'descriptionmsg' => 'wikibasedatamodel-desc'
+);
 
-//$wgExtensionMessagesFiles['WikibaseDataModel'] = __DIR__ . 
'/DataModel.i18n.php';
+$wgExtensionMessagesFiles['WikibaseDataModel'] = __DIR__ . 
'/DataModel.i18n.php';
 
 // Autoloading
 foreach ( include( __DIR__ . '/DataModel.classes.php' ) as $class => $file ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/64486
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If3726b88ddefc29ad4f4efde67fabc5eb131c6fa
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to