From: Christian Herdtweck Date: Tue, 12 Jul 2016 08:46:41 +0000 (+0200) Subject: update i18n-ed string for "day"/"days" since it clashed with UI X-Git-Tag: v2.9~21 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=c7bd7a65019d571a951b606306f5a3015433f24b;p=libi2ncommon update i18n-ed string for "day"/"days" since it clashed with UI --- diff --git a/src/timefunc.cpp b/src/timefunc.cpp index e956ee3..05aea1a 100644 --- a/src/timefunc.cpp +++ b/src/timefunc.cpp @@ -119,10 +119,8 @@ string make_nice_time(int seconds) int hours,minutes; split_daysec(seconds,&hours,&minutes,&seconds); - if (days==1) - out << i18n("1 day") << ", "; - else if (days>1) - out << days << ' ' << i18n("days") << ", "; + if (days>0) + out << days << " " << i18n_plural("day", "days", days) << ", "; out << setfill('0'); out << setw(2) << hours << ':' << setw(2) << minutes << ':' << setw(2) << seconds;