app, plug-ins: mark missing strings as translatable

This commit is contained in:
Anders Jonsson 2023-12-11 20:13:06 +01:00 committed by Jacob Boerema
parent 9fa31f467b
commit bdf0d88456
12 changed files with 69 additions and 69 deletions

View file

@ -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);

View file

@ -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);
{

View file

@ -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,

View file

@ -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,

View file

@ -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);

View file

@ -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);
}

View file

@ -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);

View file

@ -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);

View file

@ -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",

View file

@ -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);

View file

@ -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);

View file

@ -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",