class i18nTextCollector_Writer_RailsYaml implements i18nTextCollector_Writer

Writes files compatible with {@link i18nRailsYamlAdapter}.

Methods

Boolean
write(Array $entities, String $locale, String $path)

No description

getYaml($entities, $locale)

No description

Details

at line 753
Boolean write(Array $entities, String $locale, String $path)

Parameters

Array $entities Map of entity names (incl. namespace) to an numeric array, with at least one element, the original string, and an optional second element, the context.
String $locale
String $path The directory base on which the collector should create new lang folders and files. Usually the webroot set through {@link Director::baseFolder()}. Can be overwritten for testing or export purposes.

Return Value

Boolean success

at line 775
getYaml($entities, $locale)

Parameters

$entities
$locale