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!
Cyrillic version of Serendipity
-
iamcreative
- Posts: 4
- Joined: Mon Feb 23, 2004 5:28 pm
- Location: Kiev, UKRAINE
Re: Cyrillic version of Serendipity
Add it to serendipity_config_local.tpliamcreative 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?
Soon to be fixediamcreative 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.
Depending on your version, try a resync...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?
Tom Sommer (Serendipity Core Developer)
http://blog.dreamcoder.dk
http://blog.dreamcoder.dk
-
iamcreative
- Posts: 4
- Joined: Mon Feb 23, 2004 5:28 pm
- Location: Kiev, UKRAINE
Re: Cyrillic version of Serendipity
Thanx for the answers, now i have russian interface. Trying to fix encoding problems and enable full cyrillic support.
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 wrote:Depending on your version, try a resync...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?
What charset is russian? just wondering?
Tom Sommer (Serendipity Core Developer)
http://blog.dreamcoder.dk
http://blog.dreamcoder.dk
-
iamcreative
- Posts: 4
- Joined: Mon Feb 23, 2004 5:28 pm
- Location: Kiev, UKRAINE
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:
We use this tag for defining cyrillic encoding:
Code: Select all
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">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?
so header('Content-Type: text/html; charset=windows-1251'); would be good for you?
Tom Sommer (Serendipity Core Developer)
http://blog.dreamcoder.dk
http://blog.dreamcoder.dk