class i18nTextCollector_Writer_RailsYaml implements i18nTextCollector_Writer (View source)

Writes files compatible with i18nRailsYamlAdapter.

Methods

public
bool
write(array $entities, string $locale, string $path)

No description

public
getYaml($entities, $locale)

No description

Details

bool write(array $entities, string $locale, string $path)

No description

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 Director::baseFolder(). Can be overwritten for testing or export purposes.

Return Value

bool success

getYaml($entities, $locale)

No description

Parameters

$entities
$locale