CurrencyBundle::getLocales()

string[] getLocales() Returns the list of locales that this bundle supports. Return Value string[] A list of locale codes.

CurrencyBundle::getFractionDigits()

getFractionDigits($currency) Data provider for {@link \Symfony\Component\Intl\Currency::getFractionDigits()}. Parameters $currency

CurrencyBundle::getCurrencySymbol()

string|null getCurrencySymbol(string $currency, string $displayLocale = null) Returns the symbol used for a currency. Parameters string $currency A currency code (e.g. "EUR"). string $displayLocale Optional. The locale to return the result in. Defaults to {@link \Locale::getDefault()}. Return Value string|null The currency symbol or NULL if not found.

CurrencyBundle::getCurrencyNames()

string[] getCurrencyNames(string $displayLocale = null) Returns the names of all known currencies. Parameters string $displayLocale Optional. The locale to return the names in. Defaults to {@link \Locale::getDefault()}. Return Value string[] A list of currency names indexed by currency codes.

CurrencyBundle::getCurrencyName()

string|null getCurrencyName(string $currency, string $displayLocale = null) Returns the name of a currency. Parameters string $currency A currency code (e.g. "EUR"). string $displayLocale Optional. The locale to return the name in. Defaults to {@link \Locale::getDefault()}. Return Value string|null The name of the currency or NULL if not found.

CurrencyBundle

class CurrencyBundle extends CurrencyDataProvider implements CurrencyBundleInterface Default implementation of {@link CurrencyBundleInterface}. Constants INDEX_SYMBOL INDEX_NAME INDEX_FRACTION_DIGITS INDEX_ROUNDING_INCREMENT Methods __construct(string $path, BundleEntryReaderInterface $reader, LocaleDataProvider $localeProvider) Creates a new currency bundle. getCurrencies() from CurrencyDataProvider getSymbol($currency, $displayLocale = null) from CurrencyD

Currency

class Currency extends Constraint Constants DEFAULT_GROUP The name of the group given to all constraints with no explicit group. CLASS_CONSTRAINT Marks a constraint that can be put onto classes. PROPERTY_CONSTRAINT Marks a constraint that can be put onto properties. NO_SUCH_CURRENCY_ERROR Properties mixed $payload Domain-specific data attached to a constraint. from Constraint array $groups The groups that the constraint belongs to from Constraint $message Methods sta

CsvFileLoader

class CsvFileLoader extends FileLoader CsvFileLoader loads translations from CSV files. Methods MessageCatalogue load(mixed $resource, string $locale, string $domain = 'messages') Loads a locale. from FileLoader setCsvControl(string $delimiter = ';', string $enclosure = '"', string $escape = '\\') Sets the delimiter, enclosure, and escape character for CSV. Details MessageCatalogue load(mixed $resource, string $locale, string $domain = 'messages')

CsvFileDumper::setCsvControl()

setCsvControl(string $delimiter = ';', string $enclosure = '"') Sets the delimiter and escape character for CSV. Parameters string $delimiter delimiter character string $enclosure enclosure character

CsvFileDumper::formatCatalogue()

string formatCatalogue(MessageCatalogue $messages, string $domain, array $options = array()) Transforms a domain of a message catalogue to its string representation. Parameters MessageCatalogue $messages string $domain array $options Return Value string representation