New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 618105 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Sep 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Battery power time display in SysTray needs to be pluralized

Project Member Reported by glevin@chromium.org, Jun 7 2016

Issue description

Version: 53.0.2758.0

What steps will reproduce the problem?
(1) Switch to language where remaining battery time should be pluralized (e.g. Romanian)
(2) Open up SysTray menu, observe battery percent - time readout

What is the expected output?
Translation of "left" (as in "5:00 left") is properly pluralized.

What do you see instead?
The non-time part of the string doesn't change regardless of time remaining.

For example, in Romanian, we might see
0 % — 0:01 rămas
10 % — 1:00 rămasă
11 % — 1:05 rămasă
50 % — 5:00 rămase
51 % — 5:05 rămase

(This example came from i18n team.)  This is especially tricky due to both singular/plural and masculine/feminine versions of "remains".  It's also complicated by the usual pluralization mechanic, l10n_util::GetPluralStringFUTF16(), taking an int, not a time, as an argument.  This came up during work on  Issue 612181 , but was postponed.  See IDS_ASH_STATUS_TRAY_BATTERY_TIME_LEFT_SHORT; IDS_ASH_STATUS_TRAY_BATTERY_TIME_UNTIL_FULL_SHORT might also need attention.
 
Project Member

Comment 1 by sheriffbot@chromium.org, Jun 8 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 2 by zork@chromium.org, Jun 9 2017

Owner: zork@chromium.org
Status: Available (was: Untriaged)

Comment 3 by kmaoy@google.com, Jul 4 2017

Hi there! Thank you for bringing this up to our attention. Could you please provide further information regarding the issue? A screenshot/screencast will be much appreciated.
These screenshots are from the system tray menu.  All strings read "Timp rămas", even though (according to i18n team), the string should change according to the amount of time remaining (see issue description).

Please let me know if I can provide any further info.
Romanian_battery_2hr.png
8.4 KB View Download
Romanian_battery_1hr.png
8.5 KB View Download
Romanian_battery_1min.png
8.3 KB View Download

Comment 5 Deleted

Labels: -Hotlist-Recharge-Cold
Hi,

This has been reported and currently triaging the bug. We'll update you once it is fixed.

b/65589186

Regards!
Status: Fixed (was: Available)
Hi,

This has been fixed by the language POC. Will pushed it through to a live version now.

Feel free to provide some feedback if issue still exist.

Regards!

Comment 9 by dchan@chromium.org, Jan 22 2018

Status: Archived (was: Fixed)

Comment 10 by dchan@chromium.org, Jan 23 2018

Status: Fixed (was: Archived)

Sign in to add a comment