Added some code to detect localization from Joomla.