Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
TranslatorManager Class Reference

Manage translations. More...

Static Protected Member Functions

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.
 

Static Protected Attributes

static $locale
 
static $loader
 
static $catalogues
 
static $fallbackLocale
 

Detailed Description

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.

Member Function Documentation

◆ 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.

Field Documentation

◆ $catalogues

$catalogues
staticprotected

Definition at line 23 of file TranslatorManager.php.

◆ $fallbackLocale

$fallbackLocale
staticprotected

Definition at line 24 of file TranslatorManager.php.

◆ $loader

$loader
staticprotected

Definition at line 22 of file TranslatorManager.php.

◆ $locale

$locale
staticprotected

Definition at line 21 of file TranslatorManager.php.


The documentation for this class was generated from the following file: