class JLanguageHelper


Located at : UKNOWVA_ROOT/libraries/joomla/language/helper.php

Methods

static array
createLanguageList($actualLanguage, $basePath = JPATH_BASE, $caching = false, $installed = false)

Builds a list of the system languages which can be used in a select option

static string
detectLanguage()

Tries to detect the language.

static array
getLanguages(string $key = 'default')

Get available languages

Details

at line 31
static array createLanguageList($actualLanguage, $basePath = JPATH_BASE, $caching = false, $installed = false)

Builds a list of the system languages which can be used in a select option

Parameters

$actualLanguage
$basePath
$caching
$installed

Return Value

array List of system languages

at line 75
static string detectLanguage()

Tries to detect the language.

Return Value

string locale or null if not found

at line 120
static array getLanguages(string $key = 'default')

Get available languages

Parameters

string $key Array key

Return Value

array An array of published languages