eZ Community » Forums » General » Create a translation on unpublished...
expandshrink

Create a translation on unpublished content?

Create a translation on unpublished content?

Tuesday 24 July 2012 10:04:07 am - 2 replies

HI.

Here is the scenario:

In Admin2:

  • I create a draft in language A
  • I store and exit draft
  • I now see the draft in my dashboard
  • But before publishing, I want to create a translation in language B..

This does not seem possible.  Must you first publish content before being able to add translations or am I going nuts?
Thanks,

David

Tuesday 14 August 2012 5:08:41 pm

I've just tried. This is right, this is not possible - strange. sad.gif Emoticon

Maybe a bug?

Modified on Tuesday 14 August 2012 5:09:24 pm by David Hohl

Wednesday 15 August 2012 9:06:00 am

Quote from David Hohl :

I've just tried. This is right, this is not possible - strange. sad.gif Emoticon

Maybe a bug?

HI.

 

Thanks for confirming.
Well, after digging around on the PHP level, it is actually 'possible' to do this to some degree.  You can create the new draft (from the initial draft or not).  However, the issue actually comes from publishing the second or subsequent versions first.
The limitation(or integrity constraint) comes from eznode_assignment.  This is the 'potential' location of objects in the tree (and where node_ids are born).  Entries here only exist at versions in which there is a node assignment (creation of object and addition of locations).  Therefore, if I have version '2' and version 1 is still unpublished, when I go to publish version '2', the system will (rightly) kick back and prompt me for a location - because the only existing location is for a version not yet published and therefore not valid.

So, an odd and frustrating little scenerio, but at least (gasp) there is logic to this situation and it would be possible to overcome it with a little bit of elbow grease.  For now, I've left well enough alone happy.gif Emoticon

-David

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu