ondra / gettext-extractor
tool for extracting gettext messages
1.0.2
2025-04-08 10:22 UTC
Requires
- php: >=8.0
- latte/latte: ^3.0
- nette/utils: ^3.0 || ^4.0
- nikic/php-parser: ^4.2
README
Tool for extracting gettext phrases from PHP files and Latte templates. Output is generated as a .pot file.
Fork of voda/gettext-extractor. Implements Latte3 support and more.
Installation
To install gettext-extractor install it with composer:
$ composer require ondra/gettext-extractor
Supported file types
- .php
- .latte (Nette Latte templates)
License
GettextExtractor is licensed under the New BSD License.
Based on code from Karel Klíma and Ondřej Vodáček.