Broken entity encoding in translated "Emoji & Symbols" context menu entry
Reported by
eaton....@gmail.com,
Jun 25 2018
|
|||||||||||||||||||||||||
Issue descriptionChrome Version: 67.0.3396.87 What steps will reproduce the problem? (1) In Chrome's preferences, set the preferred language to "English (United Kingdom)". (2) Right-click in a text input to open the context menu. What is the expected result? A menu item named "Emoji & Symbols". What happens instead? A menu item named "Emoji amp;amp; Symbols". Please provide any additional information below. Attach a screenshot if possible. https://github.com/chromium/chromium/blob/master/ui/strings/translations/ui_strings_en-GB.xtb#L93 is the relevant string.
,
Jun 26 2018
eaton.alf@ Thanks for the issue. Able to reproduce the issue on Mac OS 10.13.3 on the reported version 67.0.3396.87, but the issue is not observed on the latest Stable 67.0.3396.99. Request you to retry the issue on latest stable and let us know if the issue still persists. You can download latest chrome stable from URL : https://www.chromium.org/getting-involved/dev-channel Thanks!
,
Jun 26 2018
Krishna, You updated the drop that had the incorrect encoding.
,
Jun 26 2018
I've updated to Chrome 67.0.3396.99 and still see the same encoding error in the menu item.
,
Jun 27 2018
Still a problem on macOS 10.13.4 and Chrome Canary 69.0.3474.0
,
Jun 27 2018
I think an email address has been entered in the "status" field of this issue, instead of the "cc" field?
,
Jun 27 2018
Hi All, Thanks for raising this bug. This is more of a functional case, coding issue. I am not quite sure of a language POC can fix this. I'll be looping in the Engineering Team to assist. Kind Regards!
,
Jun 27 2018
,
Jun 27 2018
Thank you for providing more feedback. Adding the requester to the cc list. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jun 27 2018
+jshin@ (i18n Eng)
,
Jun 28 2018
,
Jun 28 2018
Hi All, I have reported this to the language POC to fix the string. I'll notify you all once it is done. Kind Regards!
,
Jun 29 2018
Thank you!
,
Jul 3
Removing Needs-TestConfirmation label as per comment #12.
,
Jul 3
The file containing the error (ui/strings/translations/ui_strings_en-GB.xtb) has been changed, but not corrected. Diff: https://chromium.googlesource.com/chromium/src/+/a1981d69db4056f61385a52f0a5fc3d14ac6f891%5E%21/#F432 The string is now displayed as "Emoji Symbols", instead of the expected "Emoji & Symbols". To get the correct behaviour the xtb string should be "Emoji && Symbols". I don't know why there need to be two & but I've compiled and tested it and it works, but apparently the change has to be made by a special person. Please get it right this time
,
Jul 3
Hi All, The string has been fixed as I've checked. Marking this ticket as fixed. Regards!
,
Jul 3
Comment 15 is correct. Reopening.
,
Jul 3
You need two "&" things in the middle of the string, not just one. Please refer to the en-US string for reference.
,
Jul 3
Thanks for flagging. This has been forwarded. I'll update you all for the progress. Regards!
,
Jul 3
Hi All, Please see the response below from en-GB locale: I'm pretty sure that's how it was originally for en-GB and I was asked to change it. I think it would be safer all round if I just changed it to "Emoji and symbols" to avoid any display issues. Would you agree? Almost all other languages use their word for "and" rather than an ampersand, e.g. French uses "Emoji et symboles". Please advise.
,
Jul 3
Let's back up. > I'm pretty sure that's how it was originally for en-GB and I was asked to change it. Alas, no. This string in en-US is written "Emoji && Symbols" and displayed as "Emoji & Symbols". This bug was that it was localized as "Emoji && Symbols" which displayed incorrectly. It was changed to "Emoji & Symbols" which *still* displays incorrectly. If you think it best to use "and" here, we can change it across all en locales for consistency. Otherwise the simple fix it to just plug in the string "Emoji && Symbols" to match en-US.
,
Jul 4
Regarding the change from '&' to 'and'. In the ui_strings.grd file the emoji string has been divided into macOS and not macOS platforms with the note saying "The context menu item to display the OS-provided emoji picker."(https://cs.chromium.org/chromium/src/ui/strings/ui_strings.grd?q=Emoji&l=510) Somehow I interpreted it as meaning that it should be named after the string for the native button to open the emoji picker. I realise now that I might have interpreted that wrong, but I couldn't find any reason to name them different things for different platforms. The native string in macOS use '&'. Personally I think 'and' would be better though. Thoughts?
,
Jul 4
If we're going to the trouble of doing "if Mac" to give the Mac its own string, let's exactly match them.
,
Jul 5
Hi All, They have updated it now as what was requested. Please let me know via this bug if that display correctly or if they should change it to "and" instead. Regards!
,
Jul 5
I have to wait until the string sync; will get back to you.
,
Jul 9
Issue 860672 has been merged into this issue.
,
Jul 9
,
Jul 10
Translation extraction/dump completed, pls check now. Pls request a merge to M68 if needed. Thank you.
,
Jul 10
https://cs.chromium.org/chromium/src/ui/strings/translations/ui_strings_en-GB.xtb?type=cs&q=5463830097259460683&g=0&l=93 <translation id="5463830097259460683">Emoji &amp;&amp; Symbols</translation> It is broken again. Is the TC incapable of what we need it to do!?
,
Jul 10
No, the TC is fine. https://cs.chromium.org/search/?q=%26amp;%26amp;+5463830097259460683&type=cs The ampersands are correct in ta, te, id, ko, ms, mr, vi, and de. They need to be correct in en-GB.
,
Jul 10
jshin@/melliem@/srahim@, could you ptal comment #30 and see what can be done for en-GB?
,
Jul 10
The original string is Emoji && Symbols: https://cs.chromium.org/chromium/src/ui/strings/ui_strings.grd?rcl=58a1bf4b447082c35058966ecf45abd86bf8f6e7&l=516
,
Jul 10
In TC, for en-GB, it's "translated" into ( http://shortn/_MDL8eoibGG ) Emoji && Symbols For Indonesian, the 'translation' is ( http://shortn/_Ujwwt9Zdh8 ) Emoji && Symbols . I think it's a 'mistranslation' in en-GB. en-GB has literal '&&' instead of '&&'. I made a suggestion to make en-GB like Indonesian.
,
Jul 10
It seems like the TC automatically does the handling of the entities. I agree with jsin; en-GB should do whatever id is doing.
,
Jul 10
ramyan@: a question about your change at https://chromium-review.googlesource.com/c/chromium/src/+/999008 . Could you tell us why you used '&&' instead of '&" (singple ampersand) ?
,
Jul 10
&& works, & doesn't. See comment 15 in this bug. If you use just one "&" then it doesn't show up, as "&" is a marker for the accelerator shortcut in a menu.
,
Jul 10
Ok. Thanks. I'll just override in TC to have '&&' (literal). That should fix en-GB. I don't know how strings for branches are handled. If necessry, xtb file for en-GB can be directly edited in Chromium tree for branch cherry-pick.
,
Jul 11
Regarding the question in comment #35: avi@chromium.org has the correct explanation in comment #36. '&&' is required to escape the '&' BTW: we used 'Emoji & Symbols' rather than 'Emoji and Symbols' because the former is the text in Mac's native Edit menu.
,
Jul 12
,
Jul 12
Yes! 69 is fixed. It probably makes sense to hand-fix this on 68 and maybe 67.
,
Jul 12
This bug requires manual review: We are only 11 days from stable. Please contact the milestone owner if you have questions. Owners: cmasso@(Android), kariahda@(iOS), bhthompson@(ChromeOS), abdulsyed@(Desktop) For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jul 12
+Yana FYI
,
Jul 12
Krishna - an you please advise whether it's safe to merge this back into 68? It's now been an issue on Mac since we launched M67 so it'd be nice to not have En-GB users wait an entire milestone for a fix, but I prefer we don't break the build.
,
Jul 12
AFAIK, the change was from TC side so no merge to M68 is needed. This should be fixed in 68.0.3440.60+ as I ran full translation extraction/dump process on M68 yesterday. jshin@, pls correct me if I'm missing anything here. +manoranjanr@ to get this verified by test team on latest canary and 68.0.3440.60+.
,
Jul 13
Yes! I see the fix in https://chromium.googlesource.com/chromium/src/+/68.0.3440.60/ui/strings/translations/ui_strings_en-GB.xtb . As long as we do one more respin (68 is at 68.0.3440.59 right now) we'll be great.
,
Jul 13
Thank you avi@ for confirmation at #45. Next M68 Beta release will be on Wednesday, 07/18 which will include this fix.
,
Jul 13
Thanks for catching & fixing this!
,
Jul 13
I was able to repro the issue on market beta 68.0.3440.59 on Mac OS 10.13.3 by passing- defaults write com.google.Chrome AppleLanguages '(en-gb)' from the command terminal and launching chrome. Verified on the latest M-68(68.0.3440.61) and this seems to be working fine there. No new canary is available due to Issue 863288 to verify the same in M-69. Attaching the screenshots and adding the verified label for M-68.
,
Jul 13
Please mark OS
,
Jul 13
No merge needed as listed in comments above.
,
Jul 14
The "&" is only present in the Mac version of the string.
,
Jul 16
Fixed on the latest Mac canary(10.13.3) 69.0.3493.0 as well.
,
Aug 13
|
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by viswa.karala@chromium.org
, Jun 25 2018