PHP Класс Polyglot\Localization\Services\Extractor

Наследование: extends AbstractService
Показать файл Открыть проект

Открытые методы

Метод Описание
generateLocale ( string $locale, boolean $clean = true ) : string Generate the files for a locale
getFiles ( ) : Finder Get the views translations are in
getLocaleFile ( string $locale ) : string Get the path to a locale's PO file
setHeaders ( string $file, $locale ) Set headers in a PO file

Защищенные методы

Метод Описание
extract ( array $translated ) : TwigExtractor Get the TwigExtractor instance
runGettext ( array $arguments ) : integer Run gettext with the specified arguments

Описание методов

extract() защищенный Метод

Get the TwigExtractor instance
protected extract ( array $translated ) : TwigExtractor
$translated array
Результат TwigExtractor

generateLocale() публичный Метод

Generate the files for a locale
public generateLocale ( string $locale, boolean $clean = true ) : string
$locale string
$clean boolean
Результат string

getFiles() публичный Метод

Get the views translations are in
public getFiles ( ) : Finder
Результат Symfony\Component\Finder\Finder

getLocaleFile() публичный Метод

Get the path to a locale's PO file
public getLocaleFile ( string $locale ) : string
$locale string
Результат string

runGettext() защищенный Метод

Run gettext with the specified arguments
protected runGettext ( array $arguments ) : integer
$arguments array
Результат integer

setHeaders() публичный Метод

Set headers in a PO file
public setHeaders ( string $file, $locale )
$file string