Problem/Motivation
When you try to translate a string using the 'User interface translation', you will see a notice that you need to submit the form to save the values.
Changes made in this table will not be saved until the form is submitted.
An asterisk is appended to the original piece of text (without space and without any color variation). This made me type the asterisk in the Translation field too.
Steps to reproduce
- Enable the Language and Interface Translation modules.
- Go to
/admin/config/regional/language and add a new language.
- Go to
/admin/config/regional/translate to translate interface text.
- Update the translation string value for anything.
- Note the asterisk next to the
Source string.
Proposed resolution
My suggestion would be to give the asterisk a color and add some spacing between the asterisk and the text. See screenshot for the current situation and my proposal.
Current

Proposal

Remaining tasks
Create patch
Review patch
- Test patch
- Commit
User interface changes
Asterisk will be differentiated from the text to be translated.
API changes
Data model changes
Release notes snippet
Comments
Comment #2
BarisW commentedThis probably needs to get into the 'stable' team.
Comment #11
kristen polThanks for the patch. Not sure this is a bug so switched it to task.
1) I tested without and with the patch and got the same behavior as the original screenshots.
2) Patch applies cleanly to 9.1.x.
3) CSS change seems fine and I see #f00 used in various other places in core.
4) Kicked off tests on 9.1.x.
5) From what I understand though,
stablecannot be changed so that CSS change should be removed. https://www.drupal.org/docs/8/core/themes/stable-themeBack to "Needs work" for item 5.
Comment #12
kristen polForgot to add my screenshots.
Comment #16
joshua1234511Could not replicate the issue on 9.4.x-dev
Steps followed to validate the issue.
- Enable the Language and Interface Translation module
- Got to Languages "/admin/config/regional/language" and add a new language.
- Next go to User interface translation "/admin/config/regional/translate".
- Try to add/update the translation string value.
Am I missing anything as I can see the form does not update the values in Ajax. If its not an Ajax form anymore this won't be an issue.

Comment #17
kristen polThe patch in #2 applies cleanly to Drupal 9.3, 9.4, and 10.
Since @joshua1234511 wasn't able to reproduce in #16, tagging for steps to reproduce and moving to postponed.
Comment #18
kristen polI have confirmed that the
Changes made in this table will not be saved until the form is submitted.text and the asterisks are no longer showing up. I tested with all themes. Not sure why it's not showing up anymore. The code is still in 9.4:Marking this as postponed for now. I did update the issue summary to include steps to reproduce and use the template.