[SOLVED] Load a particular language by default - Joomla! Forum - community, help and support
hi,
during component installation detect if admin side language supported component. if not, load automatically english language.
to that, added <scriptfile> tag in xml. in preflight() methods of installation class tried following code without success (as component not known @ installation time)
how can make en-gb default language in case of admin site language not supported component ?
thx
during component installation detect if admin side language supported component. if not, load automatically english language.
to that, added <scriptfile> tag in xml. in preflight() methods of installation class tried following code without success (as component not known @ installation time)
code: select all
$lang =& jfactory::getlanguage();
if($lang->gettag() != 'en-gb'){
$extension = 'com_rgtcis';
$base_dir = jpath_administrator;
$language_tag = 'en-gb';
$reload = true;
$lang->load($extension, $base_dir, $language_tag, $reload);
}
how can make en-gb default language in case of admin site language not supported component ?
thx
the same code works now...i'm lost 
Comments
Post a Comment