EBernhardson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/145669
Change subject: Add Flow.namespaces.php per Localisation docs
......................................................................
Add Flow.namespaces.php per Localisation docs
Change-Id: I2c8c8c51cd1078ed26c9dba6f39f42cf679f82c1
---
A Flow.namespaces.php
M Flow.php
2 files changed, 20 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow
refs/changes/69/145669/1
diff --git a/Flow.namespaces.php b/Flow.namespaces.php
new file mode 100644
index 0000000..6e1353a
--- /dev/null
+++ b/Flow.namespaces.php
@@ -0,0 +1,19 @@
+<?php
+/**
+ * Translations of the namespaces introduced by MyExtension.
+ *
+ * @file
+ */
+
+$namespaceNames = array();
+
+// For wikis where the MyExtension extension is not installed.
+if( !defined( 'NS_TOPIC' ) ) {
+ define( 'NS_TOPIC', 2600 );
+}
+
+/** English */
+$namespaceNames['en'] = array(
+ NS_TOPIC => 'Topic',
+);
+
diff --git a/Flow.php b/Flow.php
index bca9a75..872d259 100755
--- a/Flow.php
+++ b/Flow.php
@@ -53,6 +53,7 @@
$wgMessagesDirs['Flow'] = __DIR__ . '/i18n';
$wgExtensionMessagesFiles['Flow'] = $dir . 'Flow.i18n.php';
+$wgExtensionMessagesFiles['MyExtensionNamespaces'] = $dir .
'/Flow.namespaces.php';
$wgAutoloadClasses['FlowInsertDefaultDefinitions'] = $dir .
'maintenance/FlowInsertDefaultDefinitions.php';
--
To view, visit https://gerrit.wikimedia.org/r/145669
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2c8c8c51cd1078ed26c9dba6f39f42cf679f82c1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits