Loader
class Loader
Methods
Returns the singleton Loader object.
Loads global localizaton functions.
Figure out all possible locale names and start with the most specific ones. I.e. for sr_CS.UTF-8@latin, look through all of sr_CS.UTF-8@latin, sr_CS@latin, sr@latin, sr_CS.UTF-8, sr_CS, sr.
Returns Translator object for domain or for default domain.
Sets the path for a domain.
Sets the default domain.
Sets a requested locale.
Detects currently configured locale.
Details
at line 71
static Loader
getInstance()
Returns the singleton Loader object.
at line 83
static
loadFunctions()
Loads global localizaton functions.
at line 97
static array
listLocales(string $locale)
Figure out all possible locale names and start with the most specific ones. I.e. for sr_CS.UTF-8@latin, look through all of sr_CS.UTF-8@latin, sr_CS@latin, sr@latin, sr_CS.UTF-8, sr_CS, sr.
at line 155
Translator
getTranslator(string $domain = '')
Returns Translator object for domain or for default domain.
at line 196
bindtextdomain(string $domain, string $path)
Sets the path for a domain.
at line 206
textdomain(string $domain)
Sets the default domain.
at line 218
string
setlocale(string $locale)
Sets a requested locale.
at line 237
string
detectlocale()
Detects currently configured locale.
It checks:
- global lang variable
- environment for LC_ALL, LC_MESSAGES and LANG