Page 1 of 1

s9y Translation Problem

Posted: Fri Apr 27, 2007 9:24 am
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 ?

Re: s9y Translation Problem

Posted: Fri Apr 27, 2007 1:46 pm
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