Transport

Transport class Transport implements Swift_Transport (View source) Properties array $plugins The plug-ins registered with the transport.

Translator::__construct()

void __construct(LoaderInterface $loader, string $locale) Create a new translator instance. Parameters LoaderInterface $loader string $locale Return Value void

Translator::__callStatic()

static mixed __callStatic(string $method, array $parameters) Dynamically handle calls to the class. Parameters string $method array $parameters Return Value mixed Exceptions BadMethodCallException

Translator::__call()

mixed __call(string $method, array $parameters) Dynamically handle calls to the class. Parameters string $method array $parameters Return Value mixed Exceptions BadMethodCallException

Translator::transChoice()

string transChoice(string $id, int|array|Countable $number, array $parameters = array(), string $domain = 'messages', string $locale = null) Get a translation according to an integer value. Parameters string $id int|array|Countable $number array $parameters string $domain string $locale Return Value string

Translator::trans()

string|array|null trans(string $id, array $parameters = array(), string $domain = 'messages', string $locale = null) Get the translation for a given key. Parameters string $id array $parameters string $domain string $locale Return Value string|array|null

Translator::setSelector()

void setSelector(MessageSelector $selector) Set the message selector instance. Parameters MessageSelector $selector Return Value void

Translator::setParsedKey()

void setParsedKey(string $key, array $parsed) Set the parsed value of a key. Parameters string $key array $parsed Return Value void

Translator::setLocale()

void setLocale(string $locale) Set the default locale. Parameters string $locale Return Value void

Translator::setFallback()

void setFallback(string $fallback) Set the fallback locale being used. Parameters string $fallback Return Value void