\Pydio\Core\ServicesLocaleService

Class LocaleService

Summary

Methods
Properties
Constants
getInstance()
setLanguage()
getLanguage()
getConfigMessages()
getMessages()
listAvailableLanguages()
clearMessagesCache()
contributeMessages()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__construct()
getMessagesInstConf()
getMessagesInst()
$instance
$cache
$currentLanguage
N/A

Properties

$cache

$cache : 

Type

$currentLanguage

$currentLanguage : 

Type

Methods

setLanguage()

setLanguage(string  $lang) : void

Set the language in the session

Parameters

string $lang

getLanguage()

getLanguage() : string

Get the language from the session

Returns

string

getConfigMessages()

getConfigMessages(boolean  $forceRefresh = false) : array

Get the list of all "conf" messages

Parameters

boolean $forceRefresh

Refresh the list

Returns

array

getMessages()

getMessages(boolean  $forceRefresh = false) : array

Get all i18n message

Parameters

boolean $forceRefresh

Returns

array

listAvailableLanguages()

listAvailableLanguages() : array

Detect available languages from the core i18n library

Returns

array

clearMessagesCache()

clearMessagesCache() 

Clear the messages cache

contributeMessages()

contributeMessages(  $array) 

Parameters

$array

__construct()

__construct() 

LocaleService constructor.

getMessagesInstConf()

getMessagesInstConf(boolean  $forceRefresh = false) : array

See static method

Parameters

boolean $forceRefresh

Returns

array

getMessagesInst()

getMessagesInst(boolean  $forceRefresh = false) : 

Get i18n messages

Parameters

boolean $forceRefresh

Returns