Actions

API16

JLanguage/setLanguage

< 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

Set the language attributes to the given language


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

Syntax

setLanguage($lang)
Parameter Name Default Value Description
$lang $lang Language code

Returns

string Previous value

Defined in

libraries/joomla/language/language.php

Importing

jimport( 'joomla.language.language' );

Source Body

public function setLanguage($lang)
{
        $previous                       = $this->_lang;
        $this->_lang            = $lang;
        $this->_metadata        = $this->getMetadata($this->_lang);
 
        return $previous;
}


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

Examples

Code Examples


Advertisement