JLanguageHelper
Language helper class
| package |
Joomla.Platform |
|---|---|
| subpackage |
Language |
| since |
11.1 |
Methods
createLanguageList
Builds a list of the system languages which can be used in a select option
createLanguageList(string $actualLanguage, string $basePath = JPATH_BASE, boolean $caching = false, array $installed = false) : array
static
| since |
11.1 |
|---|
Arguments
- $actualLanguage
stringClient key for the area- $basePath
stringBase path to use- $caching
booleanTrue if caching is used- $installed
arrayAn array of arrays (text, value, selected)
Response
arrayList of system languages
detectLanguage
Tries to detect the language.
detectLanguage() : string
static
| since |
11.1 |
|---|
Response
stringlocale or null if not found
getLanguages
Get available languages
getLanguages(string $key = 'default') : array
static
| since |
11.1 |
|---|
Arguments
- $key
stringArray key
Response
arrayAn array of published languages