This is a Drupal 7 site. The multilingual and translation work perfectly previously. However suddenly i realize when i change language using the language switcher, the content does not switch.

For example, I have this node: http://mampu.dynu.com/en/enterprise-architecture/test-language
When i switch to Chinese, the URL supposed to change to http://mampu.dynu.com/cn/enterprise-architecture/test-language
However the URL remain as en version.

On front page, the language switcher works very well. When i am at http://mampu.dynu.com/en, then i use the language switcher change to Chinese, then http://mampu.dynu.com/cn
The language switcher does not work with node URL.

Basically I have tried every possible, but no luck at all.

Anyone know what is the reason behind? Really appreciate if someone can give suggestions.

Comments

XandieL’s picture

you can check the markup of the language switcher in that page, maybe you can have a preprocess to change the mark up if it really doesnt change

I like the universe, but she messes with my words
I'm not talking planets or galaxies and the distance just makes it worse.
I know what you're thinking, this probably sounds rehearsed.

kcsimcity1’s picture

Please slightly explain how should i do it exactly?

Thanks.

kcsimcity1’s picture

Please take a look on this URL as sample: http://mampu.dynu.com/bm/enterprise-architecture/test-bm

When i choose English, the language switcher will jump back to its original language which is BM. This happens to other language.

I found that, when the switcher does not change language. However, although i manually change the URL language suffix, the URL will change back to original URL automatically.

Thank you all.

Regards,
SIM

kcsimcity1’s picture

Hi All,

Referring to my description on 1st comment, the problem has been solved.

The problem is actually caused by Global Redirect. In this module there is a setting named "Language Path Checking". You need to uncheck this checkbox in order for your translation work. Otherwise when you switch to other languages, it will be always redirected to the URL of default language.

Thank you.

Regards,
SIM