Allow plurals for two strings

Need this for some language.

https://bugzilla.gnome.org/show_bug.cgi?id=713838
This commit is contained in:
Yosef Or Boczko 2013-11-26 04:45:28 +02:00
parent a95bc467fc
commit c6d2cb4e83

View file

@ -164,10 +164,10 @@ private string pretty_print_coarse(CoarseDate coarse_date, ClockFormat clock_for
return _("Now");
case CoarseDate.MINUTES:
return _("%dm ago").printf(diff / TimeSpan.MINUTE);
return ngettext("%dm ago", "%dm ago", (ulong) (diff / TimeSpan.MINUTE)).printf(diff / TimeSpan.MINUTE);
case CoarseDate.HOURS:
return _("%dh ago").printf(diff / TimeSpan.HOUR);
return ngettext("%dh ago", "%dh ago", (ulong) (diff / TimeSpan.HOUR)).printf(diff / TimeSpan.HOUR);
case CoarseDate.TODAY:
fmt = xlat_pretty_dates[clock_format.to_index()];