How to set front page so new users lands on a specific language (change default language not working)?

Events happening in the community are now at Drupal community events on www.drupal.org.
mrmillion's picture

How do I change the default front page to land on a specific language? Do I need to change the default site language or can I just change the default front page?

I've built a multilingual site in English, French, German and Spanish. I have set English as the default language and built the site in this. However, my client has now told me that new users must land on the Spanish home page first.

I have changed the default language from English to Spanish (I realise there are issues with this, e.g. menu items needing re-translating, and it is a complete NO as far as i18n sites go. However I don't think I have much choice do I?). The front page and site is still English by default.

So, I tried

a) manually changing the front page to default to /es (in admin/settings/site-information), but it won't allow it.

b) adding an /en extension to the English language and removing the /es one from Spanish, but now my default front page says "mysite.com/en" and I can only add a page or node after the /en extension.

So, my basic problem is this: the site was built with English as the default language. I now need to make sure that any new user who hits mysite.com is presented with the Spanish site first. How can I do this?

Thanks!

Comments

markus_petrux's picture

Look at the top comments in i18nstrings.module, also read the comments in function i18nstrings_translate_langcode().

In summary, you can add a $conf variable in settings.php to tell i18n if default language should also be translated or not.

Related issue in the i18n queue: http://drupal.org/node/676002

Hello, Maybe my module will

pol's picture

Hello,

Maybe my module will help you: http://drupal.org/node/1273954

I'm trying to get feedback from people ;-)

-Pol-

Same in drupal 7.22

bodrin's picture

I have the same problem. A multilingual site in English, French, ... I have started with English as the default language, it has no prefix - http://mysite.com/. For French my prefix is http://mysite.com/fr.
I do not want to change the default language, because you know...
And I want when you go to http://mysite.com/ to see the French front page.

On "Home » Administration » Configuration » System / Default front page" If I try to set the url to fr I get:

"The path 'fr' is either invalid or you do not have access to it."

Please help!

Internationalization

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: