Actions

API15

JLanguage/getKnownLanguages

From Joomla! ドキュメンテーション

Revision as of 03:46, 3 October 2015 by Sync (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Contents

Description

Returns a list of known languages for an area

[<! removed edit link to red link >]

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

Syntax

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

Returns

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

Defined in

libraries/joomla/language/language.php

Importing

jimport( 'joomla.language.language' );

Source Body

function getKnownLanguages($basePath = JPATH_BASE)
{
        $dir = JLanguage::getLanguagePath($basePath);
        $knownLanguages = JLanguage::_parseLanguageFiles($dir);
 
        return $knownLanguages;
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />