Translator
class Translator (View source)
Methods
__construct(string $lang, string $directory, $auto_detected = false)
Translator constructor.
static Translator
configure(string $lang, string $directory)
Configure translator
static Translator
getInstance()
Get singleton instance
static bool
isLocale(string $locale)
Check the locale
static string
translate(string $key, array $data = [], bool $plurial = false)
Permet de faire la tranduction
static string
single($key, array $data = [])
No description
static string
pluiral($key, array $data = [])
No description
static
setLocale($locale)
Update locale
static string
getLocale()
Get locale
string
__call($name, $arguments)
__call
Details
__construct(string $lang, string $directory, $auto_detected = false)
Translator constructor.
static Translator
configure(string $lang, string $directory)
Configure translator
static Translator
getInstance()
Get singleton instance
static bool
isLocale(string $locale)
Check the locale
static string
translate(string $key, array $data = [], bool $plurial = false)
Permet de faire la tranduction
static string
single($key, array $data = [])
No description
static string
pluiral($key, array $data = [])
No description
static
setLocale($locale)
Update locale
static string
getLocale()
Get locale
string
__call($name, $arguments)
__call