Skip to content

Commit

Permalink
Bug 1360902 - Improve localization of netmonitor waterfall tooltip. r…
Browse files Browse the repository at this point in the history
…=flod

MozReview-Commit-ID: INXp80HJjUK
  • Loading branch information
vkatsikaros committed Apr 30, 2017
1 parent 88917b3 commit 282e8c5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions devtools/client/locales/en-US/netmonitor.properties
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@ networkMenu.sizeServiceWorker=service worker
# in the network menu specifying the time for a request to finish (in milliseconds).
networkMenu.totalMS=→ %S ms

# 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.
netmonitor.waterfall.tooltip.separator=,\u0020

# LOCALIZATION NOTE (netmonitor.waterfall.tooltip.total): This is part of the tooltip
# displayed in the requests waterfall for total time (in milliseconds).
netmonitor.waterfall.tooltip.total=Total %S ms
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ function timingBoxes(item) {
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"))
};
}

module.exports = RequestListColumnWaterfall;

0 comments on commit 282e8c5

Please sign in to comment.