Hello,

Is it possible to set a specific language per alias?

for example i have:
www.site1.com/fr =>French
www.site1.com/de =>Deutsh
www.site1.com/en =>English

www.site2.com/fr =>French
www.site2.com/de =>Deutsh
www.site2.com/en =>English

-----------------------------------------

I would have:
www.site1.com => english
www.site1.fr (alias of www.site1.com) =>french
www.site1.de (alias of www.site1.com) =>deutsh

www.site2.com => english
www.site2.fr (alias of www.site2.com) =>french
www.site2.de (alias of www.site2.com) =>deutsh

---------------------------------------------------------------

Or i am on the wrong way?

Comments

agentrickard’s picture

Project: Domain » Domain Internationalization
Version: 7.x-3.x-dev » 6.x-1.x-dev
Component: - Domain Alias » Code

Short answer: no.

I don't think you can do this without custom code. Core's support for language domains assumes that the language prefix is the subdomain element (e.g. fr.example.com not example.fr). Domain Access aliases treat an alias as an exact copy of the parent domain.

If you tried to do this, you'd end up having to implement hook_url_rewrite_inbound() and some other language negotiation features.

This is a very complex issue and properly belongs to domaini18n.

Barfly’s picture

ok i'm beginner
for now i'll skip this feature ^^

nonsie’s picture

Status: Active » Closed (won't fix)

Closing