The following code might be useful to you if you want to get the current language in your custom component/module/plugin.
It will get the current language that is active on the website:
$lang =& JFactory::getLanguage();
echo "The current language is:". $lang->getName();
If you are learning to develop your own Joomla component, module or plugin, the following book is a must have.
You can get it for cheap on Amazon.
No comments:
Post a Comment