LocaleBundleTransformationRule

class LocaleBundleTransformationRule implements TransformationRuleInterface The rule for compiling the locale bundle. Methods __construct() string getBundleName() Returns the name of the compiled resource bundle. string[] beforeCompile(CompilationContextInterface $context) Runs instructions to be executed before compiling the sources of the resource bundle. afterCompile(CompilationContextInterface $context) Runs instructions to be executed after compiling the sources of t

LocaleBundleInterface::getLocaleNames()

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

LocaleBundleInterface::getLocaleName()

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

LocaleBundleInterface

interface LocaleBundleInterface implements ResourceBundleInterface Gives access to locale-related ICU data. Methods string[] getLocales() Returns the list of locales that this bundle supports. from ResourceBundleInterface string|null getLocaleName(string $locale, string $displayLocale = null) Returns the name of a locale. string[] getLocaleNames(string $displayLocale = null) Returns the names of all known locales. Details string[] getLocales()

LocaleBundle::getLocales()

getLocales()

LocaleBundle::getLocaleNames()

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

LocaleBundle::getLocaleName()

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

LocaleBundle

class LocaleBundle extends LocaleDataProvider implements LocaleBundleInterface Default implementation of {@link LocaleBundleInterface}. Methods __construct(string $path, BundleEntryReaderInterface $reader) Creates a data provider that reads locale-related data from .res files. from LocaleDataProvider getLocales() getAliases() from LocaleDataProvider getName($locale, $displayLocale = null) from LocaleDataProvider getNames($displayLocale = null) from LocaleDataProvide

Locale::setDefaultFallback()

static setDefaultFallback(string $locale) Sets the default fallback locale. The default fallback locale is used as fallback for locales that have no fallback otherwise. Parameters string $locale The default fallback locale See also getFallback()

Locale::setDefault()

static bool setDefault(string $locale) Not supported. Sets the default runtime locale. Parameters string $locale The locale code Return Value bool true on success or false on failure Exceptions MethodNotImplementedException See also http://www.php.net/manual/en/locale.setdefault.php