Raimond Spekking has uploaded a new change for review.

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


Change subject: Add i18n file
......................................................................

Add i18n file

Change-Id: Iced8903eca3c93b494968df84d0886edfde75f4a
---
A PubSubHubbub.i18n.php
M PubSubHubbub.php
2 files changed, 28 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PubSubHubbub 
refs/changes/19/108019/1

diff --git a/PubSubHubbub.i18n.php b/PubSubHubbub.i18n.php
new file mode 100644
index 0000000..fb17195
--- /dev/null
+++ b/PubSubHubbub.i18n.php
@@ -0,0 +1,25 @@
+<?php
+/**
+ * Internationalisation file for PubSubHubbub extension.
+ *
+ * @file
+ * @ingroup Extensions
+ */
+ */
+
+$messages = array();
+
+/** English
+ * @author BP2013N2
+ */
+$messages['en'] = array(
+       'pubsubhubbub-desc' => 'Publishes changes to a PubSubHubbub hub',
+);
+
+/** Message documentation
+ * @author Raimond Spekking
+ */
+$messages['qqq'] = array(
+       'pubsubhubbub-desc' => 
'{{desc|name=PubSubHubbub|url=https://www.mediawiki.org/wiki/Extension:PubSubHubbub}}',
+);
+
diff --git a/PubSubHubbub.php b/PubSubHubbub.php
index 0ff9688..db2db88 100644
--- a/PubSubHubbub.php
+++ b/PubSubHubbub.php
@@ -35,12 +35,14 @@
        'name' => 'PubSubHubbub',
        'author' => array( 'BP2013N2' ),
        'url' => 'https://www.mediawiki.org/wiki/Extension:PubSubHubbub',
-       'descriptionmsg' => 'This is a PubSubHubbub implementation',
+       'descriptionmsg' => 'pubsubhubbub-desc',
        'version'  => 0.1,
 );
 
 $dir = __DIR__ . '/';
 
+$wgExtensionMessagesFiles['PubSubHubbub'] = $dir . 'PubSubHubbub.i18n.php';
+
 $wgAutoloadClasses['PubSubHubbub'] = $dir . 'PubSubHubbub.body.php';
 $wgAutoloadClasses['PublishChangesJob'] = $dir . 'PublishChangesJob.php';
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iced8903eca3c93b494968df84d0886edfde75f4a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PubSubHubbub
Gerrit-Branch: master
Gerrit-Owner: Raimond Spekking <[email protected]>

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

Reply via email to