Use logical order of translation command methods
[MAILPOET-1977]
This commit is contained in:
20
RoboFile.php
20
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]) {
|
||||
|
Reference in New Issue
Block a user