Re: side-by-side translation view in a working copy?

Hanno Schlichting <[email protected]> Fri, 13 May 2011 16:20:05 +0200
Newsgroups gmane.comp.web.zope.plone.internationalization,gmane.comp.web.zope.plone.product-developers
Message-ID <[email protected]>
On Thu, May 12, 2011 at 5:21 PM, Daniel Holth <[email protected]> wrote:
> Here's my solution so far. I've added a side-by-side edit view called
> translate_iter.cpt by adding a getOriginalCopy() for working copies of
> I18NBaseObject. By appending /translate_iter instead of /edit to the URL,
> the working copy is edited next to the canonical translation of its
> original.
>
> I may just add a new 'side-by-side' tab instead of trying to do my own /edit
> override...
>
> Does this look like something that could go into LinguaPlone?

This should rather go into plone.app.iterate, with the LinguaPlone
dependency being optional (conditional imports).

And you really don't want to add a new method on I18NBaseObject. This
base class is going away soon and will be replaced by adapters. Just
write your new template as a browser page and put the logic you need
into a browser view class.

Hanno

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay