Manage translations.
More...
|
static | transCallable ($callback, $id, array $parameters=array(), $domain=null, $locale=null) |
|
static | doChoice ($message, array $choice, array $parameters=[]) |
| Inspired by \Symfony\Contracts\Translation\TranslatorTrait$trans.
|
|
Manage translations.
Use the start method to start the Manager, after starting the cache manager Ubiquity\translation$TranslatorManager This class is part of Ubiquity
- Author
- jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
- Version
- 1.0.6
Definition at line 20 of file TranslatorManager.php.
◆ doChoice()
static doChoice |
( |
|
$message, |
|
|
array |
$choice, |
|
|
array |
$parameters = [ ] |
|
) |
| |
|
staticprotected |
Inspired by \Symfony\Contracts\Translation\TranslatorTrait$trans.
- Parameters
-
string | $message | |
array | $choice | |
array | $parameters | |
- Returns
- string
Definition at line 71 of file TranslatorManager.php.
◆ transCallable()
static transCallable |
( |
|
$callback, |
|
|
|
$id, |
|
|
array |
$parameters = array () , |
|
|
|
$domain = null , |
|
|
|
$locale = null |
|
) |
| |
|
staticprotected |
- Parameters
-
callable | $callback | |
string | $id | |
array | $parameters | |
string | $domain | |
string | $locale | |
- Returns
- string
Definition at line 35 of file TranslatorManager.php.
◆ $catalogues
◆ $fallbackLocale
◆ $loader
◆ $locale
The documentation for this class was generated from the following file:
- C:/Users/myadd/Documents/GitHub/ubiquity-doc-api/vendor/phpmv/ubiquity/src/Ubiquity/translation/TranslatorManager.php