Benvenuto,
Ospite
|
|
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 |
Ultima modifica: 02/08/2015 17:54 da Yannick Vercammen.
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
|
Any feedback on this issue?
|
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
|
i got the same Problem since i use joomla 3.4.5
|
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
|
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. |
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
I seguenti utenti ringraziano:: 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 |
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
|
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. |
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
Facendo click su qualunque link della pagina si accetta il loro utilizzo. Per saperne di piu'