[gimp/gimp-2-10] app: make a tooltip translatable and translate device axis strings.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: make a tooltip translatable and translate device axis strings.
- Date: Tue, 9 Jun 2020 09:04:55 +0000 (UTC)
commit 4c081730255d33418a7402413d3b9a4ae4bcda0f
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.
(cherry picked from commit 5302beb9471e67d3c4e124d7c20c93ddb5efd9f1)
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 bc8c85aba8..51b771a026 100644
--- a/app/config/gimprc-blurbs.h
+++ b/app/config/gimprc-blurbs.h
@@ -692,7 +692,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 75b4f39c67..12aa1f5645 100644
--- a/app/widgets/gimpdeviceinfoeditor.c
+++ b/app/widgets/gimpdeviceinfoeditor.c
@@ -412,7 +412,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);
@@ -485,7 +485,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]