Re: [Plone-developers] LinguaPlone : permitting users not to select a language before translating

Hanno Schlichting <[email protected]> Sat, 28 May 2011 19:02:27 +0200
Newsgroups gmane.comp.web.zope.plone.internationalization
Message-ID <[email protected]>
On Sat, May 28, 2011 at 6:44 PM, thomas desvenain
<[email protected]> wrote:
> On Sat, May 28, 2011 at 5:49 PM, Hanno Schlichting <[email protected]> wrote:
>> The problem is, that we cannot know the language from which we
>> translate, as a neutral item doesn't have one. Neither any of the
>> containers the item is in nor the current UI language have to match
>> the actual content language of the neutral item.
>>
>> So we have to force the user to make an explicit choice, then change
>> the original which might move it to a different part of the site
>> hierarchy and finally render the translation form.
>
> I suggest the language change on neutral content should be done AFTER
> translation form submit,
> and the 'language from' should have been set by default to user language,
> so there wouldn't be, by default, any user action neither magic behaviour.

The user language after translating is going to be the language of the
translation that was just created. At least for most sites that bind
content language and UI language together. Now that language is
guaranteed to be different from the language of the canonical or the
user wouldn't have made a translation in the first place.

The user language at the time of visiting the neutral item is
unpredictable. I'd expect a neutral item to exist in a container
hierarchy that is neutral up to the site root and the site root is
likely set to neutral as well. So the binding of content to UI
language will not produce any match, falling back to cookies, domains
or other language negotiators.

If the user is an actual translator, it's likely he will know the
language of the content item marked as neutral, but that can be one of
many. If the user doing the action is a general website admin, he
might not understand the original language at all but just reorganize
the content into different hierarchies.

Unfortunately there's so many different ways on how to structure
multilingual web sites and how to build workflows around them that's
it impossible to guess. We need to ask explicitly - but we can improve
the way we ask.

Hanno

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1