[baobab] cellrenderers: Fix printf format strings
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab] cellrenderers: Fix printf format strings
- Date: Tue, 1 Nov 2016 18:54:06 +0000 (UTC)
commit 1a2c7f4a4aba66dfc9429df3699458a5f0db1239
Author: Jürg Billeter <j bitron ch>
Date: Tue Nov 1 19:52:40 2016 +0100
cellrenderers: Fix printf format strings
src/baobab-cellrenderers.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/baobab-cellrenderers.vala b/src/baobab-cellrenderers.vala
index cfafa87..95c02eb 100644
--- a/src/baobab-cellrenderers.vala
+++ b/src/baobab-cellrenderers.vala
@@ -111,15 +111,15 @@ namespace Baobab {
} else if (ts < 31 * TimeSpan.DAY) {
var days = (ulong) (ts / TimeSpan.DAY);
// Translators: when the last modified time is "days" days ago
- text = ngettext ("%d day", "%d days", days).printf (days);
+ text = ngettext ("%lu day", "%lu days", days).printf (days);
} else if (ts < 365 * TimeSpan.DAY) {
var months = (ulong) (ts / (31 * TimeSpan.DAY));
// Translators: when the last modified time is "months" months ago
- text = ngettext ("%d month", "%d months", months).printf (months);
+ text = ngettext ("%lu month", "%lu months", months).printf (months);
} else {
var years = (ulong) (ts / (365 * TimeSpan.DAY));
// Translators: when the last modified time is "years" years ago
- text = ngettext ("%d year", "%d years", years).printf (years);
+ text = ngettext ("%lu year", "%lu years", years).printf (years);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]