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
string
Client key for the area- $basePath
string
Base path to use- $caching
boolean
True if caching is used- $installed
array
An array of arrays (text, value, selected)
Response
array
List of system languages
detectLanguage
Tries to detect the language.
detectLanguage() : string
static
since |
11.1 |
---|
Response
string
locale or null if not found
getLanguages
Get available languages
getLanguages(string $key = 'default') : array
static
since |
11.1 |
---|
Arguments
- $key
string
Array key
Response
array
An array of published languages