Open
Bug 1255546
Opened 9 years ago
Updated 2 years ago
Issues with plural form and remaining download time
Categories
(Toolkit :: Downloads API, defect)
Toolkit
Downloads API
Tracking
()
NEW
People
(Reporter: safa1996alfulaij, Unassigned)
Details
The way that Firefox creates the remaining time text doesn't work well with some languages, Arabic for example.
Currently, there are separate strings for the time text (seconds, minutes, hours, days) and another one for joining that with the actual variable.
It looks like this right now:
seconds = second;seconds
timePair2=%1$S %2$S
Where %1$S is the variable (5,2, 423) and %2$S is the text (seconds, minutes)
That is a bad practice as some languages doesn't use the number (as digits) in some forms.
Related: Message in the mailing list: https://groups.google.com/forum/#!topic/mozilla.dev.l10n/Lt437W2D8ag
Comment 1•9 years ago
|
||
Moving to Toolkit::Download manager and CCing Paolo too.
Status: UNCONFIRMED → NEW
Component: Downloads Panel → Download Manager
Ever confirmed: true
Product: Firefox → Toolkit
Summary: Pluralization of remaining download time → Issues with plural form and remaining download time
Comment 2•9 years ago
|
||
This gets concatenated to e.g. "3 hours, 14 minutes remaining" or "11 seconds remaining". If the translation of "remaining" depends on the number (flexion), are there (supported) languages for which we will different flexions for the construct with two numbers (which might be a plural-like construct)? If the answer is "Yes", this is non-trivial until L20n gets used.
Please forward the ni? to Pike if necessary.
Flags: needinfo?(francesco.lodolo)
Comment 3•9 years ago
|
||
(In reply to Sebastian H. [:aryx][:archaeopteryx] from comment #2)
> Please forward the ni? to Pike if necessary.
Sorry but I can't understand what is the question for me.
The "remaining" example would be timeLeftSingle2 and timeLeftDouble2, and that's yet another issue not included in comment 0.
Everything is fixable in the current system, but it would require an explosion of strings. IMO the way to work around this is to use "Time remaining: %1$S, %2$S"
Flags: needinfo?(francesco.lodolo)
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•