[gimp] app: make version + revision string translatable.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: make version + revision string translatable.
- Date: Sat, 4 Apr 2020 14:39:19 +0000 (UTC)
commit 023919d606c6c8439af3ac2dc47f5ea0d3861a3c
Author: Jehan <jehan girinstud io>
Date: Sat Apr 4 16:37:30 2020 +0200
app: make version + revision string translatable.
Also add some comment for translators on this string and another.
Thanks to Piotr Drąg for commenting on these.
app/dialogs/about-dialog.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/app/dialogs/about-dialog.c b/app/dialogs/about-dialog.c
index 7df4d80a30..d93964f879 100644
--- a/app/dialogs/about-dialog.c
+++ b/app/dialogs/about-dialog.c
@@ -117,7 +117,11 @@ about_dialog_create (GimpCoreConfig *config)
copyright = g_strdup_printf (GIMP_COPYRIGHT, GIMP_GIT_LAST_COMMIT_YEAR);
if (gimp_version_get_revision () > 0)
- version = g_strdup_printf ("%s (revision %d)", GIMP_VERSION,
+ /* Translators: the %s is GIMP version, the %d is the
+ * installer/package revision.
+ * For instance: "2.10.18 (revision 2)"
+ */
+ version = g_strdup_printf (_("%s (revision %d)"), GIMP_VERSION,
gimp_version_get_revision ());
else
version = g_strdup (GIMP_VERSION);
@@ -424,6 +428,10 @@ about_dialog_add_update (GimpAboutDialog *dialog,
datetime = g_date_time_new_from_unix_local (config->check_update_timestamp);
date = g_date_time_format (datetime, "%x");
time = g_date_time_format (datetime, "%X");
+ /* Translators: first string is the date in the locale's date
+ * representation (e.g., 12/31/99), second is the time in the
+ * locale's time representation (e.g., 23:13:48).
+ */
subtext = g_strdup_printf (_("Last checked on %s at %s"), date, time);
g_date_time_unref (datetime);
g_free (date);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]