From 37c971c08e7264c5161571493f26d60c7bae1dec Mon Sep 17 00:00:00 2001 From: Anders Jonsson Date: Tue, 19 Dec 2023 17:54:12 +0100 Subject: [PATCH] app, plug-ins: make missing tooltips translatable --- app/config/gimprc-blurbs.h | 4 ++-- plug-ins/common/compose.c | 2 +- plug-ins/common/decompose.c | 4 ++-- plug-ins/common/depth-merge.c | 14 +++++++------- plug-ins/common/wavelet-decompose.c | 6 +++--- plug-ins/gradient-flare/gradient-flare.c | 18 +++++++++--------- 6 files changed, 24 insertions(+), 24 deletions(-) diff --git a/app/config/gimprc-blurbs.h b/app/config/gimprc-blurbs.h index ccacd1c52d..de39f998eb 100644 --- a/app/config/gimprc-blurbs.h +++ b/app/config/gimprc-blurbs.h @@ -182,7 +182,7 @@ _("When enabled, the selected pattern will be used for all tools.") "When enabled, the selected palette will be used for all tools." #define GLOBAL_EXPAND_BLURB \ -"When enabled, the selected auto expand layer settings will be used for all tools." +_("When enabled, the selected auto expand layer settings will be used for all tools.") #define GRADIENT_PATH_BLURB \ "Sets the gradient search path." @@ -782,7 +782,7 @@ _("When enabled, uses OpenCL for some operations.") "'user-manual-online' is enabled." #define ZOOM_QUALITY_BLURB \ -"There's a tradeoff between speed and quality of the zoomed-out display." +_("There's a tradeoff between speed and quality of the zoomed-out display.") #define DEFAULT_USE_EVENT_HISTORY_BLURB \ "Bugs in event history buffer are frequent so in case of cursor " \ diff --git a/plug-ins/common/compose.c b/plug-ins/common/compose.c index a7b85e1c56..c948e0eb50 100644 --- a/plug-ins/common/compose.c +++ b/plug-ins/common/compose.c @@ -375,7 +375,7 @@ compose_create_procedure (GimpPlugIn *plug_in, GString *type_desc; gint i; - type_desc = g_string_new ("What to compose: "); + type_desc = g_string_new (_("What to compose: ")); g_string_append_c (type_desc, '"'); g_string_append (type_desc, compose_dsc[0].compose_type); g_string_append_c (type_desc, '"'); diff --git a/plug-ins/common/decompose.c b/plug-ins/common/decompose.c index 704f03970c..1ebb2ce99e 100644 --- a/plug-ins/common/decompose.c +++ b/plug-ins/common/decompose.c @@ -258,7 +258,7 @@ decompose_create_procedure (GimpPlugIn *plug_in, GString *type_desc; gint i; - type_desc = g_string_new ("What to decompose: "); + type_desc = g_string_new (_("What to decompose: ")); g_string_append_c (type_desc, '"'); g_string_append (type_desc, extract[0].type); g_string_append_c (type_desc, '"'); @@ -302,7 +302,7 @@ decompose_create_procedure (GimpPlugIn *plug_in, GIMP_PROC_ARG_BOOLEAN (procedure, "layers-mode", "Layers mode", - "Create channels as layers in a single image", + _("Create channels as layers in a single image"), TRUE, G_PARAM_READWRITE); diff --git a/plug-ins/common/depth-merge.c b/plug-ins/common/depth-merge.c index 0565a28fa5..240c32d80e 100644 --- a/plug-ins/common/depth-merge.c +++ b/plug-ins/common/depth-merge.c @@ -221,31 +221,31 @@ merge_create_procedure (GimpPlugIn *plug_in, GIMP_PROC_ARG_DRAWABLE (procedure, "source-1", _("Source _1"), - "Source 1", + _("Source 1"), TRUE, G_PARAM_READWRITE); GIMP_PROC_ARG_DRAWABLE (procedure, "depth-map-1", _("_Depth map 1"), - "Depth map 1", + _("Depth map 1"), TRUE, G_PARAM_READWRITE); GIMP_PROC_ARG_DRAWABLE (procedure, "source-2", _("Source _2"), - "Source 2", + _("Source 2"), TRUE, G_PARAM_READWRITE); GIMP_PROC_ARG_DRAWABLE (procedure, "depth-map-2", _("Depth _map 2"), - "Depth map 2", + _("Depth map 2"), TRUE, G_PARAM_READWRITE); GIMP_PROC_ARG_DOUBLE (procedure, "overlap", _("O_verlap"), - "Overlap", + _("Overlap"), 0, 2, 0, G_PARAM_READWRITE); @@ -257,13 +257,13 @@ merge_create_procedure (GimpPlugIn *plug_in, GIMP_PROC_ARG_DOUBLE (procedure, "scale-1", _("Sc_ale 1"), - "Depth relative scale 1", + _("Depth relative scale 1"), -1, 1, 1, G_PARAM_READWRITE); GIMP_PROC_ARG_DOUBLE (procedure, "scale-2", _("Scal_e 2"), - "Depth relative scale 2", + _("Depth relative scale 2"), -1, 1, 1, G_PARAM_READWRITE); } diff --git a/plug-ins/common/wavelet-decompose.c b/plug-ins/common/wavelet-decompose.c index 8f57602640..8881505ac1 100644 --- a/plug-ins/common/wavelet-decompose.c +++ b/plug-ins/common/wavelet-decompose.c @@ -136,14 +136,14 @@ wavelet_create_procedure (GimpPlugIn *plug_in, GIMP_PROC_ARG_BOOLEAN (procedure, "create-group", _("Create a layer group to store the " "_decomposition"), - "Create a layer group to store the " - "decomposition", + _("Create a layer group to store the " + "decomposition"), TRUE, G_PARAM_READWRITE); GIMP_PROC_ARG_BOOLEAN (procedure, "create-masks", _("_Add a layer mask to each scales layer"), - "Add a layer mask to each scales layer", + _("Add a layer mask to each scales layer"), FALSE, G_PARAM_READWRITE); } diff --git a/plug-ins/gradient-flare/gradient-flare.c b/plug-ins/gradient-flare/gradient-flare.c index 17a3a79cba..d64fac5900 100644 --- a/plug-ins/gradient-flare/gradient-flare.c +++ b/plug-ins/gradient-flare/gradient-flare.c @@ -851,50 +851,50 @@ gflare_create_procedure (GimpPlugIn *plug_in, GIMP_PROC_ARG_DOUBLE (procedure, "radius", _("Radi_us"), - "Radius of GFlare (pixel)", + _("Radius of GFlare (pixel)"), 1, GIMP_MAX_IMAGE_SIZE, 100, G_PARAM_READWRITE); GIMP_PROC_ARG_DOUBLE (procedure, "rotation", _("Ro_tation"), - "Rotation of GFlare (degree)", + _("Rotation of GFlare (degree)"), 0, 360, 0, G_PARAM_READWRITE); GIMP_PROC_ARG_DOUBLE (procedure, "hue", _("_Hue rotation"), - "_Hue rotation of GFlare (degree)", + _("Hue rotation of GFlare (degree)"), 0, 360, 0, G_PARAM_READWRITE); GIMP_PROC_ARG_DOUBLE (procedure, "vector-angle", _("Vector _angle"), - "Vector angle for second flares (degree)", + _("Vector angle for second flares (degree)"), 0, 360, 60, G_PARAM_READWRITE); GIMP_PROC_ARG_DOUBLE (procedure, "vector-length", _("Vector len_gth"), - "Vector length for second flares " - "(percentage of Radius)", + _("Vector length for second flares " + "(percentage of Radius)"), 0, 10000, 400, G_PARAM_READWRITE); GIMP_PROC_ARG_BOOLEAN (procedure, "use-asupsample", _("Ada_ptive supersampling"), - "Use adaptive supersampling while rendering", + _("Use adaptive supersampling while rendering"), FALSE, G_PARAM_READWRITE); GIMP_PROC_ARG_INT (procedure, "asupsample-max-depth", _("_Max depth"), - "Max depth for adaptive supersampling", + _("Max depth for adaptive supersampling"), 0, 10, 3, G_PARAM_READWRITE); GIMP_PROC_ARG_DOUBLE (procedure, "asupsample-threshold", _("Threshol_d"), - "Threshold for adaptive supersampling", + _("Threshold for adaptive supersampling"), 0.0, 1.0, 0.2, G_PARAM_READWRITE); }