API16

JLanguage/getKnownLanguages

From Joomla! Documentation

< API16:JLanguage

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Returns a list of known languages for an area


<! removed transcluded page call, red link never existed >

Syntax[edit]

static getKnownLanguages($basePath=JPATH_BASE)
Parameter Name Default Value Description
$basePath JPATH_BASE $basePath The basepath to use

Returns[edit]

array key/value pair with the language file and real name

Defined in[edit]

libraries/joomla/language/language.php

Importing[edit]

jimport( 'joomla.language.language' );

Source Body[edit]

public static function getKnownLanguages($basePath = JPATH_BASE)
{
        $dir = self::getLanguagePath($basePath);
        $knownLanguages = self::_parseLanguageFiles($dir);

        return $knownLanguages;
}


<! removed transcluded page call, red link never existed >

Examples[edit]

Code Examples[edit]