Class JLanguageHelper

Description

Language helper class

  • since: 11.1

Located in /libraries/joomla/language/helper.php (line 19)


	
			
Method Summary
static array createLanguageList (string $actualLanguage, [string $basePath = JPATH_BASE], [boolean $caching = false], [array $installed = false])
static string detectLanguage ()
static array getLanguages ([string $key = 'default'])
Methods
static method createLanguageList (line 33)

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

  • return: List of system languages
  • since: 11.1
  • access: public
static array createLanguageList (string $actualLanguage, [string $basePath = JPATH_BASE], [boolean $caching = false], [array $installed = false])
  • string $actualLanguage: Client key for the area
  • string $basePath: Base path to use
  • boolean $caching: True if caching is used
  • array $installed: An array of arrays (text, value, selected)
static method detectLanguage (line 79)

Tries to detect the language.

  • return: locale or null if not found
  • since: 11.1
  • access: public
static string detectLanguage ()
static method getLanguages (line 127)

Get available languages

  • return: An array of published languages
  • since: 11.1
  • access: public
static array getLanguages ([string $key = 'default'])
  • string $key: Array key

Documentation generated on Mon, 25 Jun 2012 13:55:33 -0500 by phpDocumentor 1.4.4