Siebrand has submitted this change and it was merged.

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


Add i18n file

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

Approvals:
  Nik: Checked; Looks good to me, but someone else must approve
  Siebrand: Verified; Looks good to me, approved
  Alexander.lehmann: Checked; Looks good to me, but someone else must approve



diff --git a/PubSubHubbub.i18n.php b/PubSubHubbub.i18n.php
new file mode 100644
index 0000000..2d247e5
--- /dev/null
+++ b/PubSubHubbub.i18n.php
@@ -0,0 +1,24 @@
+<?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: merged
Gerrit-Change-Id: Iced8903eca3c93b494968df84d0886edfde75f4a
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/PubSubHubbub
Gerrit-Branch: master
Gerrit-Owner: Raimond Spekking <[email protected]>
Gerrit-Reviewer: Alexander.lehmann 
<[email protected]>
Gerrit-Reviewer: Nik <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>

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

Reply via email to