Hi Brice!

Question regarding how multilingual support works with Subfolders Domain. I see you saying in other Issues that (I think) one Subfolder Domain can correspond to one language -- and one language only. Is this correct?

I'm confused about why this is the case. We use the "Domain Locale" module, which uses the global Locale settings to allow, disallow, and set default languages per domain. When we create a new domain on our site, there is a "Languages" tab that is super easy to use and works with the normal language picker.

Subfolders Domain requires you to choose a language, however, and seems to completely override what's in Domain Locale. If you don't modify the Subfolders Domain settings page at all (and hence there is no language set in the `subfolders_domain` table) everything works really well.

Unfortunately, since "Language" is required, any change there basically breaks language on our site. It seems like the "Language:" setting should be changed to "Force language for this domain:" and should be made optional. The Domain Locale settings are more powerful and comprehensive, I feel, and it seems strange for "Subfolders Domain" module to be involving itself with languages at all.

But maybe I don't understand some part of this?

Thanks!

Comments

brice_gato’s picture

Hi Offlein,
It is strongly recommended to use one and only one language for each domain because of language path prefix problem with this module. The language path prefix are not supported well.

Offlein’s picture

Hello! Thank you.

I'm not sure what you mean by "language path prefix problem" however..

I will take a guess - can you tell me if it's accurate? The guess is:
Subfolders_domain needs to check each path -- for example, site.com/blah -- to see if the first arg is a language code. In my example "blah" is not a language code and so it takes the user to /blah in the default language of the site. If the attempted URL is site.com/fr/blah it should go to "blah" on the French-language version of the site.

With subfolders_domain, shouldn't site.com/domain1/fr/blah just go to the French-language version of /blah on the "domain1" site? What would go wrong? Is it an issue I can fix?

brice_gato’s picture

Hello,

This is exactly what we try to do, but the system of multi-lunguage seemed not interpreted the URL as it should. Since I have not yet had time to fix this problem, it says if you have a little time to make a patch we are makers!

Regards,

Offlein’s picture

Hi Brice,

OK, so I understand that to be the problem then; got it!

Strangely, multi-language seemed to work with our system .. I think. For our stuff, we've simply used hook_form_alter() to make the Language non-required.

But, to improve things for everybody -- if you get a chance please try to describe in detail how to duplicate the problem and I'll see if we can't figure out what's wrong! :)

  • Commit a75bbb7 on 7.x-2.x by brice_gato:
    Issue #2165937 by Offlein : Changed language settings for subforders...
brice_gato’s picture

Status: Active » Closed (fixed)