Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/usox/tal-i18n-extract
Extractor for tal i18n translation attributes (port of perls I18NFool cpan package)
https://github.com/usox/tal-i18n-extract
i18n i18nfool php phptal tal translation
Last synced: 19 days ago
JSON representation
Extractor for tal i18n translation attributes (port of perls I18NFool cpan package)
- Host: GitHub
- URL: https://github.com/usox/tal-i18n-extract
- Owner: usox
- License: mit
- Created: 2023-12-18T11:58:36.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-19T12:01:15.000Z (about 1 year ago)
- Last Synced: 2024-11-27T21:38:29.095Z (about 1 month ago)
- Topics: i18n, i18nfool, php, phptal, tal, translation
- Language: PHP
- Homepage:
- Size: 40 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tal-i18n-extract
[![Unittests](https://github.com/usox/tal-i18n-extract/actions/workflows/php.yml/badge.svg)](https://github.com/usox/tal-i18n-extract/actions/workflows/php.yml)
Extract translation keys out of [PHPTAL](https://github.com/phptal/PHPTAL) templates.
This is a php port of the [I18NFool](https://metacpan.org/dist/I18NFool) CPAN perl-package.
## Usage
```php
./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).