Problem/Motivation

When using a view with multiple languages translated content, if you select a node that is different from the interface language, it doesn't update the translated node, but the interface language.

Steps to reproduce

Create a view using some content type that allows translations, translate a node of that content type to multiple languages, and let it be listed on the view you created. Now try to edit the node in a language that is different from the interface language you are using.

Proposed resolution

Change the formSubmit to account for the language from the node that is being modified.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

isa.bel created an issue. See original summary.

isa.bel’s picture

StatusFileSize
new1.04 KB

We have created a patch for this issue. I will attach it here to be reviewed.

portulaca’s picture

I don't know if my configuration applies for this issue, I wanted to share info just in case.

I had problems with Views Bulk Edit working on a multilingual site so I tried this patch. It didn't make any difference. Canceling the form works even without this patch, but trying to submit the changes doesn't, with or without this patch.

For me the problem was the required fields, and the patch from https://www.drupal.org/project/views_bulk_edit/issues/3024419#comment-15... didn't help either.

I was able to update my nodes by changing all the Required field options apart from Title (for Title I chose to Append and left it empty).

With that modification to my CT config Views Bulk Edit works, even without the patch above, to update all the node translations, the current interface language node and all the others as well.

parisek’s picture

Version: 8.x-2.9 » 8.x-2.x-dev
Status: Active » Reviewed & tested by the community

Working for me, thank you

farse’s picture

StatusFileSize
new1.22 KB

I've created a new patch as the original only updated the first translation in the row if there were more than 1 translation, this should update all the selected translations now.

farse’s picture

StatusFileSize
new1.22 KB

sorry, resubmitting patch with correct comment number

farse’s picture

StatusFileSize
new1.15 KB

re-sumbitting, the format of the file was weird for some reason

farse’s picture

anybody’s picture

Status: Reviewed & tested by the community » Needs work

@farse could you please turn the last patch into a MR?

anybody’s picture

Priority: Normal » Major

anybody’s picture

Status: Needs work » Reviewed & tested by the community
Issue tags: +Needs tests

Please test and review. Would be good to have a test for a multilingual environment!

anybody’s picture

anybody’s picture

grevil’s picture

Version: 8.x-2.x-dev » 3.x-dev
Assigned: Unassigned » grevil
Issue tags: -Needs tests
grevil’s picture

Assigned: grevil » Unassigned

Works great! Thank you :)

grevil’s picture

  • grevil committed 7d192f16 on 3.x authored by anybody
    Issue #3391433 by farse, anybody: Wrong language is being updated
    
grevil’s picture

Status: Reviewed & tested by the community » Fixed

All green! Merging, thanks! :)

Status: Fixed » Closed (fixed)

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