Method |
Description |
|
__construct ( string $locale, Symfony\Component\Translation\MessageSelector $selector ) |
Constructor. |
|
addLoader ( string $format, Symfony\Component\Translation\Loader\LoaderInterface $loader ) |
Adds a Loader. |
|
addResource ( string $format, mixed $resource, string $locale, string $domain = 'messages' ) |
Adds a Resource. |
|
getLocale ( ) |
|
|
setFallbackLocale ( string $locale ) |
Sets the fallback locale. |
|
setLocale ( $locale ) |
|
|
trans ( $id, array $parameters = [], $domain = 'messages', $locale = null ) |
|
|
transChoice ( $id, $number, array $parameters = [], $domain = 'messages', $locale = null ) |
|
|