Problem/motivation
Delete confirmation messages on original language comments do not inform people that they also lose translations of their comments:

Steps to Reproduce
- enable content translation under extend
- add a few languages
- enable translation for content (article) and comments (on the configuration language settings page)
- create an article
- comment on the article
- translate the comment
- Try to Delete the original language comment
Proposed solution
Display confirmation warning when original language comment is about to be deleted, that translations of the comment will also be deleted.
Notes
Issue created based on #1833112: Make translations consistant with other delete tab patterns, picture by @greg.1.anderson.
Comments
Comment #1
plachWe already have such a functionality implemented in the base translation controller. Probably it's not being called to to the different workflow: IIRC it's triggered by pushing the delete button from the entity form.
Probably the correct way to implement this is defining a generic delete form controller and display the warning while showing the confirmation form. See also #1728804: Introduce (Content)EntityDeleteForm and children to handle entity deletions.
Comment #1.0
chrischinchilla commentedAdded steps to reproduce.
Comment #2
yesct commented@chrischinchilla thanks for starting the steps to reproduce.
I expanded it a bit. (more detail could still be added, like the url of the pages to configure stuff)
Comment #3
gábor hojtsyComment #4
JayMN commentedChanging title because comments need warning that deletion of the original language comment will also delete translations, but this is not a problem for entities, nor for deleting translations of the comment.
Will change the summary, as well.
Tests:
From Content language settings, tested content (article) and comments. Did not test custom block, menu link, taxonomy term or user. Does anyone think testing of these other types is needed?
Results of tests:
For article, user was warned that deleting the original would delete translations. Deletion of translation of article does not delete original or other translations, so no warning is needed.
Deletion of original language comment lacked warning that translations would be deleted, so warning is needed. Deletion of translation of comment does not delete other translations, nor the original, so no warning is needed in those cases.
Comment #4.0
JayMN commentedUpdated issue summary, expanded steps
Comment #5
JayMN commentedCannot edit translation of node (article or basic page).
While testing in #4, above, stumbled on an error. Clicking on the edit tab for a translation of an article resulted in Fatal error: Call to a member function bundle() on a non-object in \core\modules\node\node.module on line 136. Can anyone tell me if this is a duplicate of another issue, or if not, where the issue belongs? (I've looked without success)
Steps to duplicate (tested on my local system and simplytest.me 8.x):
Comment #6
gábor hojtsy@JayMN: that issue is being handled in #1831846: Help block is broken with language path prefixes, I copied your steps to reproduce to #1831846-33: Help block is broken with language path prefixes and elevated that issue to Critical given that what was a notice before now makes editing impossible. It is not related to this issue here.
Comment #7
yesct commentedwe should be able to write a test for editing a translation. [edit: or maybe the tests should be added in the other issue.]
Comment #7.0
yesct commentedUpdated issue summary.
Comment #21
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #22
smustgrave commentedSince there hasn't been a follow up going to close out, but don't worry we can always re-open!
Thanks all