[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)

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

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support