Use logical order of translation command methods

[MAILPOET-1977]
This commit is contained in:
Jan Jakeš
2019-04-19 12:52:24 +02:00
committed by M. Shull
parent 305991ba26
commit 3bce5ed8fa

View File

@@ -113,6 +113,11 @@ class RoboFile extends \Robo\Tasks {
return $compilation_result; return $compilation_result;
} }
function translationsInit() {
// Define WP_TRANSIFEX_API_TOKEN env. variable
return $this->_exec('./tasks/transifex_init.sh');
}
function translationsBuild() { function translationsBuild() {
return $this->_exec('./node_modules/.bin/grunt makepot'. return $this->_exec('./node_modules/.bin/grunt makepot'.
' --gruntfile='.__DIR__.'/tasks/makepot/makepot.js'. ' --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() { function translationsPack() {
return $this->collectionBuilder() return $this->collectionBuilder()
->addCode([$this, 'translationsInit']) ->addCode([$this, 'translationsInit'])
@@ -134,9 +132,11 @@ class RoboFile extends \Robo\Tasks {
->run(); ->run();
} }
function translationsInit() { function translationsPush() {
// Define WP_TRANSIFEX_API_TOKEN env. variable return $this->collectionBuilder()
return $this->_exec('./tasks/transifex_init.sh'); ->addCode([$this, 'translationsInit'])
->taskExec('tx push -s')
->run();
} }
function testUnit(array $opts=['file' => null, 'xml' => false, 'multisite' => false, 'debug' => false]) { function testUnit(array $opts=['file' => null, 'xml' => false, 'multisite' => false, 'debug' => false]) {