Hi,

Is there a kind soul who could please give me a clue on why the language selection is not working 100% on http://www.quintadaslagoas.com/ - the menu switches but the pages are shown in English until a second click on the Portuguese language version. It did work correctly in the beginning but I have no idea where it went wrong.

Thanks in advance,

Steen

Comments

valentin@irata.ch’s picture

If you're on the "admin/settings/i18n" (i18n settings page), check the advanced settings. You should find something like:

Content selection mode:
* Only current language and no language
* Only current and default languages and no language
* Only default language and no language
* Only current language
* All content. No language conditions apply
Determines which content to show depending on language.

I must admit that I am a little confused with those options. But the solution may is be here perhaps.

Steen’s picture

Hi,
Thanks for your reply, I have tried the various settings but the problems is the same; English is set to be the default language.

If you hover your mouse over the first link "Quinta das Lagoas" the url is shown as http://www.quintadaslagoas.com/en/node/3

switch to Portuguese language, hover your mouse over the link and the url is shown as
http://www.quintadaslagoas.com/pt/node/3

that page though is also in English but if you click the Portuguese language version again the url is now
http://www.quintadaslagoas.com/pt/node/4 and the language Portuguese.

Unfortunately the menu retract and in order to see it expanded you have to recommence the procedure...

jax’s picture

To make sure that your menu switches to the right node you have to install the i18nmenu module and patch it with this patch:
http://drupal.org/node/76631

Steen’s picture

That does indeed look as the missing piece :-)

I already had the i18menu module installed, now how do I apply the patch?

Do I just insert the text from i18nmenu.patch.txt into the i18n.module at /modules/i18n/ and if so where?

Thanks in advance

jax’s picture

Here's a HOWTO: http://drupal.org/node/60108
Yet it takes some technical skill to do it and even more to figure out what is going wrong if it doesn't work.

For your convenience I've put a patched module online here: http://jax.be/i18n-4.7.0-patched.tar.gz
You can just unzip it over your old installation and it should work.

valentin@irata.ch’s picture

Realy nice from you. I'll install as soon as possible.

Steen’s picture

Thanks again Jax - that fixed the problem!