I really don't know for whatever reason this happens, but the "redirect to localized front page" option redirects only once and stores this first time redirection in a session variable to avoid subsequent redirects.

Q: Why would I want to see a front page in a language that I don't understand?

Any use-cases out there?

Patch is only temporary, to outline this bug.

#1 translatable-DRUPAL-5.patch6.11 KBsun
translatable.frontpage.patch767 bytessun
Members fund testing for the Drupal project. Drupal Association Learn more


sun’s picture

Status: Needs review » Fixed
6.11 KB

Additionally, the switch by hostname support does not work at all for anonymous users. Since i18n_get_lang() does not check the hostname to assign the current locale, anonymous users are redirected to the default language/hostname of a site. That is, because translatable_change_uilocale() is invoked by locale_initialize() and contains multiple calls to translatable_get_locale(), which in turn returns NULL, since $locale has not been set yet.

I've committed attached patch to fix these issues.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.