Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently, the "Modify entity values" operation can only modify fields of the same language as the entity source language. It's true for the entity translation enabled entities.
There is no way way to update field values in other languages. It would be good to provide this ability.
Comment | File | Size | Author |
---|---|---|---|
#3 | views_bulk_operations-update_field_translations-2474031-3.patch | 4.94 KB | Andrej Galuf |
Comments
Comment #1
Leksat CreditAttribution: Leksat at Amazee Labs commentedAttached patch does the job for me.
Comment #2
colanCode looks good and works for me.
What I'm interested in now is the source language. I'm using tokens to grab other field data, and it always grabs the default language, even when the current language is something else, but this is another issue.
Comment #3
Andrej Galuf CreditAttribution: Andrej Galuf commented#1 doesn't quite work as expected. The unfortunate use of $language causes the options to overwrite global $language for the form. Resubmitting the patch with the variable renamed to $language_option, otherwise no changes.
Comment #4
Andrej Galuf CreditAttribution: Andrej Galuf commentedComment #5
morybel CreditAttribution: morybel commentedI know it's been a while, but I was missing that feature bad!!
On a side note, I need to add that you have to stay on your original language for it to work. I have wasted my entire morning trying to translate on my second language side. Once I figured I was not on the right side language, everything started working as expected.
Thank you for this patch.
Comment #6
Andrey Inkin CreditAttribution: Andrey Inkin as a volunteer and commented#3 is working well, thanks @Leksat and @Andrej Galuf for doing great job!
Would be great to have this feature added in.
Comment #7
Chris Matthews CreditAttribution: Chris Matthews commented