[gnome-software] Make remaining date strings translatable



commit 155ec7b16ff6eb79464195cbf7fc43278fe2469b
Author: AsciiWolf <mail asciiwolf com>
Date:   Fri Nov 15 16:18:34 2019 +0100

    Make remaining date strings translatable

 src/gs-history-dialog.c | 4 +++-
 src/gs-review-row.c     | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-history-dialog.c b/src/gs-history-dialog.c
index f84d6205..c845265d 100644
--- a/src/gs-history-dialog.c
+++ b/src/gs-history-dialog.c
@@ -105,7 +105,9 @@ gs_history_dialog_set_app (GsHistoryDialog *dialog, GsApp *app)
                if (timestamp == GS_APP_INSTALL_DATE_UNKNOWN) {
                        date_str = g_strdup ("");
                } else {
-                       date_str = g_date_time_format (datetime, "%e %B %Y");
+                       /* TRANSLATORS: This is the date string with: day number, month name, year.
+                       i.e. "25 May 2012" */
+                       date_str = g_date_time_format (datetime, _("%e %B %Y"));
                }
                widget = gtk_label_new (date_str);
                g_object_set (widget,
diff --git a/src/gs-review-row.c b/src/gs-review-row.c
index 11a73ea8..e8ed891e 100644
--- a/src/gs-review-row.c
+++ b/src/gs-review-row.c
@@ -59,7 +59,9 @@ gs_review_row_refresh (GsReviewRow *row)
        gtk_label_set_text (GTK_LABEL (priv->author_label), reviewer);
        date = as_review_get_date (priv->review);
        if (date != NULL)
-               text = g_date_time_format (date, "%e %B %Y");
+               /* TRANSLATORS: This is the date string with: day number, month name, year.
+               i.e. "25 May 2012" */
+               text = g_date_time_format (date, _("%e %B %Y"));
        else
                text = g_strdup ("");
        gtk_label_set_text (GTK_LABEL (priv->date_label), text);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]