Class

Symfony\Component\Translation\Loader\CsvFileLoader

class CsvFileLoader extends ArrayLoader implements LoaderInterface

CsvFileLoader loads translations from CSV files.

Methods

MessageCatalogue load(mixed $resource, string $locale, string $domain = 'messages')

Loads a locale.

setCsvControl(string $delimiter = ';', string $enclosure = '"', string $escape = '\\')

Sets the delimiter, enclosure, and escape character for CSV.

Details

at line 34
public MessageCatalogue load(mixed $resource, string $locale, string $domain = 'messages')

Loads a locale.

Parameters

mixed $resource A resource
string $locale A locale
string $domain The domain

Return Value

MessageCatalogue A MessageCatalogue instance

at line 80
public setCsvControl(string $delimiter = ';', string $enclosure = '"', string $escape = '\\')

Sets the delimiter, enclosure, and escape character for CSV.

Parameters

string $delimiter delimiter character
string $enclosure enclosure character
string $escape escape character