[gnome-software/1111-version-history-box] fixup! src: Move time-to-string function to gs-common
- From: Phaedrus Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1111-version-history-box] fixup! src: Move time-to-string function to gs-common
- Date: Wed, 10 Feb 2021 20:03:54 +0000 (UTC)
commit 81be47f6b544b7bf4f1030ec37f471730a553c04
Author: Phaedrus Leeds <mwleeds endlessos org>
Date: Wed Feb 10 12:03:47 2021 -0800
fixup! src: Move time-to-string function to gs-common
src/gs-common.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/gs-common.c b/src/gs-common.c
index d389981e9..6e69067d9 100644
--- a/src/gs-common.c
+++ b/src/gs-common.c
@@ -692,7 +692,10 @@ gs_utils_time_to_string (gint64 unix_time_seconds)
months_ago = days_ago / 30;
years_ago = weeks_ago / 52;
- if (hours_ago < 1)
+ if (minutes_ago < 5) {
+ /* TRANSLATORS: something happened less than 5 minutes ago */
+ return g_strdup (_("Just now"));
+ } else if (hours_ago < 1)
return g_strdup_printf (ngettext ("%d minute ago",
"%d minutes ago", minutes_ago),
minutes_ago);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]