jenkins-bot has submitted this change and it was merged.

Change subject: Convert to JSON i18n
......................................................................


Convert to JSON i18n

Change-Id: I1774b2d1585b33bb33b987e762730070da317d00
---
D ActionEditSubmit.i18n.php
M ActionEditSubmit.php
A i18n/en.json
A i18n/es.json
A i18n/fr.json
A i18n/qqq.json
6 files changed, 33 insertions(+), 42 deletions(-)

Approvals:
  Raimond Spekking: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/ActionEditSubmit.i18n.php b/ActionEditSubmit.i18n.php
deleted file mode 100644
index e2a6e26..0000000
--- a/ActionEditSubmit.i18n.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-/**
- * Internationalisation for ActionEditSubmit
- *
- * @file
- * @ingroup Extensions
- */
-
-$messages = array();
-
-/** English
- * @author David Leaman
- */
-$messages['en'] = array(
-       'actioneditsubmit-desc' => "Changes every 'action=edit' to 
'action=submit'",
-);
-
-/** Message documentation
- * @author David Leaman
- */
-$messages['qqq'] = array(
-       'actioneditsubmit-desc' => "Description for Special:Version",
-);
-
-/** Español
- * @author David Leaman
- */
-$messages['es'] = array(
-       'actioneditsubmit-desc' => "Cambia todo los 'action=edit' a 
'action=submit'",
-);
-
-/** Français
- * @author David Leaman
- */
-$messages['fr'] = array(
-       'actioneditsubmit-desc' => "Change les «action=edit» à «action=submit»",
-);
-
diff --git a/ActionEditSubmit.php b/ActionEditSubmit.php
index b27c952..60d52f1 100644
--- a/ActionEditSubmit.php
+++ b/ActionEditSubmit.php
@@ -18,8 +18,5 @@
 );
 
 $wgAutoloadClasses['ActionEditSubmitHooks'] = __DIR__ . 
'/ActionEditSubmit.hooks.php';
-
-$wgExtensionMessagesFiles['ActionEditSubmit'] = __DIR__ . 
'/ActionEditSubmit.i18n.php';
-
+$wgMessagesDirs['ActionEditSubmit'] = __DIR__ . '/i18n';
 $wgHooks['GetLocalURL'][] = 'ActionEditSubmitHooks::inlineEditURL';
-
diff --git a/i18n/en.json b/i18n/en.json
new file mode 100644
index 0000000..bf8a13f
--- /dev/null
+++ b/i18n/en.json
@@ -0,0 +1,8 @@
+{
+       "@metadata": {
+               "authors": [
+                       "David Leaman"
+               ]
+       },
+       "actioneditsubmit-desc": "Changes every 'action=edit' to 
'action=submit'"
+}
diff --git a/i18n/es.json b/i18n/es.json
new file mode 100644
index 0000000..3bf9dc5
--- /dev/null
+++ b/i18n/es.json
@@ -0,0 +1,8 @@
+{
+       "@metadata": {
+               "authors": [
+                       "David Leaman"
+               ]
+       },
+       "actioneditsubmit-desc": "Cambia todo los 'action=edit' a 
'action=submit'"
+}
diff --git a/i18n/fr.json b/i18n/fr.json
new file mode 100644
index 0000000..080b4b8
--- /dev/null
+++ b/i18n/fr.json
@@ -0,0 +1,8 @@
+{
+       "@metadata": {
+               "authors": [
+                       "David Leaman"
+               ]
+       },
+       "actioneditsubmit-desc": "Change les «action=edit» à «action=submit»"
+}
diff --git a/i18n/qqq.json b/i18n/qqq.json
new file mode 100644
index 0000000..8a282b2
--- /dev/null
+++ b/i18n/qqq.json
@@ -0,0 +1,8 @@
+{
+       "@metadata": {
+               "authors": [
+                       "David Leaman"
+               ]
+       },
+       "actioneditsubmit-desc": "Description for Special:Version"
+}

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I1774b2d1585b33bb33b987e762730070da317d00
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ActionEditSubmit
Gerrit-Branch: master
Gerrit-Owner: Siebrand <siebr...@kitano.nl>
Gerrit-Reviewer: Hashar <has...@free.fr>
Gerrit-Reviewer: Raimond Spekking <raimond.spekk...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to