TagSpaces is an offline, open source, document manager with tagging support
adding task for updating the translations
uggrock09c3702b859c
diff --git a/.tx/config b/.tx/confignew file mode 100644index 000000000..fb3fbaca0--- /dev/null+++ b/.tx/config@@ -0,0 +1,38 @@+[main]+host = https://www.transifex.com++[tagspaces.nscommonjson]+file_filter = data/locales/<lang>/ns.common.json+source_lang = en+type = KEYVALUEJSON++[tagspaces.nsdialogsjson]+file_filter = data/locales/<lang>/ns.dialogs.json+source_lang = en+type = KEYVALUEJSON++[tagspaces.nsperspectivelistjson]+file_filter = data/locales/<lang>/ns.perspectiveList.json+source_lang = en+type = KEYVALUEJSON++[tagspaces.nsviewerimagejson]+file_filter = data/ext/viewerImage/locales/<lang>/ns.viewerImage.json+source_lang = en+type = KEYVALUEJSON++[tagspaces.nsviewermdjson]+file_filter = data/ext/viewerMD/locales/<lang>/ns.viewerMD.json+source_lang = en+type = KEYVALUEJSON++[tagspaces.nsviewerhtmljson]+file_filter = data/ext/viewerHTML/locales/<lang>/ns.viewerHTML.json+source_lang = en+type = KEYVALUEJSON++[tagspaces.messagesjson]+file_filter = data/_locales/<lang>/messages.json+source_lang = en+type = CHROME+diff --git a/Gruntfile.js b/Gruntfile.jsindex 71bd620c6..08078e622 100644--- a/Gruntfile.js+++ b/Gruntfile.js@@ -216,6 +216,9 @@ module.exports = function(grunt) {jsdoc: {command: 'node node_modules/jsdoc/jsdoc.js -c jsdoc.conf.json --verbose',},+ transifexpull: {+ command: 'tx pull -a --disable-overwrite',+ },},compress: {chrome: {@@ -251,13 +254,15 @@ module.exports = function(grunt) {grunt.registerTask('bumpVersion', ['init', 'replace:templates']);grunt.registerTask('default', ['help']);grunt.registerTask('runDav', ['shell:jsdav']),+ grunt.registerTask('updateI18N', ['shell:transifexpull']),grunt.registerTask('generateDocs', ['shell:jsdoc']),grunt.registerTask('help', 'Printing help for this script.', function() {grunt.log.writeln("Supported grunt tasks:");- grunt.log.writeln(" - checkStyle");- grunt.log.writeln(" - runDav");- grunt.log.writeln(" - generateDocs");- grunt.log.writeln(" - bumpVersion");+ grunt.log.writeln(" * checkStyle - checking the javascript files complying with the coding standards");+ grunt.log.writeln(" * runDav - runs the webdav server");+ grunt.log.writeln(" * updateI18N - update the translations");+ grunt.log.writeln(" * generateDocs - generates the javascript docs");+ grunt.log.writeln(" * bumpVersion - update the current version from the packages.json accross the application");});grunt.registerTask('init', 'Initializing variables.', function() {