usox / tal-i18n-extract
Extractor for tal i18n translation attributes (port of perls I18NFool cpan package)
0.1.0
2023-12-19 10:34 UTC
Requires
- php: ~8.1.0||~8.2.0||~8.3.0
- ext-dom: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.41
- mikey179/vfsstream: ^1.6
- phpstan/extension-installer: ^1.2
- phpstan/phpstan: ^1.10
- phpstan/phpstan-strict-rules: ^1
- phpunit/phpunit: ^10.5
- rector/rector: ^0.18
This package is auto-updated.
Last update: 2024-10-31 00:32:53 UTC
README
Extract translation keys out of PHPTAL templates.
This is a php port of the I18NFool CPAN perl-package.
Usage
./bin/tal-i18n-extract path-to-file(s).xhtml
All found translation keys will be printed out POT-formatted.
Beware
All templates must contain valid xml and have to define the i18n-namespace (see example).