Problem/Motivation
Content moderation allows for specific states to be set per entity / revision / language. It would be nice to schedule a specific translation of an entity to be published via the scheduled transitions.
Proposed resolution
Add a language field and only act on the specific translation of the revision.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #17 | interdiff-3022681-translation-changes-on-commit.txt | 3.94 KB | dpi |
| #15 | 3022681-translation-15.patch | 41.23 KB | dpi |
| #15 | interdiff-3022681-translation-11-15.txt | 828 bytes | dpi |
| #12 | 3022681-translation-11.patch | 41.24 KB | dpi |
| #12 | interdiff-3022681-translation-9-11.txt | 4.54 KB | dpi |
Comments
Comment #2
seanbThe patch attached implements a new base field to store the langcode of the selected revision. The scheduled transition tab is changed to only add/show scheduled transitions for the current language (consistent with the revision tab).
For example:
When you are on a French translation, this means you only see the scheduled transitions for the French language when navigating to the tab.
You only see the French revisions when trying to add a new scheduled transition.
Please review.
Comment #3
jibranReally nice work. Thanks, for creating the issue and the patch. Let's add some tests.
Let's add a comment here?
Can we please add a comment here, as well?
Comment #4
seanbAdded some docs!
Comment #5
jibranThanks, for addressing the feedback. We'll create a meta for tests and address this there.
Comment #6
dpiPatch looks reasonable.
Took a while for me to get re-acquainted with how translation works (procrastination). This is definitely going to need tests as I can easily see myself or others breaking changes introduced by this issue.
Ive got a feeling showing the current language for the list page and form will bite us in the future. Going to overlook it in the meantime.
Some feedback
Suggested test scenarios
Comment #7
dpiThis issue is the remaining blocker for 1.0
Comment #8
dpiComment #9
dpiComment #11
jibranNice work on tests 👏👏👏👏👏👏
I didn't know that saving the entity will save the translations as well.
Comment #12
dpiFixes bad test, problem with site in subdirectory on drupalci
Comment #13
dpiPHP magic; objects always references. Good stuff.
Comment #15
dpimissed one 🤞
Comment #17
dpiCommitted with minor amendments.
Comment #19
dpiAdded an empty authorship commit.