====== getLang ====== {#JAPI Joomla.Framework Document JDocument::getLang #} Gets the language of the current document. ===== Syntax ===== string getLang () ===== Examples ===== This example displays the language code for the current document. global $mainframe; $document = &JFactory::getDocument(); echo "Language: " . $document->getLang(); Might produce: Language: en