[gnome-software] updates: Add more strings to the last checked string
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] updates: Add more strings to the last checked string
- Date: Fri, 21 Mar 2014 11:30:07 +0000 (UTC)
commit 02bfa81510a3cfab3d2177340b47ccb65b38d321
Author: Kalev Lember <kalevlember gmail com>
Date: Tue Mar 11 08:48:39 2014 +0100
updates: Add more strings to the last checked string
These were left out of 3.12 at the request of the i18n team.
https://mail.gnome.org/archives/gnome-i18n/2014-March/msg00042.html
src/gs-shell-updates.c | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell-updates.c b/src/gs-shell-updates.c
index ae6d45d..6a9a19d 100644
--- a/src/gs-shell-updates.c
+++ b/src/gs-shell-updates.c
@@ -137,6 +137,30 @@ gs_shell_updates_last_checked_time_string (GsShellUpdates *shell_updates)
/* TRANSLATORS: Time in 12h format */
format_string = _("%l:%M %p");
}
+ } else if (days_ago < 2) { // yesterday
+ if (use_24h_time) {
+ /* TRANSLATORS: This is the word "Yesterday" followed by a
+ time string in 24h format. i.e. "Yesterday, 14:30" */
+ format_string = _("Yesterday, %R");
+ } else {
+ /* TRANSLATORS: This is the word "Yesterday" followed by a
+ time string in 12h format. i.e. "Yesterday, 2:30 PM" */
+ format_string = _("Yesterday, %l:%M %p");
+ }
+ } else if (days_ago < 3) {
+ format_string = _("Two days ago");
+ } else if (days_ago < 4) {
+ format_string = _("Three days ago");
+ } else if (days_ago < 5) {
+ format_string = _("Four days ago");
+ } else if (days_ago < 6) {
+ format_string = _("Five days ago");
+ } else if (days_ago < 7) {
+ format_string = _("Six days ago");
+ } else if (days_ago < 8) {
+ format_string = _("One week ago");
+ } else if (days_ago < 15) {
+ format_string = _("Two weeks ago");
} else {
/* TRANSLATORS: This is the date string with: day number, month name, year.
i.e. "25 May 2012" */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]