From d92519a8e8ea7b1cb20e4cc52761c5c7414d2c6c Mon Sep 17 00:00:00 2001 From: Anders Jonsson Date: Sat, 20 Apr 2024 00:04:39 +0200 Subject: [PATCH] app, plug-ins: fix translatability of static strings Fixes #10565 --- app/dialogs/module-dialog.c | 2 +- plug-ins/common/file-compressor.c | 2 +- plug-ins/common/file-gegl.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/dialogs/module-dialog.c b/app/dialogs/module-dialog.c index e47a76fb97..6d12be2ce5 100644 --- a/app/dialogs/module-dialog.c +++ b/app/dialogs/module-dialog.c @@ -224,7 +224,7 @@ create_widget_for_module (gpointer item, gtk_widget_show (checkbox); gtk_grid_attach (GTK_GRID (grid), checkbox, 0, 0, 1, 1); - label = gtk_label_new (info ? gettext (info->purpose) : + label = gtk_label_new (info ? dgettext (GETTEXT_PACKAGE "-libgimp", info->purpose) : gimp_file_get_utf8_name (file)); gtk_widget_show (label); gtk_grid_attach (GTK_GRID (grid), label, 1, 0, 1, 1); diff --git a/plug-ins/common/file-compressor.c b/plug-ins/common/file-compressor.c index 20d805c5b3..128818f048 100644 --- a/plug-ins/common/file-compressor.c +++ b/plug-ins/common/file-compressor.c @@ -344,7 +344,7 @@ compressor_create_procedure (GimpPlugIn *plug_in, if (procedure) { - gimp_procedure_set_menu_label (procedure, compressor->file_type); + gimp_procedure_set_menu_label (procedure, _(compressor->file_type)); gimp_procedure_set_attribution (procedure, "Daniel Risacher", diff --git a/plug-ins/common/file-gegl.c b/plug-ins/common/file-gegl.c index 2026e884ca..2ba7a39204 100644 --- a/plug-ins/common/file-gegl.c +++ b/plug-ins/common/file-gegl.c @@ -197,7 +197,7 @@ goat_create_procedure (GimpPlugIn *plug_in, goat_load, (gpointer) format, NULL); - gimp_procedure_set_menu_label (procedure, format->file_type); + gimp_procedure_set_menu_label (procedure, _(format->file_type)); gimp_procedure_set_documentation (procedure, format->load_blurb, @@ -220,7 +220,7 @@ goat_create_procedure (GimpPlugIn *plug_in, gimp_procedure_set_image_types (procedure, "*"); - gimp_procedure_set_menu_label (procedure, format->file_type); + gimp_procedure_set_menu_label (procedure, _(format->file_type)); gimp_procedure_set_documentation (procedure, format->export_blurb,