eZPublishCommunityProject  2013.5
Examples/translation_5x.php

Translate a versionupdates the destination version given in $translationInfo with the provided translated fields in $translationValues

Exceptions
\eZ\Publish\API\Repository\Exceptions\UnauthorizedExceptionif the current-user is not allowed to update this version
\eZ\Publish\API\Repository\Exceptions\BadStateExceptionif the given destination version is not a draft
\eZ\Publish\API\Repository\Exceptions\ContentValidationExceptionif a required field is set to an empty value
\eZ\Publish\API\Repository\Exceptions\ContentFieldValidationExceptionif a field in the $translationValues is not valid
Parameters
\eZ\Publish\API\Repository\Values\Content\TranslationInfo$translationInfo
\eZ\Publish\API\Repository\Values\Content\TranslationValues$translationValues
\eZ\Publish\API\Repository\Values\User\User$modifierTaken as modifier of the version, otherwise current-user is used
Returns
the content draft with the translated fields
Since
5.0