Cyrillic version of Serendipity

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
iamcreative
Posts: 4
Joined: Mon Feb 23, 2004 5:28 pm
Location: Kiev, UKRAINE

Cyrillic version of Serendipity

Post by iamcreative »

Hi

I am trying to translate Serendipity to russian. I've translated language file /lang/serendipity_lang_en.inc.php to russian and renamed it to /lang/serendipity_lang_ru.inc.php but it does not appear in select box on the configuration page. What's the problem?

And one more problem with cyrillic support i have found - the script always forces a header with iso encoding. Not sure yet how it writes to db... I will try to edit all the scripts and add the proper cyrillic conversion blocks.

One more general problem occured - thumbnails does not display in posts. Fullsize images are ok but thumbs are not. The url in img tag is correct but they don't display. Maybe the problem is in directory permissions? After uploading files to the server directory uploads/ has 770 permissions. Should I change it to smth else?

P.S.: Thanx a lot for this work. I was looking for powerful blog engine and i found it!
tomsommer
Core Developer
Posts: 240
Joined: Tue Sep 02, 2003 6:43 pm
Location: Denmark
Contact:

Re: Cyrillic version of Serendipity

Post by tomsommer »

iamcreative wrote:Hi

I am trying to translate Serendipity to russian. I've translated language file /lang/serendipity_lang_en.inc.php to russian and renamed it to /lang/serendipity_lang_ru.inc.php but it does not appear in select box on the configuration page. What's the problem?
Add it to serendipity_config_local.tpl
iamcreative wrote:And one more problem with cyrillic support i have found - the script always forces a header with iso encoding. Not sure yet how it writes to db... I will try to edit all the scripts and add the proper cyrillic conversion blocks.
Soon to be fixed
iamcreative wrote:One more general problem occured - thumbnails does not display in posts. Fullsize images are ok but thumbs are not. The url in img tag is correct but they don't display. Maybe the problem is in directory permissions? After uploading files to the server directory uploads/ has 770 permissions. Should I change it to smth else?
Depending on your version, try a resync...
Tom Sommer (Serendipity Core Developer)
http://blog.dreamcoder.dk
iamcreative
Posts: 4
Joined: Mon Feb 23, 2004 5:28 pm
Location: Kiev, UKRAINE

Re: Cyrillic version of Serendipity

Post by iamcreative »

Thanx for the answers, now i have russian interface. Trying to fix encoding problems and enable full cyrillic support.
tomsommer wrote:
iamcreative wrote:One more general problem occured - thumbnails does not display in posts. Fullsize images are ok but thumbs are not. The url in img tag is correct but they don't display. Maybe the problem is in directory permissions? After uploading files to the server directory uploads/ has 770 permissions. Should I change it to smth else?
Depending on your version, try a resync...
I an using version 1.54.2.5.2.2. Rebuiding does not help. The problem is in access permissions - script cannot write image stream to directory. After changing permissions to 777 all works fine.
tomsommer
Core Developer
Posts: 240
Joined: Tue Sep 02, 2003 6:43 pm
Location: Denmark
Contact:

Post by tomsommer »

What charset is russian? just wondering?
Tom Sommer (Serendipity Core Developer)
http://blog.dreamcoder.dk
iamcreative
Posts: 4
Joined: Mon Feb 23, 2004 5:28 pm
Location: Kiev, UKRAINE

Post by iamcreative »

windows-1251, koi8-r - the most popular. koi8-r is a standard for e-mail messages and *nix platforms. windows-1251 (also cp-1251) initially used mostly in windows environment but nowadays used as e-mail standard too. And for web pages as well even on *nix hosting platforms.

We use this tag for defining cyrillic encoding:

Code: Select all

<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
tomsommer
Core Developer
Posts: 240
Joined: Tue Sep 02, 2003 6:43 pm
Location: Denmark
Contact:

Post by tomsommer »

in s9y we send raw headers to the server: header('Content-Type: text/html; charset=ISO-8859-1');

so header('Content-Type: text/html; charset=windows-1251'); would be good for you?
Tom Sommer (Serendipity Core Developer)
http://blog.dreamcoder.dk
iamcreative
Posts: 4
Joined: Mon Feb 23, 2004 5:28 pm
Location: Kiev, UKRAINE

Post by iamcreative »

Yes
Post Reply