references:joomla.framework:document:jdocument-setlangsetLang
Sets the global document language declaration. The default is English. Syntaxvoid setLang ( $lang )
ExamplesSet the language of the current document. Example global $mainframe; $document =& JFactory::getDocument(); $document->setLang( 'en-US' ); echo "Language: " . $document->getLang(); Might produce: Result Language: en-US |


