Posted by sun on April 10, 2008 at 3:13am
1 follower
| Project: | #translatable |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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.
| Attachment | Size |
|---|---|
| translatable.frontpage.patch | 767 bytes |
Comments
#1
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.
#2
Automatically closed -- issue fixed for two weeks with no activity.