Suggestion for language override

Multisites manager and data sharing solution for Joomla!
Forum rules
This forum is not for any support questions/issues/features. Please use Support Center for such requests.
Post Reply
wbobteng
Posts: 2
Joined: August 27th, 2015, 4:16 pm

Suggestion for language override

Post 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
User avatar
Admin
Site Admin
Site Admin
Posts: 1078
Joined: October 21st, 2008, 6:39 pm
Name: Administrator
Browser: Chrome

Re: Suggestion for language override

Post by Admin »

Which version do you have? There are no problems with language override.
wbobteng
Posts: 2
Joined: August 27th, 2015, 4:16 pm

Re: Suggestion for language override

Post by wbobteng »

version: 3.3.2

I think instated of using plain code better to add those in a hook/event.
User avatar
Admin
Site Admin
Site Admin
Posts: 1078
Joined: October 21st, 2008, 6:39 pm
Name: Administrator
Browser: Chrome

Re: Suggestion for language override

Post by Admin »

Please update to recent version.
Matthenry3
Posts: 2
Joined: September 24th, 2018, 9:49 pm
Name: Matt Henry
Browser: Chrome
Contact:

Re: Suggestion for language override

Post 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!
Post Reply