Hello,

I wanted to add a multilanguage feature to my site, but I can't change the language interface with Language switcher block. I used core module Locale (6.19) and I have 4 virtual sites. On the first main site I noticed, that it works (when I click on another language, everything will change), but on another virtual site, when I click on another language, only node will change, but not the others strings (like admin menu or other context). The dev version doesn't help. Is there a way, how to patch it? Thank you.

Comments

dpatte’s picture

it seems to work for me at www.dance-ottawa.com. I have several virtual sites that are multilingual.

kyberman’s picture

Priority: Critical » Normal

Thank you, that is great news. I have not found any solution before, so I finally used Domain Access and it works correctly.

Anonymous’s picture

having the same problems here. suddenly the interface doesn't switch to anything else than engl. will try domain access.

Nuno Ricardo Da Silva’s picture

Version: 6.x-1.3 » 7.x-1.x-dev

Hello.

Anyone found a solution to this issue? I'm facing the same problem.

Thanks

djg_tram’s picture

As it used to be a 6.x thread, I never really looked into it in the 7.x version. I'll set up some tests now for this.

Nuno Ricardo Da Silva’s picture

djg_tram, please let us know when you have news!
Thanks

reswild’s picture

Issue summary: View changes

...

reswild’s picture

Sorry, I accidentally hit the wrong button before. Here is what I was going to comment:

The problem is that language settings are overridden on a per virtual site basis. You can choose the language for the virtual site under "Common settings", but there ought to be an option for multilanguage here.

For a quick fix, just comment out the section for changing language in virtual_site_common.module (lines 130 to 135).

Anonymous’s picture

This still seems to be an issue. I also am unable to save the translations for site name and site slogan using Virtual Sites. It just does not save them.

Anonymous’s picture

The site name issue does not go away when using the quick fix from #8

Anonymous’s picture

As there doesn't seem to be much life in this module, I switched from Virtual Sites to Domain Access plus Domain Variable. Makes it all work.

cgmonroe’s picture

Had the same problem and found a 1 line solution. Basically added a "Multilingual" option with 'none' as the language value in the virtual_sites_commons.module. If the virtual site's defined language setting is not a valid language, the current language is used.

Attached is a patch to fix this.

FYI - The reason commenting the option out does not work is because the language is probably set already in the database. This patch will let you reset it to none and have the language switcher work.

cgmonroe’s picture

Status: Active » Needs review
adamps’s picture

Assigned: Unassigned » adamps
Status: Needs review » Reviewed & tested by the community

Looks good to me. I've just volunteered to be a maintainer for the module and will try to bring it back to a more active state. I'll commit your patch and try to create a new release soon.

kyberman’s picture

Status: Reviewed & tested by the community » Closed (outdated)