Native (locale-specific) digits are NOT used in battery power display and warnings in SysTray |
|||
Issue description
Version: 52.0.2724.0
What steps will reproduce the problem?
(1) Set language to one with non-Arabic numerals (e.g., Bengali, Marathi, Persian)
(2) Open system tray menu
(3) (optional) Run down battery to cause a low power alert
What is the expected output? What do you see instead?
The numbers in the time ("left" or "until full") and battery percentage should use language-specific glyphs. Instead, numbers are always in Arabic. See attached screenshot: clock uses localized numbers, but battery time and percent do not.
This is being spun off of Issue 475351, which originally reported this issue, but is now being used to track all related i18n number problems. Note that Issue 126770 addresses related RTL issues with battery display.
,
May 19 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/5cff4d12a49e6164f4c12f0179cacf46a20d9fa4 commit 5cff4d12a49e6164f4c12f0179cacf46a20d9fa4 Author: glevin <glevin@chromium.org> Date: Thu May 19 19:22:04 2016 Fix i18n number formats in tray power displays BUG= 612181 TEST=Switch language to Bengali (India), open systray menu, notice that power values (% and time remaining) are displayed using Bengali, rather than Arabic, numberic characters. Review-Url: https://codereview.chromium.org/1951493002 Cr-Commit-Position: refs/heads/master@{#394830} [modify] https://crrev.com/5cff4d12a49e6164f4c12f0179cacf46a20d9fa4/ash/ash_chromeos_strings.grdp [modify] https://crrev.com/5cff4d12a49e6164f4c12f0179cacf46a20d9fa4/ash/system/chromeos/power/battery_notification.cc [modify] https://crrev.com/5cff4d12a49e6164f4c12f0179cacf46a20d9fa4/ash/system/chromeos/power/power_status_view.cc [modify] https://crrev.com/5cff4d12a49e6164f4c12f0179cacf46a20d9fa4/base/i18n/time_formatting.cc [modify] https://crrev.com/5cff4d12a49e6164f4c12f0179cacf46a20d9fa4/base/i18n/time_formatting.h [modify] https://crrev.com/5cff4d12a49e6164f4c12f0179cacf46a20d9fa4/base/i18n/time_formatting_unittest.cc
,
May 23 2016
,
Jun 7 2016
See Issue 618105 for related pluralization issue.
,
Jun 21 2016
Verified on ChromeOS 8481.0.0, 53.0.2773.0
,
Aug 30 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/a32e6d4c2800569bb486287fdbd17e6918d1d2d0 commit a32e6d4c2800569bb486287fdbd17e6918d1d2d0 Author: glevin <glevin@chromium.org> Date: Tue Aug 30 05:01:04 2016 Use FormatPercent() in PowerStatusView BUG= 612181 TEST=Should be no difference in battery percent display in SysTray menu Small cleanup from prior i18n work Review-Url: https://codereview.chromium.org/2286353002 Cr-Commit-Position: refs/heads/master@{#415129} [modify] https://crrev.com/a32e6d4c2800569bb486287fdbd17e6918d1d2d0/ash/common/system/chromeos/power/power_status_view.cc |
|||
►
Sign in to add a comment |
|||
Comment 1 by js...@chromium.org
, May 18 2016