Collage + LinguaPlone

2 messages Options
Embed this post
Permalink
Jens W. klein-2 () Collage + LinguaPlone
Reply Threaded More More options
Print post
Permalink
I looked at the implemenation of collage in combination with LinguaPlone.
In my opinion its not as it should be.

What we have:

a) The Collage object itself can be translated

b) rows, columns and aliases are not possible to translate

c) content in a column can be translated.

So what happens if i use Collage:

1) create a folder 'myfolder'

2) translate it to german

3) create a collage myfolder/mycollage

4) translate it to german.

Now we have:

.
|-- meinfolder
|   `-- meinecollage
`-- myfolder
    `-- mycollage

ok so far

5) create a row and in there a column

6) in column create a document

7) translate it to german

now we have:

|-- meinfolder
|   `-- meinecollage
`-- myfolder
    `-- mycollage
        `-- row
            `-- col
                |-- meindoc
                `-- mydoc

Which is wrong! We should have:

.
|-- meinfolder
|   ` -- meinecollage
|        `--row-de
|           `--col-de
|              `--meindoc
|  
`-- myfolder
    `-- mycollage
        `-- row
            `-- col
                `-- mydoc

This would imply that we need column and row inherit from LinguaPlone
base classes.

LinguaPlone wont copy the rows/columns layouts to the translation, so we
need subscribers to IObjectTranslatedEvent for initial copying and an
IObjectModified event for copy on subsequent mofifications performing
this task.

Keeping layouts over translations synced is probably a good idea for
every type inside of collage.

Any opinions, ideas, stoppers?

regards
--
Jens W. Klein - Klein & Partner KEG - BlueDynamics Alliance


_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
Gilles Lenfant () Re: Collage + LinguaPlone
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hi,

Le 2 juil. 09 à 13:36, Jens W. Klein a écrit :

[...]


Which is wrong! We should have:

.
|-- meinfolder
|   ` -- meinecollage
|        `--row-de
|           `--col-de
|              `--meindoc
|   
`-- myfolder
   `-- mycollage
       `-- row
           `-- col
               `-- mydoc

This would imply that we need column and row inherit from LinguaPlone
base classes.

As long as this is an *option*, LinguaPlone should *never* be a requirement for Collage. And LP should never be a stopper for Collage evolutions.


LinguaPlone wont copy the rows/columns layouts to the translation, so we
need subscribers to IObjectTranslatedEvent for initial copying and an
IObjectModified event for copy on subsequent mofifications performing
this task.

Keeping layouts over translations synced is probably a good idea for
every type inside of collage.

I'm not sure all multilingual sites need to have Collage synched within translations. I made some multilingual intranets with - intentional - dissymetrical contents, including Collage contents.
If your use case requires this, it should be an option.

Thanks for your contributions to Collage Jens.
-- 
Gilles Lenfant


_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers