Recent Topics

1 Jul 27, 2004 23:34    

Hi,
I just donwloaded b2evolution and installed it on my site.
http://sageshome.net/b2e/blogs
I need an English interface but I need ability to post messages in Russian using KOI8-R encoding. Here is the list of changes I had to made to make the thing work properly:

conf/_locales.php - new locale entry:

'en-US.koi8-r' =>; array( 'name' => NT_('English (US) KOI8-R'),
'charset' => 'koi8-r',
'datefmt' => 'm/d/y',
'timefmt' => 'h:i:s a',
'messages' => 'en_US',
'enabled' => 1,

),

in b2evocore/_functions.php :

...
function convert_chars( $content, $flag='html' )
{
global $b2_htmltrans, $b2_htmltranswinuni;

// Convert highbyte non ASCII/UTF-8 chars to urefs:
if(
(locale_charset(false) != 'utf-8') &&
(locale_charset(false) != 'gb2312') &&
(locale_charset(false) != 'koi8-r') &&
(locale_charset(false) != 'windows-1251')
)
{
...

Also I put a .htaccess file with the following contents:

===cut===
AddDefaultCharset koi8-r
===cut===

Otherwise, my server was sending two Content-Type headers, one with charset=ISO-8859-1 and another one with charset-koi8-r and the browser was using the first one to detect encoding.

How do I insure that these changes will be included into next release?

PS Thanks to b2evo team for the great software!

2 Aug 27, 2004 17:28

A po4emu imenno KOI-8?
V Win1251 vrode vse normal'no rabotayet:)

3 Aug 27, 2004 19:35

Encoding doesn't make any difference, use Windows-1251 or ISO-8859-5 or UTF-8 if you want.... ;-)

4 Sep 07, 2004 18:37

I've meant that KOI-8R isn't used by anyone today but Yahoo:)

5 Sep 07, 2004 19:50

punk wrote:

I've meant that KOI-8R isn't used by anyone today but Yahoo:)

Incorrect. It's still a default Russian encoding for U*IX :)

6 Mar 17, 2005 08:28

could anyone help me install russian language support? i want to able to post in russain...

8 Mar 17, 2005 19:01

thelivingone,

nice blog :) i dont understand a bit of it, but its very nice nontheless!

10 Mar 18, 2005 10:15

The link dead after I moved b2e into another directory. I just fixed it.


Form is loading...