Allow plurals for two strings
Need this for some language. https://bugzilla.gnome.org/show_bug.cgi?id=713838
This commit is contained in:
parent
a95bc467fc
commit
c6d2cb4e83
1 changed files with 2 additions and 2 deletions
|
|
@ -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()];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue