Major Feature #62292

Support for entity translation

Added by Artus Kolanowski almost 7 years ago. Updated almost 7 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
I18n
Start date:
2014-10-17
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

It seems TYPO3 Flow doesn't support the translation of entities currently in a generic way. So either you choose some non generic approach like the following and do it again and again for all your entities which needs to be translatable:

/**
 * @Flow\Entity
 */
class Product {

  /**
   * @var Product
   * @ORM\ManyToOne(inversedBy="translations")
   */
  protected $translationOriginal;

  /**
   * @var Collection<Product>
   * @ORM\OneToMany(mappedBy="translationOriginal")
   */
  protected $translations;

  /**
   * @var string
   */
  protected $locale;

  ...

}

Or you try to implement it in a aspect oriented way like this, which of course might be a lot of work to realize:

/**
 * @Flow\Entity
 */
class Product {

  /**
   * @var string
   * @Flow\Translatable
   */
   protected $name;

   ...

}

Currently we have some multi-language projects in the pipe for which we could use TYPO3 Flow but without the aspect Translatable it makes our decision not so easy.

Please excuse if this is a stupid feature request. The examples are from Akii and his article My thoughts on Entity Translation in TYPO3 Flow. So are there any plans about it or is this a pretty rare aspect?

#1

Updated by Artus Kolanowski almost 7 years ago

Sorry, I forgot to mention that the aspect Translatable also would require an API for the CRUD operations of the translations of properties.

Also available in: Atom PDF