Problem/Motivation

When Content translation module is enabled, in the Node Translate Tab (node/%node/translate) only shows "edit" operation.
See the next Image without delete link:
Operation without delete link.

Proposed resolution

I think it's possible to add a new operation to add the "delete" operation in the node translate tab. Of course, if the user has the right permission to edit that content.

Remaining tasks

  • Create a patch to fix it.
  • Review if the patch is working ok

User interface changes

  • Create a new operation link to delete the node

Comments

heilop created an issue. See original summary.

heilop’s picture

I create the patch to enable the "delete" operation.
After applying the patch, the translate tab shows:
Operations with delete link.

heilop’s picture

Issue summary: View changes
Status: Active » Needs review
waspper’s picture

Looks like a useful feature. Subscribing.

edutrul’s picture

This is very useful! and patch works as expected! thanks @heilop

langelhc’s picture

Subscribing++

langelhc’s picture

Status: Needs review » Reviewed & tested by the community

I followed these steps to test this patch:
- Install a clean D7 installation.
- Enable Local and Content Translation core modules.
- Enable Multilingual support selecting `Enabled, with translation` option. e.g. Article content type `admin/structure/types/manage/article`.
- Add a new language to the site `admin/config/regional/language/add` e.g. Spanish.
- Create a new article `node/add/article` select English in `Language` field.
- Then click on `Translate` tab and Add Translation for Spanish.
- Go back to Translation tab (node/NID/translate) and you will see the 'delete' link I test it and it worked like a charm.

Also, I created a new Editor role and I added permissions to Create, Delete articles, and Translate content. I can confirm that Only users with one of these permissions can delete translations using the new delete link:
Article: Delete own content
Article: Delete any content

Tagging this issue as RTBTC

langelhc’s picture

Issue summary: View changes
vacho’s picture

This is a very usefull feature. The patch works fine.

poker10’s picture

Category: Bug report » Feature request

Thanks for the patch, it looks good. Changing the category, as this is a Feature request.

poker10’s picture

Issue tags: +Needs change record
poker10’s picture

Issue tags: +Pending Drupal 7 commit
StatusFileSize
new20.39 KB

I think this is good suggestion. The same link is present in the D10, see the screenshot. Let's add a tag for a final review.

  • mcdruid committed 4c0e15a7 on 7.x
    Issue #2978218 by heilop, poker10, langelhc: Add "delete" link on node...
mcdruid’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: -Pending Drupal 7 commit

Looks great, thanks!

Still needs the CR (which can be very simple).

poker10’s picture

I have drafted a simple CR: https://www.drupal.org/node/3405563

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.