Czech Language - s9y_event_multilingual.php

Found a bug? Tell us!!
Post Reply
vdudman
Regular
Posts: 22
Joined: Sun Aug 17, 2008 12:43 am

Czech Language - s9y_event_multilingual.php

Post by vdudman »

Hi

Spent a while on this, havn't quite fixed it but there is a problem when I'm entering czech versions of entries I've written in English. There are two versions of langauge for czech (Czech2 (ISO-8859-2) and Czech (Win-1250)). Of course I made my mind up on using just one and set about entering translations etc.

All went well after first one is saved however when it comes time to enter another entry i.e selected the "Choose langauge version to edit" in the edit entries place. Only the opersite lang entry for czech is available, the other one is removed from available list to select. I've made it livable for the moment by editing serendipity_config.inc.php and changing the line

'cs' => 'Czech (Win-1250)',
'cz' => 'Czech (ISO-8859-2)',

to

'cs' => 'Czech (Win-1250)',
'cz' => 'Czech2 (ISO-8859-2)',

I'm think that somewhere in s9y_event_multilingual.php when the defaults are swapped around or something that this is messed up. I havn't been able to find any more out...

Can someone take a look I'm a bit confused :)

Thanks
Neil
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Czech Language - s9y_event_multilingual.php

Post by garvinhicking »

Hi!

Is there a reason why you don't use UTF-8? This is very much suggested when dealing with multiple languages.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
vdudman
Regular
Posts: 22
Joined: Sun Aug 17, 2008 12:43 am

Post by vdudman »

Hi

I did reply after you kindly replied to my origional message... but I look back now and see it never appeard.

Basicly I have no preference about using which char set, other then whats easiest and works best. I don't really understand why there is two options for czech neither being utf-8. I just have to pick one as the cs or cz flag is used in db and in picking which langauge files etc.

About the problem I noted, I've just noticed additionally or more clearly that if when I have the cs language selected (glabally, all admin is in czech langauge) then in the drop down list of languages while editing an entry that the cs langauge isn't available... and the default displayed is always the english version. If I switch back to english langauge (i.e global langauge, everything in admin is displayed now in english) and if I edit an entry in that drop down the cs version is available.

I need to find some time to look at how that plugin works or better explain what I'm finding as I've found other strange behaviou where additional multilingual entries for my default langauge en are created in the serendipity_entry_properties and not updated rather in the serendipity_entry table where I thought the default langauge should always reside. When this happened I could only see english texts for an entry wether selecting en or cz in the blog. It was very frustraiting to know what was happening.

I'll try and understand it better so I can make this clearer.

Neil
Post Reply