Closed
Bug 1360902
Opened 8 years ago
Closed 8 years ago
Improve localization of netmonitor waterfall tooltip
Categories
(DevTools :: Netmonitor, enhancement)
DevTools
Netmonitor
Tracking
(firefox55 fixed)
RESOLVED
FIXED
Firefox 55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: vkatsikaros, Assigned: vkatsikaros)
Details
Attachments
(1 file)
As mentioned in https://reviewboard.mozilla.org/r/130856/#review137874 joining localized strings with a hardcoded latin comma is not a good practive localization-wise.
Comment 1•8 years ago
|
||
Thanks for filing the bug.
Is the tooltip always the same, i.e. does it always contain the same elements or they can change depending on the request/context? If it's the latter, it might become tricky to fix.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 4•8 years ago
|
||
mozreview-review |
Comment on attachment 8863216 [details]
Bug 1360902 - Improve localization of netmonitor waterfall tooltip.
https://reviewboard.mozilla.org/r/135020/#review137932
::: devtools/client/locales/en-US/netmonitor.properties:222
(Diff revision 2)
>
> # LOCALIZATION NOTE (networkMenu.totalMS): This is the label displayed
> # in the network menu specifying the time for a request to finish (in milliseconds).
> networkMenu.totalMS=→ %S ms
>
> +# LOCALIZATION NOTE (netmonitor.waterfall.tooltip.separator): This is part of the tooltip
Added to give some context to translators
::: devtools/client/netmonitor/src/components/request-list-column-waterfall.js:101
(Diff revision 2)
> tooltip.push(L10N.getFormatStr("netmonitor.waterfall.tooltip.total", totalTime));
> }
>
> - return { boxes, tooltip: tooltip.join(", ") };
> + return {
> + boxes,
> + tooltip: tooltip.join(L10N.getStr("netmonitor.waterfall.tooltip.separator"))
I imagine this will work well for RTL languages?
Example: changing netmonitor.waterfall.tooltip.separator to 'ARABIC COMMA' U+060C and a whitespace?
Assignee | ||
Comment 5•8 years ago
|
||
Yep, it's the later :( I tried to workaround the problem with the above patch.
Comment 6•8 years ago
|
||
mozreview-review |
Comment on attachment 8863216 [details]
Bug 1360902 - Improve localization of netmonitor waterfall tooltip.
https://reviewboard.mozilla.org/r/135020/#review137934
Feel free to land with the updated comment
::: devtools/client/locales/en-US/netmonitor.properties:222
(Diff revision 2)
>
> # LOCALIZATION NOTE (networkMenu.totalMS): This is the label displayed
> # in the network menu specifying the time for a request to finish (in milliseconds).
> networkMenu.totalMS=→ %S ms
>
> +# LOCALIZATION NOTE (netmonitor.waterfall.tooltip.separator): This is part of the tooltip
Thanks for the quick turn-around. If the tooltip itself is dynamic we don't have a better solution.
I would rephrase the comment like this, but the approach is good.
# This string is used to concatenate tooltips (netmonitor.waterfall.tooltip.*)
# in the requests waterfall for total time (in milliseconds). \\u0020 represents
# a whitespace. You can replace this with a different character, e.g. an hyphen
# or a period, if a comma doesn't work for your language.
Attachment #8863216 -
Flags: review?(francesco.lodolo) → review+
Comment hidden (mozreview-request) |
Assignee | ||
Comment 8•8 years ago
|
||
Thanks for the comments Francesco. I don't think I can land commits, only push to try. I pushed an update and just triggered a try.
Flags: needinfo?(francesco.lodolo)
Pushed by francesco.lodolo@mozillaitalia.org:
https://hg.mozilla.org/integration/autoland/rev/a8322bcff72e
Improve localization of netmonitor waterfall tooltip. r=flod
Comment 10•8 years ago
|
||
In case, you can set the checkin-need keyword in the bug, a sheriff will land it from mozreview. The try build seems green enough though.
Flags: needinfo?(francesco.lodolo)
Comment 11•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•