Problem/Motivation
When Meta entity was launched, the first intended use was to store simple properties. But right now we notices we also store text which should be translatable. The problem is, meta entity was not declared as translatable entity.
Proposed resolution
Let's make it translatable.
Remaining tasks
* Change definition
* Data schema update
* (Functional) testing
User interface changes
API changes
MetaEntity can be marked as transatable
Data model changes
New base fields: langcode and default_langcode.
Comments
Comment #3
huzookaHere is the first draft.
Update seems to be OK; but maybe, in case of the preexisting entities, the language code should follow the langcode of the target entity. Now I just set it to the site's default language.
I didn't do any functional testing so far.
Comment #4
huzookaI also added a post update function to change the language of preexisting meta entities to the language of their target, but I'm not sure if we really need it. I'm happy to drop it if you also think so.
Comment #6
huzookaFound an error with the update hook, the values in the field config tables aren’t copied during the schema update
Comment #7
huzookaComment #8
huzookaI had to refine the upgrade path because at the first time I though I finished with this the values in field config tables were lost.
Another thing (after a short discussion with @dimilias) that most probably we want to release this change in a new major branch – although I wrote an upgrade path to cover also the affected Views configs, there might be custom code (plugins, hooks etc) which are using the old data schema.
Comment #9
andras_szilagyi commentedLooks good
Comment #12
claudiu.cristeaMerged and release in 8.x-1.6. Thank you all