Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By xqi on
in drupal 5, this was so easy. i just enabled english as default language for my admin account but default language for the site is Chinese.
it seems, in drupal 6, i can not do this any more.
I have tried to set
1. Default Language is Chinese.
2. "Path prefix with language fallback"
3. Prefix for English is "en"
4. No prefix for Chinese.
however, the default language to anonymous users is still English without any prefix.
Could anyone tell me, is there anything i did wrong? or this is a problem for everyone?
Thanks!
Comments
i want to do the something,
i want to do the something, anyone got advise?
Same problem
I encountered the same problem for Chinese, but also with other languages which have a dash in the iso code like pt-pt, pt-br, zh-hans, ... Looking for an answer as well.
solution
Solution: http://drupal.org/node/365615
D6 solution
Backport from D7 patch to D6
Edit: updated for #53
Is this working
There's not feedback from anyone on this. I'm wondering if anyone has any experiences to share. We're going to try and implement so I'll let you know what happens.
This patched worked for IE problem in D6
Yes, this patched worked fine for me. I don't understand why this isn't ported to the latest D6 release. The issue is that IE sends a particular language code in HTTP_ACCEPT_LANGUAGE (i.e. 'en-US') but does not send the corresponding generic code (i.e. 'en'). This modification to includes/language.inc works for me in this cases.
Correction to my previous
Correction to my previous statement: this patch solves http://drupal.org/node/221712 but I can't tell you if it solves this particular issue with Chinese which seems to have particularities. In a nut shell: check 221712 and see if that is the issue you are having. Sorry for the confussion.