Paladox has uploaded a new change for review. https://gerrit.wikimedia.org/r/227439
Change subject: Update HitCounters extension tests ...................................................................... Update HitCounters extension tests Add jsonlint test Add banana check Add composer.json. ( I will do a follow up with php code sniffer ). Adds package.json Requires https://gerrit.wikimedia.org/r/#/c/227438/ Change-Id: I395203bfdaeb7b286cd5666cbb9e82d993a16aec --- A Gruntfile.js A composer.json A i18n/fr.json M i18n/zh-hant.json A package.json 5 files changed, 62 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/HitCounters refs/changes/39/227439/1 diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..6e443b1 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,19 @@ +/*jshint node:true */ +module.exports = function ( grunt ) { + grunt.loadNpmTasks( 'grunt-jsonlint' ); + grunt.loadNpmTasks( 'grunt-banana-checker' ); + var conf = grunt.file.readJSON( 'extension.json' ); + + grunt.initConfig( { + banana: conf.MessagesDirs, + jsonlint: { + all: [ + '**/*.json', + '!node_modules/**' + ] + } + } ); + + grunt.registerTask( 'test', [ 'jsonlint', 'banana' ] ); + grunt.registerTask( 'default', 'test' ); +}; diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..7e86f90 --- /dev/null +++ b/composer.json @@ -0,0 +1,11 @@ +{ + "require-dev": { + "jakub-onderka/php-parallel-lint": "0.9.*" + }, + "scripts": { + "test": [ + "parallel-lint . --exclude vendor" + ] + } + +} diff --git a/i18n/fr.json b/i18n/fr.json new file mode 100644 index 0000000..a1d4df1 --- /dev/null +++ b/i18n/fr.json @@ -0,0 +1,16 @@ +{ + "@metadata": { + "authors": [ + "Wladek92" + ] + }, + "hitcounters-desc": "Fournit les statistiques de consultation par page", + "hitcounters-nviews": "$1 {{PLURAL:$1|consultation|consultations}}", + "popularpages": "Pages les plus populaires", + "hitcounters-pageinfo-views": "Nombre de consultations", + "hitcounters-statistics-header-views": "Statistiques des consultations", + "hitcounters-statistics-views-total": "Total des consultations", + "hitcounters-statistics-views-total-desc": "L'accès aux pages non existantes et aux pages spéciales ne sont pas inclus", + "hitcounters-statistics-views-peredit": "Nombre de consultations par édition", + "hitcounters-statistics-mostpopular": "Pages les plus consultées" +} diff --git a/i18n/zh-hant.json b/i18n/zh-hant.json index 766938b..b3779eb 100644 --- a/i18n/zh-hant.json +++ b/i18n/zh-hant.json @@ -4,8 +4,13 @@ "Cwlin0416" ] }, + "hitcounters-desc": "提供面個頁面的檢視統計資訊", + "hitcounters-nviews": "$1 次{{PLURAL:$1|檢視|檢視}}", "popularpages": "熱門頁面", "hitcounters-pageinfo-views": "檢視次數", + "hitcounters-statistics-header-views": "檢視統計資訊", "hitcounters-statistics-views-total": "檢視總計", + "hitcounters-statistics-views-total-desc": "檢視次數不包含不存在頁面與特殊頁面", + "hitcounters-statistics-views-peredit": "每次編輯檢視次數", "hitcounters-statistics-mostpopular": "被最多人檢查的頁面" } diff --git a/package.json b/package.json new file mode 100644 index 0000000..e74f430 --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "scripts": { + "test": "grunt test" + }, + "devDependencies": { + "grunt": "0.4.5", + "grunt-cli": "0.1.13", + "grunt-banana-checker": "0.2.2", + "grunt-jsonlint": "1.0.4" + } +} -- To view, visit https://gerrit.wikimedia.org/r/227439 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I395203bfdaeb7b286cd5666cbb9e82d993a16aec Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/HitCounters Gerrit-Branch: master Gerrit-Owner: Paladox <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
