Bug 967378 - Part 2: Use proper plural form for 'total time' in charts, r=flod, rcampbell

This commit is contained in:
Victor Porof 2014-02-04 16:57:09 +02:00
parent c4c2c3b626
commit ac25e2962e
2 changed files with 8 additions and 5 deletions

View File

@ -2388,8 +2388,9 @@ PerformanceStatisticsView.prototype = {
return L10N.getFormatStr("charts.totalSize", string);
},
time: total => {
let string = L10N.numberWithDecimals(total / 1000, REQUEST_TIME_DECIMALS);
return L10N.getFormatStr("charts.totalTime2", string);
let seconds = total / 1000;
let string = L10N.numberWithDecimals(seconds, REQUEST_TIME_DECIMALS);
return PluralForm.get(seconds, L10N.getStr("charts.totalSeconds")).replace("#1", string);
},
cached: total => {
return L10N.getFormatStr("charts.totalCached", total);

View File

@ -166,9 +166,11 @@ charts.cacheDisabled=Empty cache
# in the performance analysis view for total requests size, in kilobytes.
charts.totalSize=Size: %S KB
# LOCALIZATION NOTE (charts.totalTime2): This is the label displayed
# in the performance analysis view for total requests time, in seconds.
charts.totalTime2=Time: %S seconds
# LOCALIZATION NOTE (charts.totalSeconds): Semi-colon list of plural forms.
# See: http://developer.mozilla.org/en/docs/Localization_and_Plurals
# This is the label displayed in the performance analysis view for the
# total requests time, in seconds.
charts.totalSeconds=Time: #1 second;Time: #1 seconds
# LOCALIZATION NOTE (charts.totalCached): This is the label displayed
# in the performance analysis view for total cached responses.