Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/voda/gettext-extractor
Extracts gettext phrases from PHP files and Nette Framework templates
https://github.com/voda/gettext-extractor
Last synced: 8 days ago
JSON representation
Extracts gettext phrases from PHP files and Nette Framework templates
- Host: GitHub
- URL: https://github.com/voda/gettext-extractor
- Owner: voda
- License: bsd-3-clause
- Created: 2010-12-09T19:44:12.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2021-10-11T21:41:27.000Z (about 3 years ago)
- Last Synced: 2024-10-13T15:25:49.424Z (23 days ago)
- Language: PHP
- Homepage:
- Size: 145 KB
- Stars: 22
- Watchers: 3
- Forks: 19
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
GettextExtractor
================
Tool for extracting gettext phrases from PHP files and Latte templates. Output is generated as a .pot file.[![Build Status](https://travis-ci.org/voda/gettext-extractor.svg?branch=master)](https://travis-ci.org/voda/gettext-extractor)
[![Latest Stable Version](https://poser.pugx.org/voda/gettext-extractor/v/stable)](https://packagist.org/packages/voda/gettext-extractor)
[![Total Downloads](https://poser.pugx.org/voda/gettext-extractor/downloads)](https://packagist.org/packages/voda/gettext-extractor)
[![License](https://poser.pugx.org/voda/gettext-extractor/license)](https://packagist.org/packages/voda/gettext-extractor)Installation
------------
To install gettext-extractor install it with [composer](https://getcomposer.org/):
`$ composer require --dev voda/gettext-extractor`Alternatively you can download a standalone PHAR file from [releases page](https://github.com/voda/gettext-extractor/releases).
Usage
-----
`./vendor/bin/gettext-extractor [options]`Options:
-h display this help and exit
-oFILE output file, default output is stdout
-lFILE log file, default is stderr
-fFILE file to extract, can be specified several times
-kFUNCTION add FUNCTION to filters, format is:
FILTER:FUNCTION_NAME:SINGULAR,PLURAL,CONTEXT
default FILTERs are PHP and Latte
for SINGULAR, PLURAL and CONTEXT '0' means not set
can be specified several times
-mKEY:VALUE set meta headere.g.: `./vendor/bin/gettext-extractor -o outup/file.pot -f files/to/extract/`
Supported file types
--------------------
* .php
* .latte (Nette Latte templates)License
-------
GettextExtractor is licensed under the New BSD License.Based on code from [Karel Klíma](https://github.com/karelklima/gettext-extractor).