Skip to content

Commit

Permalink
ttag extract from resources path too (#75)
Browse files Browse the repository at this point in the history
* feat: ttag extract from resources path too

* fix: phpstan

* feat: update bedita_version in php workflow
  • Loading branch information
didoda authored Nov 15, 2022
1 parent a1978e8 commit 5a8592d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
uses: bedita/github-workflows/.github/workflows/php-unit.yml@v1
with:
php_versions: '["7.4","8.0","8.1"]'
bedita_version: '4.7.1'
bedita_version: '4.8.0'

unit-5:
uses: bedita/github-workflows/.github/workflows/php-unit.yml@v1
with:
php_versions: '["7.4","8.0","8.1"]'
bedita_version: '5.0.2'
bedita_version: '5.0.10'
4 changes: 4 additions & 0 deletions src/Command/GettextCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,10 @@ private function ttagExtract(Arguments $args, ConsoleIo $io): void

return;
}
// Path to the resources directory defined in cakephp app config/paths.php
if (defined('RESOURCES') && file_exists(RESOURCES)) {
$appDir = sprintf('%s %s', $appDir, RESOURCES);
}

// do extract translation strings from js files using ttag
$io->out('Extracting translation string from javascript files using ttag');
Expand Down

0 comments on commit 5a8592d

Please sign in to comment.