Problem with multilingual entries and choose language plugin

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
BLuEGoD
Regular
Posts: 8
Joined: Wed Apr 02, 2008 11:03 am
Contact:

Problem with multilingual entries and choose language plugin

Post by BLuEGoD »

I have selected two languages on both multiglingual entries and language plugin (english and spanish)

But I have a lot of troubles with that, first of all:

If I want to change an english entry I change the multilingual box to english but I can ONLY if I have chosen Spanish language on my homepage with "choose language plugin"

Also if I want to change an spanish entry I have to chose English language to see Spanish on the multilingual box of the entry and enter it.

And finally (the most awkward thing) is that I have to enter also a third "DEFAULT" entry (writing an entry I have a default option on the multilingual entries menu box) that differs from English or Spanish language entry and that entry will be the default for both languages if someone enter my website for the first time and if they don't choose a language on the choose language box.

Any help will be much appreciated!!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem with multilingual entries and choose language pl

Post by garvinhicking »

Hi!

The problem is that the backend depends on the language you configured for your account in the "Personal Preferences". This will set the "Default" language for your entries.

But now, also the frontend respects your selected language. If you want to override that, I believe there's a configuration setting of the multilingual plugin that you'd need to activate. Else, you can logout of s9y, and then you can switch languages like usual visitors.

HTH,
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/
BLuEGoD
Regular
Posts: 8
Joined: Wed Apr 02, 2008 11:03 am
Contact:

Post by BLuEGoD »

Ok, but anyway I always will have to write 3 entries instead of 2 (I have selected 2 languages)

"Retain previous language contents" <- is that the option?

Anyway my default language is "English" on my personal settings.. But having the interface in english if I would like to change English multilingual entry I can't see "english" on the multilingual entries menu, just Spanish or Default..
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

No, you only need to write 2 entries. "DefaulT" is the entry always in the language that your editor has selected. In your case, the "Default" entry should be the English one.

HTH,
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/
BLuEGoD
Regular
Posts: 8
Joined: Wed Apr 02, 2008 11:03 am
Contact:

Post by BLuEGoD »

Hello,

Changing default entry != changing english entry at least for me!

If I make a blank entry on default and then I choose english on my website I see the english version.. And if I am not wrong a user that first checks my site will see the blank page :S
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Before you change the language from default to another one, you must save the entry, did you do that?

From a technical standpoint, changing a language simply replaces the content of an entry body with the one you select; if there is no entry to get from/to in first instance, changing the language would not really have an effect and not store the default language properly.

So you always need to work first with the default language, and then base your translated articles on that default entry.

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/
BLuEGoD
Regular
Posts: 8
Joined: Wed Apr 02, 2008 11:03 am
Contact:

Post by BLuEGoD »

Hello,
I save it yes :)

But for example...
I enter my administration (english interface) and I see editing an entry:
Default
....
Spanish
(on the multilingual entry menu box)
So I can't modify my english entry, why? If I modify default (it has to be the english one but not) then if someone choose "english" on "choose language" menu will not see my default modifying entry, what I mean is that I can't modify english entry unless I change my language to Spanish on my website, then enter the administration interface and modify the "english" multilingual entry.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

But "Default" should be your english entry? If english is your editor's personal language, then "English" is not available from the dropdown list.

Are other editors on your blog that do not have English as Default language, but Spanish? In this case, mixups can occur. It would be best if all editors have the same default language so that the Default language is always the same.

Maybe you can try with a fresh entry, WITHOUT changing your user's language preference? This can surely mix things up, once you introduced "English" version even though English is your default language.

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/
BLuEGoD
Regular
Posts: 8
Joined: Wed Apr 02, 2008 11:03 am
Contact:

Post by BLuEGoD »

Thanks for all, perhaps adding a new entry without changing default language on the website will solve that issue :)

Another question.. is there a way to add a new language not on the list?
Thank u again!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
BLuEGoD wrote:Thanks for all, perhaps adding a new entry without changing default language on the website will solve that issue :)
I know that sadly the plugin has some quirks that are not well documented. I wish there would be a developer that might want to take on that plugin to improve this situation. :(
Another question.. is there a way to add a new language not on the list? Thank u again!
I believe the plugin fetches the languages dnyamically from those available to Serendipity. So if you edit serendipity_config.inc.php and change $serendipity['languages'] it should become avialable!?

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/
BLuEGoD
Regular
Posts: 8
Joined: Wed Apr 02, 2008 11:03 am
Contact:

Post by BLuEGoD »

Hello again..

I am sorry but I have another issue with this :S

I have done a new entry editing default and spanish languages only, and it's ok, if I choose english it works :)

But.. if I delete all cookies (like if someone enter the site for the first time) my default language on the menu list will be Spanish (I don't know if that is chosen because of my domain/ip address, but I am from Spain :)), the problem ist that while in the menu list is spain selected the printed version is on english (default), and I have to change it to English, and then to Spanish again to show the Spanish page :S
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

This might be caused by the s9y option "Autodetect User language", which is based on the browser preference. You could try to disable that s9y option so that the default language will always be the one you picked in the s9y Central Configuration.

HTH,
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/
BLuEGoD
Regular
Posts: 8
Joined: Wed Apr 02, 2008 11:03 am
Contact:

Post by BLuEGoD »

Ok, anyway I have to disable that to use languages :(

Also I change the language from the menu list (choose language plugin) But as I see on the foot of the entry I only see a "Spanish, Spanish" links :S so perhaps there is a bug there :S

Thank u very much! :)
BLuEGoD
Regular
Posts: 8
Joined: Wed Apr 02, 2008 11:03 am
Contact:

Post by BLuEGoD »

Disabling autodetect user language solves the footer issue :)
Post Reply