jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/334894 )

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: I58be3d783ce8907aaec64a18a58ad56a2f7f5c80
---
A .gitignore
A Gruntfile.js
M SearchStats.php
A i18n/en.json
A i18n/qqq.json
A package.json
6 files changed, 45 insertions(+), 1 deletion(-)

Approvals:
  Raimond Spekking: Looks good to me, but someone else must approve
  jenkins-bot: Verified
  Siebrand: Looks good to me, approved



diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..7e5da87
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+node_modules/
+vendor/
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/SearchStats.php b/SearchStats.php
index a91a2c3..0f8be6a 100644
--- a/SearchStats.php
+++ b/SearchStats.php
@@ -27,11 +27,13 @@
        ),
        'version'  => '0.1.0',
        'url' => 'https://www.mediawiki.org/wiki/Extension:SearchStats',
-       'description' => 'Tracks internal searches to allow identifing 
commonally seeked pages on the wiki.',
+       'descriptionmsg' => 'searchstats-desc',
 );
 
 /* Setup */
 
+$wgMessagesDirs['SearchStats'] = __DIR__ . '/i18n';
+
 // Autoload classes
 $wgAutoloadClasses['SpecialSearchStats'] = __DIR__ . 
'/SpecialSearchStats.php'; # Location of the SpecialSearchStats class (Tell 
MediaWiki to load this file)
 
diff --git a/i18n/en.json b/i18n/en.json
new file mode 100644
index 0000000..761b837
--- /dev/null
+++ b/i18n/en.json
@@ -0,0 +1,4 @@
+{
+       "@metadata": {},
+       "searchstats-desc": "Tracks internal searches to allow identifing 
commonally seeked pages on the wiki"
+}
diff --git a/i18n/qqq.json b/i18n/qqq.json
new file mode 100644
index 0000000..a797601
--- /dev/null
+++ b/i18n/qqq.json
@@ -0,0 +1,4 @@
+{
+       "@metadata": {},
+       "searchstats-desc": "{{desc|name=Search 
Stats|url=https://www.mediawiki.org/wiki/Extension:SearchStats}}";
+}
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/334894
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I58be3d783ce8907aaec64a18a58ad56a2f7f5c80
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SearchStats
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>
Gerrit-Reviewer: Raimond Spekking <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: Umherirrender <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to