Traditional Chinese language finished

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
CapriSkye
Regular
Posts: 119
Joined: Sun Oct 31, 2004 4:42 am
Location: Taiwan
Contact:

Traditional Chinese language finished

Post by CapriSkye »

i've finished translating s9y to traditional chinese, but having trouble setting the charset, so can't really test on it. anyone know how to set those to work with traditional chinese? im pretty sure charset has to be big5, but not sure the others. please help, thanks.

@define('LANG_CHARSET', 'ISO-8859-1');
@define('DATE_LOCALES', 'english, en, en_US');
@define('WYSIWYG_LANG', 'en');
CapriSkye
Regular
Posts: 119
Joined: Sun Oct 31, 2004 4:42 am
Location: Taiwan
Contact:

Post by CapriSkye »

@define('LANG_CHARSET', 'big5');
@define('DATE_LOCALES', 'chinese, zh, zh-TW');
@define('WYSIWYG_LANG', 'b5');

that's what i have right now, but my blog isn't showing correctly. it still shows everything in english, and capitalized....and printing the variable names. here's where my test site is, www.capriskye.com/blog

please help, thanks
Little Hamster
Regular
Posts: 62
Joined: Thu Oct 07, 2004 3:16 pm

Post by Little Hamster »

I don't how to fix it, but the problem is that the html document is still set to be in english

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
           "http://www.w3.org/TR/html4/loose.dtd">
CapriSkye
Regular
Posts: 119
Joined: Sun Oct 31, 2004 4:42 am
Location: Taiwan
Contact:

Post by CapriSkye »

i know, even though i did set the charset to big5.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

It seems to me that you did not alter the correct language file with the big5 constants! Because when I view your HTML Sourcecode it says:

Code: Select all

    <title>Capri's Personal Blog</title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <meta name="Powered-By" content="Serendipity v.0.7-rc1" />
The "ISO-8859-1" should not be in there; Serendipity uses LANG_CHARSET for that, so you supposedly didn'T set your blog configuration to use it? Or maybe you are using embedded mode, supplied your own headers, and didn't change it?

Regards,
Garvin.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
CapriSkye
Regular
Posts: 119
Joined: Sun Oct 31, 2004 4:42 am
Location: Taiwan
Contact:

Post by CapriSkye »

it's working now, i think it's a syntax error, with some chinese words appearing at the end of the string before ' it will add a slash, i think that's causing the problem. but everything works now, thanks guys.

will you guys include this in future release? i will update the language file if need be. please let me know. thanks!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

We would love to include it in our distribution. If you could use a recent file to translate (from the Snapshot archives) that would be great!

Please send it via E-Mail to me and I will include it in CVS. (me [at} supergarv {dot{ de)

Regards,
Garvin.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
CapriSkye
Regular
Posts: 119
Joined: Sun Oct 31, 2004 4:42 am
Location: Taiwan
Contact:

Post by CapriSkye »

i think both 0.7 and smarty-branch have different language file, which one do you want me to send you? thanks!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Use the one of smarty-branch, if possible. Thanks! :)

Regards,
Garvin.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
CapriSkye
Regular
Posts: 119
Joined: Sun Oct 31, 2004 4:42 am
Location: Taiwan
Contact:

Post by CapriSkye »

okay it's done, did you get my email? also the one i translated for smarty-branch will work with the normal version right? thanks
Post Reply