Loading the current language in external script - Joomla! Forum - community, help and support


in joomla 2.5 possible current language of visitor in external script this:

code: select all

define('_jexec', 1);
define('jpath_base', realpath(dirname(__file__)));

$mainframe = jfactory::getapplication('site');
$mainframe->initialise();
$jdocument = jfactory::getdocument();
$jdocument->getlanguage();

i couldn't find out how language in joomla 3.3.
the framework loads, language defined 'en'.

is bug in 3.3?

$ mainframe not used in j3 api.

https://api.joomla.org/cms-3/index.html





Comments

Popular posts from this blog

Warning, the Safe Path is not accessible vm3 - Joomla! Forum - community, help and support

uppercase letters in url - Joomla! Forum - community, help and support

Joomla! Update is not offering Joomla 3 - Joomla! Forum - community, help and support