Language negotiation - domain only

polishyourimage's picture

Greetings!

This is my first post and question to this group.

I've seen many subdomain examples of domain only language negotiation, but no examples using an entirely different domain name, i.e. instead of http://dk.mysite.com/ I would like to use http://www.mysite.dk/. Is this possible?

I am creating two multilingual sites in drupal and one client has already purchased the additional domain names.

Login or register to post comments

I'm not familiar with the

Tshering - Fri, 2008-07-11 17:09

I'm not familiar with the localization on Drupal 6.x, but under Drupal 5.x depending on the assisting module it is possible.

With i18n, to the best of my knowledge, it is not possible to do language negotiation based on domain or subdomain. However, with the localizer module, it simply asks you what domain name (sub or otherwise) belongs to which language. So... yes. :)

(I imagine that Drupal 6.x works in the same way)

-KT


sites + settings

toemaz's picture
toemaz - Sun, 2008-07-13 20:52

A possible solution might be to set all the sites in the drupal/sites/... directory and use settings.php to set a site variable for the language that should be used. Never tried it dough, I just thought this could solve your case.


Possible!

ArjanLikesDrupal - Wed, 2008-07-16 12:09

I'm doing this in Drupal 6. With Locale module you can add languages and specify a domain name for the language instead of the language prefix (admin/settings/language > edit language). At admin/settings/language/configure set language negotiation to 'domain name only'. (In this order, otherwise you break all your sites urls).
But in order for the site to show up only in the one language for that domain, you need i18n: at admin/settings/i18n set Content selection mode to 'Only current language and no language'.

Notice that there are some issues you need to think through:
* You will (probably) need to create a menu for each language (see How to translate Menu items?)
* Virtual Sites module can be of help here: you can set which menu serves the Primary Links for a domain! I have not yet seen many people comment on this module relating to multilingual sites, but it's become a great help for multilingual multidomain sites for me.
* Think about duplicate content. I still had the problem that if you manually enter something like /node/123 on the other domain, content still shows up although it's in another language. These issues are worth reading: Handling missing translations, and I did some modification to deal with the duplicate url problem (Drupal 5).
* This thread here on Internationalization group contains some infos: Learning how to do internationalization.

I think there should be a newbie guide "How to build a multilingual site" explaining some best practices and known problems that you would expect not to be a problem (like the Multilingual menus). Maybe I'll do it when I have some more time on my hand.


Example please

polishyourimage's picture
polishyourimage - Wed, 2008-07-16 12:37

Hey,

Thanks for the comment!

As seeing is believing, would you mind posting your site URL(s) for me to see (one using two different domains for the same site and not just 2 subdomains)?

Jason Graham,

President
POLISH YOUR IMAGE
Graphic Design, Website Design & Engineering, Marketing
http://www.PolishYourImage.com


Well, so far I have it

ArjanLikesDrupal - Wed, 2008-07-16 13:48

Well, so far I have it running on different domains only on my localhost setup. I have a test version running for the organization's people to input content, but that one is running on 3 subdomains of just one top level domain (due to the hosting plan). I have plans to put this site live this Saturday, if you want to wait to see ;) I am confident it'll work on server too...
That'll be my first Drupal site, btw :)


postponed

ArjanLikesDrupal - Tue, 2008-07-22 13:25

Hm well the site's live date has been pushed back to somewhere (mid?)september, in order to place more content and do some more theming (in case anyone was wondering).


Requirements to build chakana

cpo - Tue, 2009-09-08 09:23

Nice multilanguage with different access domain. Maybe you can give somes informations to help us.


Page Not Found on Language negotiation - domain only

hacmx - Wed, 2010-02-10 19:30

i configure my site with Language negotiation - domain only, but when i try to edit a node i have this:

Page Not Found

The page you tried to access does not exist on this server. This page may not exist due to the following reasons:

   1. You are the owner of this web site and you have not uploaded (or incorrectly uploaded) your web site. For information on uploading your web site using FTP client software or web design software, click here for FTP Upload Information.

   2. The URL that you have entered in your browser is incorrect. Please re-enter the URL and try again.

   3. The Link that you clicked on incorrectly points to this page. Please contact the owner of this web site to inform them of this situation.

The message show in both domain (for english and spanish content) when I try to edit a node.

im hosting in godaddy.com

any suggest?