Hello, everyone;

I installed drupal 6.x. and installed two languages (english and chinese). I also installed language icons, and i18n, locale modules.

when I first configured the site, english is the default language. under this setting, users (visitors or logged in users) can switch language (interface) by clicking the language switch icon. No issue.

However, if I change the default site language to chinese. I found that I can no longer switch language. If I click the language icon, nothing happens. I viewed the source of the html page, and found that the language is always set to chinese.

It seems to me that if the default langauge is not english (I imported chinese after i installed drupal), users (visitors or logged in users) cannot switch language.

is this an issue or I did something wrong?

Comments

elysch’s picture

Have you found a fix or workaround for this?

I think the links for English when it's not the default language should have an "en" somewhere, but they aren't getting it, nor exist.

For example, if my default language is Spanish, the following link shows the Spanish content
http://example.com/
and this link should show the English content:
http://example.com/en/

But that page don't even exist

Ely

elysch’s picture

Hi.

I found that you can add a "prefix" for the English language
1) go to:

http://example.com/admin/settings/language

2) click on "edit" at the English row

3) add "en" into the "Path Prefix" edit box.

Hope it helps.

Ely

pvasili’s picture

I used the "none" at /admin/settings/language/configure and I have the problem #325074: Hard error with locale :(