From 46a8345de21ceaa30d0cf74ae0dec4c4488640c5 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Mon, 18 Aug 2014 09:23:15 +0000 Subject: [PATCH] Extract localization strings from js files --- src/gulpfile.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gulpfile.js b/src/gulpfile.js index 5c1690cc..23534515 100644 --- a/src/gulpfile.js +++ b/src/gulpfile.js @@ -165,6 +165,13 @@ gulp.task('generate-pot', function() { {name: 'getlocal'} ] })), + gulp.src(config.jsPath + '/source/**/*.js', {base: config.mibewPath}) + .pipe(xgettext({ + language: 'JavaScript', + keywords: [ + {name: 'trans'} + ] + })), gulp.src([ config.chatStylesPath + '/default/templates_src/**/*.handlebars', config.pageStylesPath + '/default/templates_src/**/*.handlebars'