LanguageHelperWrapper

Wrapper class for LanguageHelper

deprecated
since

3.4

deprecated

4.0 Use Joomla\CMS\Language\LanguageHelper directly

Methods

createLanguageList

Helper wrapper method for createLanguageList

createLanguageList(string $actualLanguage, string $basePath = JPATH_BASE, boolean $caching = false, boolean $installed = false) : array
deprecated
see \Joomla\CMS\Language\LanguageHelper::createLanguageList
since

3.4

deprecated

4.0 Use Joomla\CMS\Language\LanguageHelper directly

Arguments

$actualLanguage

stringClient key for the area.

$basePath

stringBase path to use.

$caching

booleanTrue if caching is used.

$installed

booleanGet only installed languages.

Response

arrayList of system languages.

detectLanguage

Helper wrapper method for detectLanguage

detectLanguage() : string
deprecated
see \Joomla\CMS\Language\LanguageHelper::detectLanguage
since

3.4

deprecated

4.0 Use Joomla\CMS\Language\LanguageHelper directly

Response

stringlocale or null if not found.

getLanguages

Helper wrapper method for getLanguages

getLanguages(string $key = 'default') : array
deprecated
see \Joomla\CMS\Language\LanguageHelper::getLanguages
since

3.4

deprecated

4.0 Use Joomla\CMS\Language\LanguageHelper directly

Arguments

$key

stringArray key

Response

arrayAn array of published languages.