Page 1 of 1

Problem with non-latin categories

Posted: Sat May 05, 2007 10:44 am
by robi-bobi
Hello

I am using UTF-8 encoding and Bulgarian language for this new blog:
http://www.bgevents.eu/

I have few categories added: Sport, Music ... - they are located in 'Категории' box, bottom right, you will find them by RSS icons ;)

The problem is that since categories are written in bulgarian, URL for the category itself looks like:
http://www.bgevents.eu/categories/1-unknown
instead of
http://www.bgevents.eu/categories/1-Музика

Is this behavior normal? (is it a feature or a bug :) )

I have some other problems like: not showing some Bulgarian characters in dates - from what I read on forums - it should be fixed by installing Bulgarian locales on the server (already wrote to support).

thanks

Re: Problem with non-latin categories

Posted: Mon May 07, 2007 9:26 am
by garvinhicking
Hi!

Those characters are invalid in an URL, so you cannot use this. Serendipity uses replacement techniques to strip out or replace invalid characters. Since in your bulgarian wording no latin characters are existing, s9y uses "unknown".

You have two options:

1. Live with it :)

2. Edit the bulgarian language file and insert $i18n_from and $i18_to variables, like in the russian language file. There you can specify how non-lating characters get replaced to latin ones. That might at least make it partially readable, if the resul would look like "Kateropnn"? :-)
I have some other problems like: not showing some Bulgarian characters in dates - from what I read on forums - it should be fixed by installing Bulgarian locales on the server (already wrote to support).
Exactly, that should fix your problem.

Regards,
Garvin

Posted: Thu May 10, 2007 7:18 pm
by robi-bobi
Thanks.

Solution two sounds good enough. When I modify those files, I will send them to you.

edit:
my support says that they have bg_BG and bg_BG.utf installed

bg lang file says:
@define('DATE_LOCALES', 'bulgarian, bg, bg_BG');

I tried with
@define('DATE_LOCALES', 'bg_BG, bulgarian, bg');
and
@define('DATE_LOCALES', 'bg_BG.utf, bulgarian, bg, bg_BG');

but still no effect.

What else I could try?

Posted: Fri May 11, 2007 11:05 am
by garvinhicking
Hi!

Are you looking at the /lang/UTF-8/serendipity_lang_bg.inc.php file?

Code: Select all

@define('DATE_LOCALES', 'bg_BG.utf);
This should be the right one, if your server really has 'bg_BG.utf' installed! MAybe you need to try 'bg_BG.utf8' instead?

Regards,
Garvin

Posted: Fri May 11, 2007 2:18 pm
by robi-bobi
bg_BG.utf8

yes, this was correct
:)


edit: it seems that static pages don't use localised dates