By Vladimir on Monday, 09 June 2014
Posted in Technical Issues
Replies 7
Likes 0
Views 531
Votes 0
Hey guys!
Please pay attention to this language bug - figure attached !!
While in the main content area and static modules, national language is loaded fine (green arrows in the figure), in the popups it falls back to English!! The same for the 'Load More' content (red arrows in the figure).
Please fix it for the nearest release or point me to a quick solution, or both
Thanks!
Hello Vladimir,

I believe you did not enable the "System - Language" plugin. What language switcher are you using for the site?
·
Monday, 09 June 2014 02:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Mark!

You seem to point me to the right direction, because I use my custom SEF URI plugin which loads language files while parsing a URI.
I can't enable Joomla! standard Laguage switcher because it conflicts with my custom plugin. But I certainly can modify any code needed!

In case of Russian language the code looks like:

$lang = JFactory::getLanguage();
$lang->setLanguage('ru-RU');
$lang->load();

As you can see in the screen shot, it works fine with the static data. So what should I add to it for the popups?
·
Tuesday, 10 June 2014 01:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Vladimir,

I guess the problem is because, we need to pass in the "language" code when AJAX requests are made and if you are using the language switcher in Joomla, it will automatically send the language code based on the selected language (when language switcher is activated). I think you will need to hack the codes in order for you to send the proper language over. You can take a look at the file /media/foundry/4.0/joomla/configuration.php at line 492

But I honestly think that the Language switcher plugin should be enabled as it would be less hassle.
·
Tuesday, 10 June 2014 02:24
·
0 Likes
·
0 Votes
·
0 Comments
·
OK, I'll try to work it out this night, I'll reply if it gives me a result after modifying the file you've pointed to!
·
Tuesday, 10 June 2014 02:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Sure, let us know how this goes
·
Tuesday, 10 June 2014 09:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Mark,

It has no effect - I changed that line to "lang" => 'ru' or "lang" => 'ru-RU' , that variable is being set correctly in the Foundry object - but it has no effect to the popup language!!
Maybe you could point me to a solution how I can manipulate the foundry class at runtime?
·
Tuesday, 17 June 2014 17:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Vladimir,

Perhaps you want to take a look at the library file at /administrator/components/com_easysocial/includes/ajax/ajax.php at the method listen . But really, i don't see why this should be that complicated at all :x I think the reason why the language isn't taking effect is because Joomla's system plugin was not enabled and it wasn't listening on the "lang" query in the parameters.
·
Wednesday, 18 June 2014 00:52
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post