[geary] Allow plurals for two strings
- From: Yosef Or Boczko <yoseforb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary] Allow plurals for two strings
- Date: Tue, 26 Nov 2013 02:47:51 +0000 (UTC)
commit c6d2cb4e83af7d115cd33c4dc4fcc043e780e820
Author: Yosef Or Boczko <yoseforb gmail com>
Date: Tue Nov 26 04:45:28 2013 +0200
Allow plurals for two strings
Need this for some language.
https://bugzilla.gnome.org/show_bug.cgi?id=713838
src/client/util/util-date.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/client/util/util-date.vala b/src/client/util/util-date.vala
index 16d8e35..a854de2 100644
--- a/src/client/util/util-date.vala
+++ b/src/client/util/util-date.vala
@@ -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()];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]