new chinese language file display problems

Please report bugs here!

Moderator: Thorsten

Post Reply
AndrewB
Posts: 171
Joined: Fri Aug 22, 2003 11:15 pm
Contact:

new chinese language file display problems

Post by AndrewB »

1.4.1 RC1
If I select Chinese as the display language then I get lots of error messages like
Warning: Cannot modify header information - headers already sent by..

is this caused by the new language_zh.php file?

or did I mess up during the upgrade?
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

oops, just look in the language_zh.php file and remove everything before the <?php and then it works.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
AndrewB
Posts: 171
Joined: Fri Aug 22, 2003 11:15 pm
Contact:

Post by AndrewB »

what editor can I use to do that? I have tried NotePad and TextPad and the editor I use for editing files on my server but they all change the format so that it is unreadable :(

can someone edit this file for me and post a good one here?

TIA
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

do you have a Linux box? :)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
AndrewB
Posts: 171
Joined: Fri Aug 22, 2003 11:15 pm
Contact:

Post by AndrewB »

no. I am windows 2000 or XP here.

my web host is I guess :?
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I changed it here in my box. Should I sent you the file?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
AndrewB
Posts: 171
Joined: Fri Aug 22, 2003 11:15 pm
Contact:

Post by AndrewB »

please :) do you still have my email?
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

It's here in the forum. :)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
AndrewB
Posts: 171
Joined: Fri Aug 22, 2003 11:15 pm
Contact:

Post by AndrewB »

thanks - I got the file

that removed the errors. :)

however - some of the characters don't show correctly for me.

I will ask some chinese people I know to take a look at it.

thanks
AndrewB
Posts: 171
Joined: Fri Aug 22, 2003 11:15 pm
Contact:

Post by AndrewB »

the encoding in the file is GB2312. If I change my encoding for a specific page through IE to be UTF-8 then all the characters look like they are displaying correctly.

Do you know if this encoding change can be made to the language file? Or is it set to GB2312 for a reason?

If I could edit the file I would do it myself :wink:
AndrewB
Posts: 171
Joined: Fri Aug 22, 2003 11:15 pm
Contact:

Problem Solved

Post by AndrewB »

OK. I downloaded a UNICODE editor and used that to edit the language_zh.php file. I went back to the original file. I removed the first 3 characters like you did Thorsten and I changed the gb3212 to UTF-8 and now I am happy :)

thanks for the help
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi Andrew,

could you please send me the Chinese UTF-8 file? That would be great!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
AndrewB
Posts: 171
Joined: Fri Aug 22, 2003 11:15 pm
Contact:

Post by AndrewB »

emailed..
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

thanks and added to phpMyFAQ 1.4.1 RC2

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply