Umherirrender has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/334892 )

Change subject: Move description from extension.json to message file
......................................................................

Move description from extension.json to message file

Added i18n files and banana check

Change-Id: I92a028d6e1f03e20db69e3d7eed79598f7510c4d
---
M .gitignore
A Gruntfile.js
M PurgeClickThrough.php
A i18n/en.json
A i18n/qqq.json
A package.json
6 files changed, 46 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PurgeClickThrough 
refs/changes/92/334892/1

diff --git a/.gitignore b/.gitignore
index 98b092a..e62fc28 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,6 @@
+node_modules/
+vendor/
+
 .svn
 *~
 *.kate-swp
diff --git a/Gruntfile.js b/Gruntfile.js
new file mode 100644
index 0000000..a45071e
--- /dev/null
+++ b/Gruntfile.js
@@ -0,0 +1,21 @@
+/*jshint node:true */
+module.exports = function ( grunt ) {
+       grunt.loadNpmTasks( 'grunt-jsonlint' );
+       grunt.loadNpmTasks( 'grunt-banana-checker' );
+
+       grunt.initConfig( {
+               banana: {
+                       all: 'i18n/'
+               },
+               jsonlint: {
+                       all: [
+                               '**/*.json',
+                               '!node_modules/**',
+                               '!vendor/**'
+                       ]
+               }
+       } );
+
+       grunt.registerTask( 'test', [ 'jsonlint', 'banana' ] );
+       grunt.registerTask( 'default', 'test' );
+};
diff --git a/PurgeClickThrough.php b/PurgeClickThrough.php
index 15210d0..4b9899b 100644
--- a/PurgeClickThrough.php
+++ b/PurgeClickThrough.php
@@ -14,11 +14,12 @@
        'name' => 'PurgeClickThrough',
        'version' => '0.1',
        'author' => 'Brian Wolff',
-       // Not for real users, so no point i18n-ing it.
-       'description' => 'Do not redirect ?action=purge pages, but instead have 
a click through (for debugging purposes)',
+       'descriptionmsg' => 'purgeclickthrough-desc',
        'url' => 'https://www.mediawiki.org/wiki/Extension:PurgeClickThrough',
 );
 
+$wgMessagesDirs['PurgeClickThrough'] = __DIR__ . '/i18n';
+
 $wgActions['purge'] = 'PurgeClickThrough';
 
 class PurgeClickThrough extends PurgeAction {
diff --git a/i18n/en.json b/i18n/en.json
new file mode 100644
index 0000000..ad10921
--- /dev/null
+++ b/i18n/en.json
@@ -0,0 +1,4 @@
+{
+       "@metadata": {},
+       "purgeclickthrough-desc": "Do not redirect ?action=purge pages, but 
instead have a click through (for debugging purposes)"
+}
diff --git a/i18n/qqq.json b/i18n/qqq.json
new file mode 100644
index 0000000..4a24168
--- /dev/null
+++ b/i18n/qqq.json
@@ -0,0 +1,4 @@
+{
+       "@metadata": {},
+       "purgeclickthrough-desc": 
"{{desc|name=PurgeClickThrough|url=https://www.mediawiki.org/wiki/Extension:PurgeClickThrough}}";
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..bcf5b13
--- /dev/null
+++ b/package.json
@@ -0,0 +1,11 @@
+{
+       "private": true,
+       "scripts": {
+               "test": "grunt test"
+       },
+       "devDependencies": {
+               "grunt": "1.0.1",
+               "grunt-banana-checker": "0.5.0",
+               "grunt-jsonlint": "1.1.0"
+       }
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I92a028d6e1f03e20db69e3d7eed79598f7510c4d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PurgeClickThrough
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>

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

Reply via email to