s9y Translation Problem

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
mojiro
Regular
Posts: 6
Joined: Wed Jan 17, 2007 11:32 pm

s9y Translation Problem

Post by mojiro »

I have started to translate s9y to the Greek Language using the UTF-8
character set, but for unknow reasons...

I get this ...
Warning: Cannot modify header information - headers already sent by (output started at /PathToS9y/serendipity/lang/UTF-8/serendipity_lang_gr.inc.php:1) in /PathToS9y/serendipity/serendipity_admin.php on line 11
... when I use the Greek Translation

at the line 11 at serendipity_admin.php there is ...
header('Content-Type: text/html; charset=' . LANG_CHARSET);
What I used to do is to comment out this line... but I do not think it is right.

What do you suggest ?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: s9y Translation Problem

Post by garvinhicking »

Hi!

You need to save the language file WITHOUT UTF-8 BOM ad the start. Those 3 bytes at the beginning of a file cannot be evaluated by PHP and they are sent as output.

Best 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/
Post Reply