Problem/Motivation

- Install with Standard profile in English.
- Turn on the 4 multilingual modules.
- Add Spanish language.
- Make User content translatable (both content types). Note that by default, the Picture field's alt/title text are translatable but not the image file itself. Also note that by default, the Picture field on User does not have alt or title text enabled. Leave these defaults as they are.

Now go to your user 1 account and translate it into Spanish. The Picture field does not say "all languages" on it, but if you upload a new picture, it does in fact get used for all languages.

I suspect this is a problem for all file/image fields, but I haven't tested it for anything but the User Picture field.

Proposed resolution

Fix the UI so it says "all languages" on the Picture file field.

Remaining tasks

Make a patch. Test it.

User interface changes

UI will correctly tell you when changing files/images will affect all translations.

API changes

None.

Data model changes

None.

Comments

jhodgdon created an issue. See original summary.

rosinegrean’s picture

Assigned: Unassigned » rosinegrean
peterarnold’s picture

Assigned: rosinegrean » peterarnold
Status: Active » Needs review
StatusFileSize
new639 bytes

This fix will modify the core/profiles/standard/config/install/field.field.user.user.user_picture.yml and update the description filed.
I'm not sure I understood exactly if this is what you want.

jhodgdon’s picture

Status: Needs review » Needs work

Thanks for trying! But sorry -- that's not the right thing to do.

Whether the Picture field is used for all languages or can be "translated" (a different picture supplied for each language) is configurable. By default, file or at least image fields are marked as not translatable, meaning the same file is used for all languages, but you can change that on the content translation settings page.

The problem is that the UI for translating this file field, from the Content Translation module, is not properly marking the field as "all languages" if the file is marked not translatable. So the fix needs to be somewhere in the Content Translation module, and we should not be changing the description of the Picture field.

peterarnold’s picture

Assigned: peterarnold » Unassigned
perseaalexandra’s picture

I could not reproduce the issue. If picture field is marked not translatable, translation module sets it to all languages. Could you give more explanation in reproducing the problem or maybe some pictures?

perseaalexandra’s picture

Assigned: Unassigned » perseaalexandra
jhodgdon’s picture

Issue summary: View changes
StatusFileSize
new22.72 KB

Did you follow the steps in the issue summary? When I do exactly those steps, here is what I see for the Picture field when I am translating user 1:
Screen shot of translating the User Picture field

As you can see, there is no indication that when I change this field, I will be changing the value for all languages. However, if I do change the image file, it will apply to all languages. Hence, the bug.

perseaalexandra’s picture

Assigned: perseaalexandra » Unassigned

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

matsbla’s picture

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.15 was released on June 1st, 2022 and is the final full bugfix release for the Drupal 9.3.x series. Drupal 9.3.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.4.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

smustgrave’s picture

Status: Needs work » Closed (duplicate)
Issue tags: +Bug Smash Initiative

This was brought up as daily triage ticket in the bugsmash channel.

Closing out as a duplicate of https://www.drupal.org/project/drupal/issues/3152587

If anyone disagrees please reopen with how this is different.

Thanks!

quietone’s picture

I agree with #23. This issue is earlier but is specific to the picture field. The other issue is not so specific so let's go with that one.