Jnanninga has submitted this change and it was merged. Change subject: Add i18n file in JSON format ......................................................................
Add i18n file in JSON format * Remove trailing ?> * Fix indention * Change line ending from Windows to Unix Change-Id: Ifc23557fe1b369d70a917bf472be7374709a06b9 --- D XMLContentExtension.i18n.php M XMLContentExtension.php A i18n/en.json A i18n/qqq.json 4 files changed, 44 insertions(+), 27 deletions(-) Approvals: Jnanninga: Checked; Looks good to me, approved jenkins-bot: Verified diff --git a/XMLContentExtension.i18n.php b/XMLContentExtension.i18n.php deleted file mode 100644 index e69de29..0000000 --- a/XMLContentExtension.i18n.php +++ /dev/null diff --git a/XMLContentExtension.php b/XMLContentExtension.php index 6d82d3e..da37baa 100644 --- a/XMLContentExtension.php +++ b/XMLContentExtension.php @@ -1,27 +1,28 @@ -<?php - - $wgExtensionCredits['other'][] = array( - 'path' => __FILE__, - 'name' => 'XMLContent', - 'version' => 0.1, - 'author' => 'Johannes Nanninga (mailto:[email protected])', - 'url' => '', - 'description' => 'Adds a new Namespace and Content type that can contain, display, edit, and validate XML.', - ); - - - require_once(__DIR__ . '/include/NSFunctions.php'); - - require_once(__DIR__ . '/XMLContentExtension.body.php'); - require_once(__DIR__ . '/XMLContentExtension.i18n.php'); - - require_once(__DIR__ . '/include/XmlContent.class.php'); - require_once(__DIR__ . '/include/XmlContentHandler.class.php'); - require_once(__DIR__ . '/include/XMLDocument.class.php'); - - require_once(__DIR__ . '/XMLContentExtension.resources.php'); - - require_once(__DIR__ . '/XMLContentExtension.hooks.php'); - require_once(__DIR__ . '/XMLContentExtension.routes.php'); - -?> +<?php + +$wgExtensionCredits['other'][] = array( + 'path' => __FILE__, + 'name' => 'XMLContentExtension', + 'version' => 0.1, + 'author' => 'Johannes Nanninga (mailto:[email protected])', + 'url' => 'https://www.mediawiki.org/wiki/Extension:XMLContentExtension', + 'descriptiondesc' => 'xmlcontentextension-desc', +); + +/** + * Load i18n file + */ +$wgMessagesDirs['XMLContentExtension'] = __DIR__ . '/i18n'; + +require_once(__DIR__ . '/include/NSFunctions.php'); + +require_once(__DIR__ . '/XMLContentExtension.body.php'); + +require_once(__DIR__ . '/include/XmlContent.class.php'); +require_once(__DIR__ . '/include/XmlContentHandler.class.php'); +require_once(__DIR__ . '/include/XMLDocument.class.php'); + +require_once(__DIR__ . '/XMLContentExtension.resources.php'); + +require_once(__DIR__ . '/XMLContentExtension.hooks.php'); +require_once(__DIR__ . '/XMLContentExtension.routes.php'); diff --git a/i18n/en.json b/i18n/en.json new file mode 100644 index 0000000..a62568d --- /dev/null +++ b/i18n/en.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Raimond Spekking" + ] + }, + "xmlcontentextension-desc": "{{desc|name=XMLContentExtension|url=https://www.mediawiki.org/wiki/Extension:XMLContentExtension}}" +} diff --git a/i18n/qqq.json b/i18n/qqq.json new file mode 100644 index 0000000..6041ff3 --- /dev/null +++ b/i18n/qqq.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Johannes Nanninga" + ] + }, + "xmlcontentextension-desc": "Adds a new namespace and content type that can contain, display, edit, and validate XML" +} -- To view, visit https://gerrit.wikimedia.org/r/178169 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ifc23557fe1b369d70a917bf472be7374709a06b9 Gerrit-PatchSet: 3 Gerrit-Project: mediawiki/extensions/XMLContentExtension Gerrit-Branch: master Gerrit-Owner: Raimond Spekking <[email protected]> Gerrit-Reviewer: Jnanninga <[email protected]> Gerrit-Reviewer: Siebrand <[email protected]> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
