diff --git a/RoboFile.php b/RoboFile.php index c13c08b1f8..af0ad1b540 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -113,6 +113,11 @@ class RoboFile extends \Robo\Tasks { return $compilation_result; } + function translationsInit() { + // Define WP_TRANSIFEX_API_TOKEN env. variable + return $this->_exec('./tasks/transifex_init.sh'); + } + function translationsBuild() { return $this->_exec('./node_modules/.bin/grunt makepot'. ' --gruntfile='.__DIR__.'/tasks/makepot/makepot.js'. @@ -120,13 +125,6 @@ class RoboFile extends \Robo\Tasks { ); } - function translationsPush() { - return $this->collectionBuilder() - ->addCode([$this, 'translationsInit']) - ->taskExec('tx push -s') - ->run(); - } - function translationsPack() { return $this->collectionBuilder() ->addCode([$this, 'translationsInit']) @@ -134,9 +132,11 @@ class RoboFile extends \Robo\Tasks { ->run(); } - function translationsInit() { - // Define WP_TRANSIFEX_API_TOKEN env. variable - return $this->_exec('./tasks/transifex_init.sh'); + function translationsPush() { + return $this->collectionBuilder() + ->addCode([$this, 'translationsInit']) + ->taskExec('tx push -s') + ->run(); } function testUnit(array $opts=['file' => null, 'xml' => false, 'multisite' => false, 'debug' => false]) {