Welcome,
Guest
|
|
Hi
I am using Easy Language plugin on my site, in combination with the patch that prevents redirect to the homepage when a user clicks the flag icon. This has been working great, but after upgrade to Joomla 3.4 the language switcher is not working anymore. It seems to me that the patch file is not compatible with Joomla 3.4? Can this be checked? Yannick |
Last Edit: 02 Aug 2015 17:54 by Yannick Vercammen.
The administrator has disabled public write access.
|
|
Any feedback on this issue?
|
The administrator has disabled public write access.
|
|
i got the same Problem since i use joomla 3.4.5
|
The administrator has disabled public write access.
|
|
In the end I modified the file /modules/mod_languages/tmpl/default.php, by adding some str_replace() statement the language tag in the URL is changed by the correct one.
This solution is far from elegant, but it seems to work. If anyone is interested in the code of this hack, send me a PM. |
The administrator has disabled public write access.
The following user(s) said Thank You: minista
|
|
There is no PM-Functionality here, as far as i can see. Could u pls upload your hack here? Im really interested in.
Thank you |
The administrator has disabled public write access.
|
|
After the line
<li class="<?php echo $language->active ? 'lang-active' : '';?>" dir="<?php echo JLanguage::getInstance($language->lang_code)->isRtl() ? 'rtl' : 'ltr' ?>"> I added the following code to switch between dutch and english: <?
if($language->lang_code == 'nl-NL')
{
echo '<a href="'.str_replace('/en/','/nl/',$language->link).'">';
}
else if($language->lang_code == 'en-GB')
{
echo '<a href="'.str_replace('/nl/','/en/',$language->link).'">';
}
?>
As I already mentioned, maybe not very elegant but it's functional. I don't know whether this influences search engine indexing of the URL's. Finally, note that the modification might get overridden during a Joomla update. |
The administrator has disabled public write access.
|
If you not change browser settings, you agree to it. Learn more