Page 1 of 1

Czech Language - s9y_event_multilingual.php

Posted: Sun Sep 07, 2008 11:13 pm
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

Re: Czech Language - s9y_event_multilingual.php

Posted: Mon Sep 08, 2008 11:01 am
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

Posted: Tue Sep 16, 2008 12:10 pm
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