In Joomla 2.5 it is possible to get the current language of a visitor in an external script like this:
$mainframe = JFactory::getApplication('site'); $mainframe->initialise(); $jdocument = JFactory::getDocument(); $jdocument->getLanguage();
I couldn't find out how to get the language in Joomla 3.3. The framework loads, but the language is always defined as 'en'.
I’ve also tried various other options like:
$japplication = JApplicationWeb::getInstance(); $japplication->initialise();
Did anyone experience the same issue? Is this a Bug?