jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/386450 )
Change subject: Add grunt-jsonlint and grunt-banana-checker
......................................................................
Add grunt-jsonlint and grunt-banana-checker
Removed empty translation from fr.json to make banana pass
jsonlint and banana-checker will test for valid i18n files
Bug: T94547
Change-Id: Ib41a0e5b2ab0d302e50d1a17bac165e89f9c737a
---
M .gitignore
A Gruntfile.js
M i18n/fr.json
A package.json
4 files changed, 34 insertions(+), 3 deletions(-)
Approvals:
Umherirrender: Looks good to me, approved
jenkins-bot: Verified
diff --git a/.gitignore b/.gitignore
index 98b092a..e7eb7e3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,6 @@
*~
*.kate-swp
.*.swp
+/node_modules
+/vendor
+/composer.lock
diff --git a/Gruntfile.js b/Gruntfile.js
new file mode 100644
index 0000000..f6f1804
--- /dev/null
+++ b/Gruntfile.js
@@ -0,0 +1,20 @@
+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/i18n/fr.json b/i18n/fr.json
index 9c42e7d..fc55593 100644
--- a/i18n/fr.json
+++ b/i18n/fr.json
@@ -16,15 +16,12 @@
"namespaces_default_1_intro": "utilisé comme préfixe du titres affichés
aux pages du wiki",
"namespaces_canonical": "Canonical",
"namespaces_canonical_intro": "Pas utilisé",
- "namespaces_canonical_1_intro": "",
- "namespaces_canonical_0_intro": "",
"namespaces_intro_footer": "Voyez [[mw:Help:Namespaces|Namespaces]] et
[[mw:Manual:Namespace|instructions aux administrateurs]] chez
[http://www.mediawiki.org/wiki/Namespaces MediaWiki.org] pour plus
d'informations.",
"namespaces_1": "oui",
"namespaces_0": "non",
"namespaces_error": "La table des namespaces est vide.",
"namespaces_edit": "Modifier",
"namespaces_reasonfield": "Motif",
- "namespaces_defaultreason": "",
"namespaces_delquestion": "Suppression de « $1 »",
"namespaces_deleting": "Vous effacez présentement l'espace nominal « $1
».",
"namespaces_deleted": "« $1 » a été enlevé avec succès des « namespaces
».",
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..10fa9bc
--- /dev/null
+++ b/package.json
@@ -0,0 +1,11 @@
+{
+ "private": true,
+ "scripts": {
+ "test": "grunt test"
+ },
+ "devDependencies": {
+ "grunt": "1.0.1",
+ "grunt-banana-checker": "0.6.0",
+ "grunt-jsonlint": "1.1.0"
+ }
+}
--
To view, visit https://gerrit.wikimedia.org/r/386450
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib41a0e5b2ab0d302e50d1a17bac165e89f9c737a
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/SpecialNamespaces
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>
Gerrit-Reviewer: Hashar <[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