From bdf0d88456532ac2ac6f615bdbd0617e6db6fd9e Mon Sep 17 00:00:00 2001 From: Anders Jonsson Date: Mon, 11 Dec 2023 20:13:06 +0100 Subject: [PATCH] app, plug-ins: mark missing strings as translatable --- app/actions/window-commands.c | 12 ++++---- app/dialogs/stroke-dialog.c | 4 +-- app/file-data/file-data.c | 14 ++++----- app/xcf/xcf.c | 4 +-- plug-ins/common/film.c | 30 ++++++++++---------- plug-ins/common/hot.c | 8 +++--- plug-ins/common/tile.c | 12 ++++---- plug-ins/file-sgi/sgi.c | 4 +-- plug-ins/flame/flame.c | 4 +-- plug-ins/fractal-explorer/fractal-explorer.c | 16 +++++------ plug-ins/gfig/gfig-dialog.c | 10 +++---- plug-ins/screenshot/screenshot.c | 20 ++++++------- 12 files changed, 69 insertions(+), 69 deletions(-) diff --git a/app/actions/window-commands.c b/app/actions/window-commands.c index fc02293173..bb00204d1c 100644 --- a/app/actions/window-commands.c +++ b/app/actions/window-commands.c @@ -70,7 +70,7 @@ window_open_display_cmd_callback (GimpAction *action, GtkWidget *entry; return_if_no_widget (widget, data); - dialog = gimp_message_dialog_new ("Open Display", GIMP_ICON_WILBER_EEK, + dialog = gimp_message_dialog_new (_("Open Display"), GIMP_ICON_WILBER_EEK, widget, GTK_DIALOG_MODAL, NULL, NULL, @@ -85,11 +85,11 @@ window_open_display_cmd_callback (GimpAction *action, -1); gimp_message_box_set_primary_text (GIMP_MESSAGE_DIALOG (dialog)->box, - "Experimental multi-display stuff!\n" - "Click OK and have fun crashing GIMP..."); + _("Experimental multi-display stuff!\n" + "Click OK and have fun crashing GIMP...")); gimp_message_box_set_text (GIMP_MESSAGE_DIALOG (dialog)->box, - "Please enter the name of the new display:"); + _("Please enter the name of the new display:")); entry = gtk_entry_new (); gtk_entry_set_activates_default (GTK_ENTRY (entry), TRUE); @@ -115,8 +115,8 @@ window_open_display_cmd_callback (GimpAction *action, if (! display) gimp_message_box_set_text (GIMP_MESSAGE_DIALOG (dialog)->box, - "Can't open display '%s'. " - "Please try another one:", + _("Can't open display '%s'. " + "Please try another one:"), screen_name); g_free (screen_name); diff --git a/app/dialogs/stroke-dialog.c b/app/dialogs/stroke-dialog.c index 1ada37af1c..5efcd0253e 100644 --- a/app/dialogs/stroke-dialog.c +++ b/app/dialogs/stroke-dialog.c @@ -171,7 +171,7 @@ stroke_dialog_new (GList *items, gtk_stack_add_titled (GTK_STACK (stack), frame, "stroke-tool", - "Line"); + _("Line")); gtk_widget_show (frame); { @@ -195,7 +195,7 @@ stroke_dialog_new (GList *items, gtk_stack_add_titled (GTK_STACK (stack), frame, "paint-tool", - "Paint tool"); + _("Paint tool")); gtk_widget_show (frame); { diff --git a/app/file-data/file-data.c b/app/file-data/file-data.c index 236f2ace9e..73b0fdcf7b 100644 --- a/app/file-data/file-data.c +++ b/app/file-data/file-data.c @@ -58,7 +58,7 @@ file_data_init (Gimp *gimp) procedure->marshal_func = file_gbr_load_invoker; proc = GIMP_PLUG_IN_PROCEDURE (procedure); - proc->menu_label = g_strdup (N_("GIMP brush")); + proc->menu_label = g_strdup (_("GIMP brush")); gimp_plug_in_procedure_set_icon (proc, GIMP_ICON_TYPE_ICON_NAME, (const guint8 *) "gimp-brush", strlen ("gimp-brush") + 1, @@ -115,7 +115,7 @@ file_data_init (Gimp *gimp) procedure->marshal_func = file_gbr_save_invoker; proc = GIMP_PLUG_IN_PROCEDURE (procedure); - proc->menu_label = g_strdup (N_("GIMP brush")); + proc->menu_label = g_strdup (_("GIMP brush")); gimp_plug_in_procedure_set_icon (proc, GIMP_ICON_TYPE_ICON_NAME, (const guint8 *) "gimp-brush", strlen ("gimp-brush") + 1, @@ -198,7 +198,7 @@ file_data_init (Gimp *gimp) procedure->marshal_func = file_gih_load_invoker; proc = GIMP_PLUG_IN_PROCEDURE (procedure); - proc->menu_label = g_strdup (N_("GIMP brush (animated)")); + proc->menu_label = g_strdup (_("GIMP brush (animated)")); gimp_plug_in_procedure_set_icon (proc, GIMP_ICON_TYPE_ICON_NAME, (const guint8 *) "gimp-brush", strlen ("gimp-brush") + 1, @@ -252,7 +252,7 @@ file_data_init (Gimp *gimp) procedure->marshal_func = file_gih_save_invoker; proc = GIMP_PLUG_IN_PROCEDURE (procedure); - proc->menu_label = g_strdup (N_("GIMP brush (animated)")); + proc->menu_label = g_strdup (_("GIMP brush (animated)")); gimp_plug_in_procedure_set_icon (proc, GIMP_ICON_TYPE_ICON_NAME, (const guint8 *) "gimp-brush", strlen ("gimp-brush") + 1, @@ -342,7 +342,7 @@ file_data_init (Gimp *gimp) procedure->marshal_func = file_pat_load_invoker; proc = GIMP_PLUG_IN_PROCEDURE (procedure); - proc->menu_label = g_strdup (N_("GIMP pattern")); + proc->menu_label = g_strdup (_("GIMP pattern")); gimp_plug_in_procedure_set_icon (proc, GIMP_ICON_TYPE_ICON_NAME, (const guint8 *) "gimp-pattern", strlen ("gimp-pattern") + 1, @@ -395,7 +395,7 @@ file_data_init (Gimp *gimp) procedure->marshal_func = file_pat_save_invoker; proc = GIMP_PLUG_IN_PROCEDURE (procedure); - proc->menu_label = g_strdup (N_("GIMP pattern")); + proc->menu_label = g_strdup (_("GIMP pattern")); gimp_plug_in_procedure_set_icon (proc, GIMP_ICON_TYPE_ICON_NAME, (const guint8 *) "gimp-pattern", strlen ("gimp-pattern") + 1, @@ -472,7 +472,7 @@ file_data_init (Gimp *gimp) procedure->marshal_func = file_gex_load_invoker; proc = GIMP_PLUG_IN_PROCEDURE (procedure); - proc->menu_label = g_strdup (N_("GIMP extension")); + proc->menu_label = g_strdup (_("GIMP extension")); gimp_plug_in_procedure_set_icon (proc, GIMP_ICON_TYPE_ICON_NAME, (const guint8 *) "gimp-plugin", strlen ("gimp-plugin") + 1, diff --git a/app/xcf/xcf.c b/app/xcf/xcf.c index 2d310a38ce..62812d3259 100644 --- a/app/xcf/xcf.c +++ b/app/xcf/xcf.c @@ -118,7 +118,7 @@ xcf_init (Gimp *gimp) procedure->marshal_func = xcf_save_invoker; proc = GIMP_PLUG_IN_PROCEDURE (procedure); - proc->menu_label = g_strdup (N_("GIMP XCF image")); + proc->menu_label = g_strdup (_("GIMP XCF image")); gimp_plug_in_procedure_set_icon (proc, GIMP_ICON_TYPE_ICON_NAME, (const guint8 *) "gimp-wilber", strlen ("gimp-wilber") + 1, @@ -186,7 +186,7 @@ xcf_init (Gimp *gimp) procedure->marshal_func = xcf_load_invoker; proc = GIMP_PLUG_IN_PROCEDURE (procedure); - proc->menu_label = g_strdup (N_("GIMP XCF image")); + proc->menu_label = g_strdup (_("GIMP XCF image")); gimp_plug_in_procedure_set_icon (proc, GIMP_ICON_TYPE_ICON_NAME, (const guint8 *) "gimp-wilber", strlen ("gimp-wilber") + 1, diff --git a/plug-ins/common/film.c b/plug-ins/common/film.c index e502a00e23..37497a76c6 100644 --- a/plug-ins/common/film.c +++ b/plug-ins/common/film.c @@ -191,43 +191,43 @@ film_create_procedure (GimpPlugIn *plug_in, "1997"); GIMP_PROC_ARG_INT (procedure, "film-height", - "Film _height", - "Height of film (0: fit to images)", + _("Film _height"), + _("Height of film (0: fit to images)"), 0, GIMP_MAX_IMAGE_SIZE, 0, G_PARAM_READWRITE); GIMP_PROC_ARG_RGB (procedure, "film-color", - "_Film color", - "Color of the film", + _("_Film color"), + _("Color of the film"), TRUE, &default_film_color, G_PARAM_READWRITE); GIMP_PROC_ARG_INT (procedure, "number-start", - "Start _index", - "Start index for numbering", + _("Start _index"), + _("Start index for numbering"), 0, G_MAXINT, 1, G_PARAM_READWRITE); GIMP_PROC_ARG_FONT (procedure, "number-font", - "Number _font", - "Font for drawing numbers", + _("Number _font"), + _("Font for drawing numbers"), G_PARAM_READWRITE); GIMP_PROC_ARG_RGB (procedure, "number-color", - "_Number color", - "Color for numbers", + _("_Number color"), + _("Color for numbers"), TRUE, &default_number_color, G_PARAM_READWRITE); GIMP_PROC_ARG_BOOLEAN (procedure, "at-top", - "At _top", - "Draw numbers at top", + _("At _top"), + _("Draw numbers at top"), TRUE, G_PARAM_READWRITE); GIMP_PROC_ARG_BOOLEAN (procedure, "at-bottom", - "At _bottom", - "Draw numbers at bottom", + _("At _bottom"), + _("Draw numbers at bottom"), TRUE, G_PARAM_READWRITE); @@ -287,7 +287,7 @@ film_create_procedure (GimpPlugIn *plug_in, GIMP_PROC_AUX_ARG_BOOLEAN (procedure, "keep-height", _("F_it height to images"), - "Keep maximum image height", + _("Keep maximum image height"), TRUE, G_PARAM_READWRITE); diff --git a/plug-ins/common/hot.c b/plug-ins/common/hot.c index 41c038a947..8f7d4eb874 100644 --- a/plug-ins/common/hot.c +++ b/plug-ins/common/hot.c @@ -268,20 +268,20 @@ hot_create_procedure (GimpPlugIn *plug_in, GIMP_PROC_ARG_INT (procedure, "mode", _("Mode"), - "Mode { NTSC (0), PAL (1) }", + _("Mode { NTSC (0), PAL (1) }"), 0, 1, MODE_NTSC, G_PARAM_READWRITE); GIMP_PROC_ARG_INT (procedure, "action", _("Action"), - "Action { (0) reduce luminance, " - "(1) reduce saturation, or (2) Blacken }", + _("Action { (0) reduce luminance, " + "(1) reduce saturation, or (2) Blacken }"), 0, 2, ACT_LREDUX, G_PARAM_READWRITE); GIMP_PROC_ARG_BOOLEAN (procedure, "new-layer", _("Create _new layer"), - "Create a new layer", + _("Create a new layer"), TRUE, G_PARAM_READWRITE); } diff --git a/plug-ins/common/tile.c b/plug-ins/common/tile.c index 0f66369962..b54efdd996 100644 --- a/plug-ins/common/tile.c +++ b/plug-ins/common/tile.c @@ -158,20 +158,20 @@ tile_create_procedure (GimpPlugIn *plug_in, * image. */ GIMP_PROC_ARG_INT (procedure, "new-width", - "New _width", - "New (tiled) image width", + _("New _width"), + _("New (tiled) image width"), 1, GIMP_MAX_IMAGE_SIZE, 1, G_PARAM_READWRITE); GIMP_PROC_ARG_INT (procedure, "new-height", - "New _height", - "New (tiled) image height", + _("New _height"), + _("New (tiled) image height"), 1, GIMP_MAX_IMAGE_SIZE, 1, G_PARAM_READWRITE); GIMP_PROC_ARG_BOOLEAN (procedure, "new-image", - "New _image", - "Create a new image", + _("New _image"), + _("Create a new image"), TRUE, G_PARAM_READWRITE); diff --git a/plug-ins/file-sgi/sgi.c b/plug-ins/file-sgi/sgi.c index d994e477d7..46e494a2ee 100644 --- a/plug-ins/file-sgi/sgi.c +++ b/plug-ins/file-sgi/sgi.c @@ -144,7 +144,7 @@ sgi_create_procedure (GimpPlugIn *plug_in, sgi_load, NULL, NULL); gimp_procedure_set_menu_label (procedure, - N_("Silicon Graphics IRIS image")); + _("Silicon Graphics IRIS image")); gimp_procedure_set_documentation (procedure, _("Loads files in SGI image file format"), @@ -171,7 +171,7 @@ sgi_create_procedure (GimpPlugIn *plug_in, gimp_procedure_set_image_types (procedure, "*"); gimp_procedure_set_menu_label (procedure, - N_("Silicon Graphics IRIS image")); + _("Silicon Graphics IRIS image")); gimp_file_procedure_set_format_name (GIMP_FILE_PROCEDURE (procedure), "SGI"); gimp_procedure_set_icon_name (procedure, GIMP_ICON_BRUSH); diff --git a/plug-ins/flame/flame.c b/plug-ins/flame/flame.c index 20d0913320..92f368bf84 100644 --- a/plug-ins/flame/flame.c +++ b/plug-ins/flame/flame.c @@ -1338,10 +1338,10 @@ flame_dialog (Flame *flame, "camera-box", "zoom", "x", "y", NULL); gimp_procedure_dialog_get_label (GIMP_PROCEDURE_DIALOG (dialog), - "rendering-label", "_Rendering", + "rendering-label", _("_Rendering"), FALSE, TRUE); gimp_procedure_dialog_get_label (GIMP_PROCEDURE_DIALOG (dialog), - "camera-label", "C_amera", + "camera-label", _("C_amera"), FALSE, TRUE); notebook = gimp_procedure_dialog_fill_notebook (GIMP_PROCEDURE_DIALOG (dialog), "settings-notebook", diff --git a/plug-ins/fractal-explorer/fractal-explorer.c b/plug-ins/fractal-explorer/fractal-explorer.c index 78c5196048..83be948f40 100644 --- a/plug-ins/fractal-explorer/fractal-explorer.c +++ b/plug-ins/fractal-explorer/fractal-explorer.c @@ -368,19 +368,19 @@ explorer_create_procedure (GimpPlugIn *plug_in, GIMP_PROC_ARG_BOOLEAN (procedure, "red-invert", _("In_version"), - "Red inversion mode", + _("Red inversion mode"), FALSE, G_PARAM_READWRITE); GIMP_PROC_ARG_BOOLEAN (procedure, "green-invert", - "I_nversion", - "Green inversion mode", + _("I_nversion"), + _("Green inversion mode"), FALSE, G_PARAM_READWRITE); GIMP_PROC_ARG_BOOLEAN (procedure, "blue-invert", - "_Inversion", - "Blue inversion mode", + _("_Inversion"), + _("Blue inversion mode"), FALSE, G_PARAM_READWRITE); @@ -390,9 +390,9 @@ explorer_create_procedure (GimpPlugIn *plug_in, 2, 8192, 512, G_PARAM_READWRITE); GIMP_PROC_ARG_BOOLEAN (procedure, "use-loglog-smoothing", - "_Use log log smoothing", - "Use log log smoothing to eliminate " - "\"banding\" in the result", + _("_Use log log smoothing"), + _("Use log log smoothing to eliminate " + "\"banding\" in the result"), FALSE, G_PARAM_READWRITE); diff --git a/plug-ins/gfig/gfig-dialog.c b/plug-ins/gfig/gfig-dialog.c index 72b655d889..ca74587850 100644 --- a/plug-ins/gfig/gfig-dialog.c +++ b/plug-ins/gfig/gfig-dialog.c @@ -491,7 +491,7 @@ gfig_dialog (GimpGfig *gfig) /* foreground color button in Stroke frame*/ gfig_context->fg_color = g_new0 (GimpRGB, 1); - gfig_context->fg_color_button = gimp_color_button_new ("Foreground", + gfig_context->fg_color_button = gimp_color_button_new (_("Foreground"), SEL_BUTTON_WIDTH, SEL_BUTTON_HEIGHT, gfig_context->fg_color, @@ -507,7 +507,7 @@ gfig_dialog (GimpGfig *gfig) /* brush selector in Stroke frame */ gfig_context->brush_select - = gimp_brush_chooser_new ("Brush", "Brush", + = gimp_brush_chooser_new (_("Brush"), _("Brush"), GIMP_RESOURCE (gfig_context->default_style.brush)); g_signal_connect (gfig_context->brush_select, "resource-set", G_CALLBACK (gfig_brush_changed_callback), NULL); @@ -558,7 +558,7 @@ gfig_dialog (GimpGfig *gfig) /* A page for the fill color button */ gfig_context->bg_color = g_new0 (GimpRGB, 1); - gfig_context->bg_color_button = gimp_color_button_new ("Background", + gfig_context->bg_color_button = gimp_color_button_new (_("Background"), SEL_BUTTON_WIDTH, SEL_BUTTON_HEIGHT, gfig_context->bg_color, GIMP_COLOR_AREA_SMALL_CHECKS); @@ -573,7 +573,7 @@ gfig_dialog (GimpGfig *gfig) /* A page for the pattern selector */ gfig_context->pattern_select - = gimp_pattern_chooser_new ("Pattern", "Pattern", + = gimp_pattern_chooser_new (_("Pattern"), _("Pattern"), GIMP_RESOURCE (gfig_context->default_style.pattern)); g_signal_connect (gfig_context->pattern_select, "resource-set", G_CALLBACK (gfig_pattern_changed_callback), NULL); @@ -583,7 +583,7 @@ gfig_dialog (GimpGfig *gfig) /* A page for the gradient selector */ gfig_context->gradient_select - = gimp_gradient_chooser_new ("Gradient", "Gradient", + = gimp_gradient_chooser_new (_("Gradient"), _("Gradient"), GIMP_RESOURCE (gfig_context->default_style.gradient)); g_signal_connect (gfig_context->gradient_select, "resource-set", G_CALLBACK (gfig_gradient_changed_callback), NULL); diff --git a/plug-ins/screenshot/screenshot.c b/plug-ins/screenshot/screenshot.c index 9ff44c5713..5293842f90 100644 --- a/plug-ins/screenshot/screenshot.c +++ b/plug-ins/screenshot/screenshot.c @@ -162,8 +162,8 @@ screenshot_create_procedure (GimpPlugIn *plug_in, GIMP_PROC_ARG_INT (procedure, "shoot-type", _("Shoot _area"), - "The shoot type { SHOOT-WINDOW (0), SHOOT-ROOT (1), " - "SHOOT-REGION (2) }", + _("The shoot type { SHOOT-WINDOW (0), SHOOT-ROOT (1), " + "SHOOT-REGION (2) }"), 0, 2, SHOOT_WINDOW, G_PARAM_READWRITE); @@ -192,8 +192,8 @@ screenshot_create_procedure (GimpPlugIn *plug_in, G_PARAM_READWRITE); GIMP_PROC_ARG_BOOLEAN (procedure, "include-pointer", - "Include _mouse pointer", - "Your pointing device's cursor will be part of the image", + _("Include _mouse pointer"), + _("Your pointing device's cursor will be part of the image"), FALSE, G_PARAM_READWRITE); @@ -201,8 +201,8 @@ screenshot_create_procedure (GimpPlugIn *plug_in, * need to expose this argument to the API. */ GIMP_PROC_AUX_ARG_BOOLEAN (procedure, "include-decoration", - "Include window _decoration", - "Title bar, window borders and shadow will be part of the image", + _("Include window _decoration"), + _("Title bar, window borders and shadow will be part of the image"), #ifdef PLATFORM_OSX /* on OS X, this just means shoot the shadow, default to nope */ FALSE, @@ -211,13 +211,13 @@ screenshot_create_procedure (GimpPlugIn *plug_in, #endif G_PARAM_READWRITE); GIMP_PROC_AUX_ARG_INT (procedure, "selection-delay", - "Selection d_elay", - "Delay before selection of the window or the region", + _("Selection d_elay"), + _("Delay before selection of the window or the region"), 0, 20, 0, G_PARAM_READWRITE); GIMP_PROC_AUX_ARG_INT (procedure, "screenshot-delay", - "Screenshot dela_y", - "Delay before snapping the screenshot", + _("Screenshot dela_y"), + _("Delay before snapping the screenshot"), 0, 20, 0, G_PARAM_READWRITE); GIMP_PROC_AUX_ARG_INT (procedure, "color-profile",