! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
zh_CN translation can not be used
Status:
RESOLVED: FIXED
Product:
www.xfce.org
Component:
General

Comments

Description Ben 2007-03-26 09:50:55 CEST
The zh_CN translation can not be used. When clicked zh_CN, the URL changes to http://www.xfce.org/?lang=zh_CN. As you can see the url is right, but the page won't show up, it is still in en page. Somebody say the _ in zh_CN cause this problem, think that nick made the assumption somewhere that language-codes are always 2 characters wide.
Comment 1 Nick Schermer editbugs 2007-03-26 10:56:54 CEST
Yes that's indeed the problem, duno why I did that...

You can try changing this line in index.php (since I don't have svn access right now):

-$userlang = substr(trim($_SERVER["HTTP_ACCEPT_LANGUAGE"]), 0, 2);
+$userlang = trim($_SERVER["HTTP_ACCEPT_LANGUAGE"]);
Comment 2 Nick Schermer editbugs 2007-03-26 14:09:07 CEST
MM that's not the problem, I'll have a look tonight.
Comment 3 Nick Schermer editbugs 2007-03-26 21:44:01 CEST
Fixed

Bug #3059

Reported by:
Ben
Reported on: 2007-03-26
Last modified on: 2009-07-15

People

Assignee:
Nick Schermer
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information