[gimp] app: make a tooltip translatable and translate device axis strings.



commit 5302beb9471e67d3c4e124d7c20c93ddb5efd9f1
Author: Jehan <jehan girinstud io>
Date:   Tue Jun 9 10:58:28 2020 +0200

    app: make a tooltip translatable and translate device axis strings.
    
    Thanks to Cristian Secară on the developer mailing list to notice them.

 app/config/gimprc-blurbs.h         | 2 +-
 app/widgets/gimpdeviceinfoeditor.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/config/gimprc-blurbs.h b/app/config/gimprc-blurbs.h
index b20df73291..7f20b3739b 100644
--- a/app/config/gimprc-blurbs.h
+++ b/app/config/gimprc-blurbs.h
@@ -686,7 +686,7 @@ _("Use a single toolbox button for grouped tools.")
 _("Show the currently active image in the toolbox.")
 
 #define TOOLBOX_WILBER_BLURB \
-"Show the GIMP mascot at the top of the toolbox."
+_("Show the GIMP mascot at the top of the toolbox.")
 
 #define TRANSPARENCY_TYPE_BLURB \
 _("Sets the manner in which transparency is displayed in images.")
diff --git a/app/widgets/gimpdeviceinfoeditor.c b/app/widgets/gimpdeviceinfoeditor.c
index 0157a98125..64523db20a 100644
--- a/app/widgets/gimpdeviceinfoeditor.c
+++ b/app/widgets/gimpdeviceinfoeditor.c
@@ -450,7 +450,7 @@ gimp_device_info_editor_constructed (GObject *object)
       gchar     *title;
 
       /* e.g. "Pressure Curve" for mapping input device axes */
-      title = g_strdup_printf (_("%s Curve"), axis_use_strings[i - 1]);
+      title = g_strdup_printf (_("%s Curve"), gettext (axis_use_strings[i - 1]));
 
       frame = gimp_frame_new (title);
       gtk_notebook_append_page (GTK_NOTEBOOK (private->notebook), frame, NULL);
@@ -523,7 +523,7 @@ gimp_device_info_editor_constructed (GObject *object)
           gchar     *string;
 
           string = g_strdup_printf (_("The axis '%s' has no curve"),
-                                    axis_use_strings[i - 1]);
+                                    gettext (axis_use_strings[i - 1]));
 
           label = gtk_label_new (string);
           gtk_container_add (GTK_CONTAINER (frame), label);


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