AlterBrains • Suggestion for language override
Page 1 of 1

Suggestion for language override

Posted: June 21st, 2018, 1:54 pm
by wbobteng
Hello,

I am working with this extension & found problem about language override. I saw it's taking the default Joomla language instated of changed language by module. I have checked the code & found that the overriding code hasn't been written under any event. So, I have added those code under

Code: Select all

onAfterDispatch()
event & it started working.

Code: Select all

public function onAfterDispatch(){
// Lost database handler?
// here goes database

$lang = JFactory::getLanguage();
$config = JFactory::getConfig();

if ($config->get('mighty_langoverride')){
 // our code
}

}


I ain't sure but above changes worked for me :)

Thanks

Re: Suggestion for language override

Posted: June 22nd, 2018, 2:46 am
by Admin
Which version do you have? There are no problems with language override.

Re: Suggestion for language override

Posted: June 22nd, 2018, 3:25 am
by wbobteng
version: 3.3.2

I think instated of using plain code better to add those in a hook/event.

Re: Suggestion for language override

Posted: June 23rd, 2018, 7:32 am
by Admin
Please update to recent version.

Re: Suggestion for language override

Posted: September 24th, 2018, 9:52 pm
by Matthenry3
I am a newbie here. I would like to know more about this extension. As the OP said already. Update your version. Good luck!