Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

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).