* Console: Display durations with new formatDuration2()

This commit is contained in:
zzz
2010-11-06 12:28:38 +00:00
parent 1bc563832e
commit 010a1fde3f
17 changed files with 145 additions and 69 deletions

View File

@ -78,7 +78,12 @@ class SummaryRenderer {
def.setBaseValue(1024);
if (!hideTitle) {
String title;
String p = DataHelper.formatDuration(_listener.getRate().getPeriod());
String p;
// we want the formatting and translation of formatDuration2(), except not zh, and not the  
if ("zh".equals(Messages.getLanguage(_context)))
p = DataHelper.formatDuration(_listener.getRate().getPeriod());
else
p = DataHelper.formatDuration2(_listener.getRate().getPeriod()).replace(" ", " ");
if (showEvents)
// Note to translators: all runtime zh translation disabled in this file, no font available in RRD
title = name + ' ' + _("events in {0}", p);