Problem/Motivation
In #2954151: Allow users to change replicated entity's label before confirming we have added the suffix " (Copy)" to the default value of the replicated entity's title.
However, if the entity has translations, the suffix is not added to the label of the translations.
It would be important to have the suffix there too.
Proposed resolution
On the confirmation page, add one form element per available translation, with the translated suffix. This way users can customize the suffix on each label, if necessary.
Remaining tasks
User interface changes
Before:

After:

API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | interdiff-5-7.txt | 1.45 KB | marcoscano |
| #7 | 2972955-7.patch | 10.11 KB | marcoscano |
| #5 | after.png | 29.55 KB | marcoscano |
| #5 | before.png | 20.57 KB | marcoscano |
| #5 | interdiff-2-5.txt | 7.94 KB | marcoscano |
Comments
Comment #2
marcoscanoMissing test coverage, but it should be enough to validate the approach.
Comment #4
berdirthe hasTranslation() call is not necessary, you loop over getTranslationLanguages(), which is only the existing translations.
Beside, you call getTranslation() above, so it would fail on that anyway :)
maybe update the description too?
Can you include a screenshot as well? But I think this direction makes sense.
Comment #5
marcoscano@Berdir thanks for reviewing!
I've added some screenshots to the IS.
Comment #7
marcoscanoComment #9
berdirThanks.