s9y with multilingual plugin wipes entry

Found a bug? Tell us!!
Post Reply
ogrolle
Posts: 1
Joined: Sun Oct 02, 2011 6:00 pm

s9y with multilingual plugin wipes entry

Post by ogrolle »

Hi all,

when I am writing a blog post using the multilingual plugin I normally write the english version first, then I switch the language with the multilingual 'switch language' buttons at the bottom and write the German version.

Now: going to the blog itself and switching the language there from english to german and then going back to the s9y admin UI also switches the admin UI language to german.
Now when I edit the german post show and save it - it actually and horribly overwrites the english original post! (causing tears by my blog author - and a re-write of the post in english).

I think I understand what is happening (when the admin UI is switched to German, it thinks that German is the 'default' language and it saves over the default entry - and not the German-multilingual database entry anymore).

Still that behavior seems like a mean bug. Can that be changed?
Or can I prevent the admin UI language to react to the language selection of the blog page itself? I would be fine if I could force the admin UI to stay english all the time.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: s9y with multilingual plugin wipes entry

Post by garvinhicking »

Hi!

Yes, the frontend and backend language actually are tightly interwoven. The multilingual plugin operates on the basic idea that the current language is the "default" language. If you switch those languages, that will most definitely lead to trouble.

Coding-wise, this is quite hard to fix, we've had the discussion about it a few times here. Sadly I cannot provide a good fix for this; the only workaround is to always work with the default language as an author, and not switch frontend languages. You'd most probaby be best off to use a different browser to view your blog as a "viewer", and one browser to view your blog as an author. Or remember to switch back languages when operating in the backend.

Of course if someone comes up with a working fix to the plugin that does not have sideeffects to the currently properly operating parts of the plugin, I'd be happy to commit that ;)

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/
Post Reply