Bug 35174: Don't run gulp po commands if po dir is missing
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
2f222c78ef
commit
94d7d97b74
1 changed files with 5 additions and 0 deletions
|
@ -428,6 +428,11 @@ exports.watch = function () {
|
|||
watch(STAFF_CSS_BASE + "/src/**/*.scss", series('staff_css'));
|
||||
};
|
||||
|
||||
if (args['_'][0].match("po:") && !fs.existsSync('misc/translator/po')) {
|
||||
console.log("misc/translator/po does not exist. You should clone koha-l10n there. See https://wiki.koha-community.org/wiki/Translation_files for more details.");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
exports['po:create'] = parallel(...poTypes.map(type => poTasks[type].create));
|
||||
exports['po:update'] = parallel(...poTypes.map(type => poTasks[type].update));
|
||||
exports['po:extract'] = parallel(...poTypes.map(type => poTasks[type].extract));
|
||||
|
|
Loading…
Reference in a new issue