Commit df074bfe authored by Jehan's avatar Jehan
Browse files

plug-ins: label and documentation of plug-ins localized plug-in side.

This is the consequence of previous commit. Plug-ins' label and
documentation are now localized before sending these data to GIMP core.
In other words, we replace N_() macros with basic gettext calls.
parent 81b569cb
Pipeline #415207 passed with stage
in 2 minutes and 14 seconds
......@@ -196,11 +196,11 @@ align_layers_create_procedure (GimpPlugIn *plug_in,
GIMP_PROCEDURE_SENSITIVE_DRAWABLES |
GIMP_PROCEDURE_SENSITIVE_NO_DRAWABLES);
gimp_procedure_set_menu_label (procedure, N_("Align Visi_ble Layers..."));
gimp_procedure_set_menu_label (procedure, _("Align Visi_ble Layers..."));
gimp_procedure_add_menu_path (procedure, "<Image>/Image/Arrange");
gimp_procedure_set_documentation (procedure,
N_("Align all visible layers of the image"),
_("Align all visible layers of the image"),
"Align visible layers",
name);
gimp_procedure_set_attribution (procedure,
......
......@@ -176,11 +176,11 @@ optimize_create_procedure (GimpPlugIn *plug_in,
GIMP_PROCEDURE_SENSITIVE_DRAWABLES |
GIMP_PROCEDURE_SENSITIVE_NO_DRAWABLES);
gimp_procedure_set_menu_label (procedure, N_("Optimize (for _GIF)"));
gimp_procedure_set_menu_label (procedure, _("Optimize (for _GIF)"));
gimp_procedure_set_documentation (procedure,
N_("Modify image to reduce size when "
"saved as GIF animation"),
_("Modify image to reduce size when "
"saved as GIF animation"),
"This procedure applies various "
"optimizations to a GIMP layer-based "
"animation in an attempt to reduce the "
......@@ -204,11 +204,11 @@ optimize_create_procedure (GimpPlugIn *plug_in,
GIMP_PROCEDURE_SENSITIVE_DRAWABLES |
GIMP_PROCEDURE_SENSITIVE_NO_DRAWABLES);
gimp_procedure_set_menu_label (procedure, N_("_Optimize (Difference)"));
gimp_procedure_set_menu_label (procedure, _("_Optimize (Difference)"));
gimp_procedure_set_documentation (procedure,
N_("Reduce file size where "
"combining layers is possible"),
_("Reduce file size where "
"combining layers is possible"),
"This procedure applies various "
"optimizations to a GIMP layer-based "
"animation in an attempt to reduce "
......@@ -229,11 +229,11 @@ optimize_create_procedure (GimpPlugIn *plug_in,
GIMP_PROCEDURE_SENSITIVE_DRAWABLES |
GIMP_PROCEDURE_SENSITIVE_NO_DRAWABLES);
gimp_procedure_set_menu_label (procedure, N_("_Unoptimize"));
gimp_procedure_set_menu_label (procedure, _("_Unoptimize"));
gimp_procedure_set_documentation (procedure,
N_("Remove optimization to make "
"editing easier"),
_("Remove optimization to make "
"editing easier"),
"This procedure 'simplifies' a GIMP "
"layer-based animation that has been "
"optimized for animation. This makes "
......@@ -251,7 +251,7 @@ optimize_create_procedure (GimpPlugIn *plug_in,
GIMP_PROCEDURE_SENSITIVE_DRAWABLES |
GIMP_PROCEDURE_SENSITIVE_NO_DRAWABLES);
gimp_procedure_set_menu_label (procedure, N_("_Remove Backdrop"));
gimp_procedure_set_menu_label (procedure, _("_Remove Backdrop"));
gimp_procedure_set_documentation (procedure,
"This procedure attempts to remove "
......@@ -272,7 +272,7 @@ optimize_create_procedure (GimpPlugIn *plug_in,
GIMP_PROCEDURE_SENSITIVE_DRAWABLES |
GIMP_PROCEDURE_SENSITIVE_NO_DRAWABLES);
gimp_procedure_set_menu_label (procedure, N_("_Find Backdrop"));
gimp_procedure_set_menu_label (procedure, _("_Find Backdrop"));
gimp_procedure_set_documentation (procedure,
"This procedure attempts to remove "
......
......@@ -250,13 +250,13 @@ play_create_procedure (GimpPlugIn *plug_in,
GIMP_PROCEDURE_SENSITIVE_DRAWABLES |
GIMP_PROCEDURE_SENSITIVE_NO_DRAWABLES);
gimp_procedure_set_menu_label (procedure, N_("_Playback..."));
gimp_procedure_set_menu_label (procedure, _("_Playback..."));
gimp_procedure_set_icon_name (procedure, "media-playback-start");
gimp_procedure_add_menu_path (procedure, "<Image>/Filters/Animation/");
gimp_procedure_set_documentation (procedure,
N_("Preview a GIMP layer-based "
"animation"),
_("Preview a GIMP layer-based "
"animation"),
"",
name);
gimp_procedure_set_attribution (procedure,
......
......@@ -155,12 +155,12 @@ blinds_create_procedure (GimpPlugIn *plug_in,
gimp_procedure_set_sensitivity_mask (procedure,
GIMP_PROCEDURE_SENSITIVE_DRAWABLE);
gimp_procedure_set_menu_label (procedure, N_("_Blinds..."));
gimp_procedure_set_menu_label (procedure, _("_Blinds..."));
gimp_procedure_add_menu_path (procedure, "<Image>/Filters/Distorts");
gimp_procedure_set_documentation (procedure,
N_("Simulate an image painted on "
"window blinds"),
_("Simulate an image painted on "
"window blinds"),
"More here later",
name);
gimp_procedure_set_attribution (procedure,
......
......@@ -136,11 +136,11 @@ border_average_create_procedure (GimpPlugIn *plug_in,
gimp_procedure_set_sensitivity_mask (procedure,
GIMP_PROCEDURE_SENSITIVE_DRAWABLE);
gimp_procedure_set_menu_label (procedure, N_("_Border Average..."));
gimp_procedure_set_menu_label (procedure, _("_Border Average..."));
gimp_procedure_add_menu_path (procedure, "<Image>/Colors/Info");
gimp_procedure_set_documentation (procedure,
N_("Set foreground to the average color of the image border"),
_("Set foreground to the average color of the image border"),
"",
name);
gimp_procedure_set_attribution (procedure,
......
......@@ -505,13 +505,13 @@ explorer_create_procedure (GimpPlugIn *plug_in,
gimp_procedure_set_sensitivity_mask (procedure,
GIMP_PROCEDURE_SENSITIVE_DRAWABLE);
gimp_procedure_set_menu_label (procedure, N_("CML _Explorer..."));
gimp_procedure_set_menu_label (procedure, _("CML _Explorer..."));
gimp_procedure_add_menu_path (procedure,
"<Image>/Filters/Render/Pattern");
gimp_procedure_set_documentation (procedure,
N_("Create abstract Coupled-Map "
"Lattice patterns"),
_("Create abstract Coupled-Map "
"Lattice patterns"),
"Make an image of Coupled-Map Lattice "
"(CML). CML is a kind of Cellula "
"Automata on continuous (value) "
......
......@@ -132,13 +132,13 @@ remap_create_procedure (GimpPlugIn *plug_in,
GIMP_PROCEDURE_SENSITIVE_DRAWABLES |
GIMP_PROCEDURE_SENSITIVE_NO_DRAWABLES);
gimp_procedure_set_menu_label (procedure, N_("R_earrange Colormap..."));
gimp_procedure_set_menu_label (procedure, _("R_earrange Colormap..."));
gimp_procedure_set_icon_name (procedure, GIMP_ICON_COLORMAP);
gimp_procedure_add_menu_path (procedure, "<Image>/Colors/Map/Colormap");
gimp_procedure_add_menu_path (procedure, "<Colormap>");
gimp_procedure_set_documentation (procedure,
N_("Rearrange the colormap"),
_("Rearrange the colormap"),
"This procedure takes an indexed "
"image and lets you alter the "
"positions of colors in the colormap "
......@@ -172,11 +172,11 @@ remap_create_procedure (GimpPlugIn *plug_in,
GIMP_PROCEDURE_SENSITIVE_DRAWABLES |
GIMP_PROCEDURE_SENSITIVE_NO_DRAWABLES);
gimp_procedure_set_menu_label (procedure, N_("_Swap Colors"));
gimp_procedure_set_menu_label (procedure, _("_Swap Colors"));
gimp_procedure_set_icon_name (procedure, GIMP_ICON_COLORMAP);
gimp_procedure_set_documentation (procedure,
N_("Swap two colors in the colormap"),
_("Swap two colors in the colormap"),
"This procedure takes an indexed "
"image and lets you swap the "
"positions of two colors in the "
......
......@@ -398,12 +398,12 @@ compose_create_procedure (GimpPlugIn *plug_in,
GIMP_PROCEDURE_SENSITIVE_DRAWABLES |
GIMP_PROCEDURE_SENSITIVE_NO_DRAWABLES);
gimp_procedure_set_menu_label (procedure, N_("C_ompose..."));
gimp_procedure_set_menu_label (procedure, _("C_ompose..."));
gimp_procedure_add_menu_path (procedure, "<Image>/Colors/Components");
gimp_procedure_set_documentation (procedure,
N_("Create an image using multiple "
"gray images as color channels"),
_("Create an image using multiple "
"gray images as color channels"),
"This function creates a new image from "
"multiple gray images",
name);
......@@ -505,12 +505,12 @@ compose_create_procedure (GimpPlugIn *plug_in,
GIMP_PROCEDURE_SENSITIVE_DRAWABLES |
GIMP_PROCEDURE_SENSITIVE_NO_DRAWABLES);
gimp_procedure_set_menu_label (procedure, N_("R_ecompose"));
gimp_procedure_set_menu_label (procedure, _("R_ecompose"));
gimp_procedure_add_menu_path (procedure, "<Image>/Colors/Components");
gimp_procedure_set_documentation (procedure,
N_("Recompose an image that was "
"previously decomposed"),
_("Recompose an image that was "
"previously decomposed"),
"This function recombines the grayscale "
"layers produced by Decompose "
"into a single RGB or RGBA layer, and "
......
......@@ -192,12 +192,12 @@ retinex_create_procedure (GimpPlugIn *plug_in,
gimp_procedure_set_sensitivity_mask (procedure,
GIMP_PROCEDURE_SENSITIVE_DRAWABLE);
gimp_procedure_set_menu_label (procedure, N_("Retine_x..."));
gimp_procedure_set_menu_label (procedure, _("Retine_x..."));
gimp_procedure_add_menu_path (procedure, "<Image>/Colors/Tone Mapping");
gimp_procedure_set_documentation (procedure,
N_("Enhance contrast using the "
"Retinex method"),
_("Enhance contrast using the "
"Retinex method"),
"The Retinex Image Enhancement "
"Algorithm is an automatic image "
"enhancement method that enhances "
......
......@@ -111,12 +111,12 @@ crop_create_procedure (GimpPlugIn *plug_in,
gimp_procedure_set_sensitivity_mask (procedure,
GIMP_PROCEDURE_SENSITIVE_DRAWABLE);
gimp_procedure_set_menu_label (procedure, N_("_Zealous Crop"));
gimp_procedure_set_menu_label (procedure, _("_Zealous Crop"));
gimp_procedure_add_menu_path (procedure, "<Image>/Image/Crop");
gimp_procedure_set_documentation (procedure,
N_("Autocrop unused space from "
"edges and middle"),
_("Autocrop unused space from "
"edges and middle"),
NULL,
name);
gimp_procedure_set_attribution (procedure,
......
......@@ -428,12 +428,12 @@ bender_create_procedure (GimpPlugIn *plug_in,
gimp_procedure_set_sensitivity_mask (procedure,
GIMP_PROCEDURE_SENSITIVE_DRAWABLE);
gimp_procedure_set_menu_label (procedure, N_("_Curve Bend..."));
gimp_procedure_set_menu_label (procedure, _("_Curve Bend..."));
gimp_procedure_add_menu_path (procedure, "<Image>/Filters/Distorts");
gimp_procedure_set_documentation
(procedure,
N_("Bend the image using two control curves"),
_("Bend the image using two control curves"),
"This plug-in does bend the active layer "
"If there is a current selection it is copied to "
"floating selection and the curve_bend distortion "
......
......@@ -279,12 +279,12 @@ decompose_create_procedure (GimpPlugIn *plug_in,
gimp_procedure_set_sensitivity_mask (procedure,
GIMP_PROCEDURE_SENSITIVE_DRAWABLE);
gimp_procedure_set_menu_label (procedure, N_("_Decompose..."));
gimp_procedure_set_menu_label (procedure, _("_Decompose..."));
gimp_procedure_add_menu_path (procedure, "<Image>/Colors/Components");
gimp_procedure_set_documentation (procedure,
N_("Decompose an image into separate "
"colorspace components"),
_("Decompose an image into separate "
"colorspace components"),
"This function creates new gray images "
"with different channel information "
"in each of them",
......
......@@ -215,12 +215,12 @@ merge_create_procedure (GimpPlugIn *plug_in,
gimp_procedure_set_sensitivity_mask (procedure,
GIMP_PROCEDURE_SENSITIVE_DRAWABLE);
gimp_procedure_set_menu_label (procedure, N_("_Depth Merge..."));
gimp_procedure_set_menu_label (procedure, _("_Depth Merge..."));
gimp_procedure_add_menu_path (procedure, "<Image>/Filters/Combine");
gimp_procedure_set_documentation (procedure,
N_("Combine two images using depth "
"maps (z-buffers)"),
_("Combine two images using depth "
"maps (z-buffers)"),
"Taking as input two full-color, "
"full-alpha images and two "
"corresponding grayscale depth maps, "
......
......@@ -177,12 +177,12 @@ despeckle_create_procedure (GimpPlugIn *plug_in,
gimp_procedure_set_sensitivity_mask (procedure,
GIMP_PROCEDURE_SENSITIVE_DRAWABLE);
gimp_procedure_set_menu_label (procedure, N_("Des_peckle..."));
gimp_procedure_set_menu_label (procedure, _("Des_peckle..."));
gimp_procedure_add_menu_path (procedure, "<Image>/Filters/Enhance");
gimp_procedure_set_documentation (procedure,
N_("Remove speckle noise from the "
"image"),
_("Remove speckle noise from the "
"image"),
"This plug-in selectively performs "
"a median or adaptive box filter on "
"an image.",
......
......@@ -138,12 +138,12 @@ destripe_create_procedure (GimpPlugIn *plug_in,
gimp_procedure_set_sensitivity_mask (procedure,
GIMP_PROCEDURE_SENSITIVE_DRAWABLE);
gimp_procedure_set_menu_label (procedure, N_("Des_tripe..."));
gimp_procedure_set_menu_label (procedure, _("Des_tripe..."));
gimp_procedure_add_menu_path (procedure, "<Image>/Colors/Tone Mapping");
gimp_procedure_set_documentation (procedure,
N_("Remove vertical stripe artifacts "
"from the image"),
_("Remove vertical stripe artifacts "
"from the image"),
"This plug-in tries to remove vertical "
"stripes from an image.",
name);
......
......@@ -127,7 +127,7 @@ ascii_create_procedure (GimpPlugIn *plug_in,
gimp_procedure_set_image_types (procedure, "*");
gimp_procedure_set_menu_label (procedure, N_("ASCII art"));
gimp_procedure_set_menu_label (procedure, _("ASCII art"));
gimp_procedure_set_documentation (procedure,
"Saves grayscale image in various "
......
......@@ -137,7 +137,7 @@ cel_create_procedure (GimpPlugIn *plug_in,
GIMP_PDB_PROC_TYPE_PLUGIN,
cel_load, NULL, NULL);
gimp_procedure_set_menu_label (procedure, N_("KISS CEL"));
gimp_procedure_set_menu_label (procedure, _("KISS CEL"));
gimp_procedure_set_documentation (procedure,
"Loads files in KISS CEL file format",
......@@ -169,7 +169,7 @@ cel_create_procedure (GimpPlugIn *plug_in,
gimp_procedure_set_image_types (procedure, "RGB*, INDEXED*");
gimp_procedure_set_menu_label (procedure, N_("KISS CEL"));
gimp_procedure_set_menu_label (procedure, _("KISS CEL"));
gimp_procedure_set_documentation (procedure,
"Exports files in KISS CEL file format",
......
......@@ -118,7 +118,7 @@ csource_create_procedure (GimpPlugIn *plug_in,
gimp_procedure_set_image_types (procedure, "*");
gimp_procedure_set_menu_label (procedure, N_("C source code"));
gimp_procedure_set_menu_label (procedure, _("C source code"));
gimp_procedure_set_documentation (procedure,
"Dump image data in RGB(A) format "
......
......@@ -109,7 +109,7 @@ desktop_create_procedure (GimpPlugIn *plug_in,
GIMP_PDB_PROC_TYPE_PLUGIN,
desktop_load, NULL, NULL);
gimp_procedure_set_menu_label (procedure, N_("Desktop Link"));
gimp_procedure_set_menu_label (procedure, _("Desktop Link"));
gimp_procedure_set_documentation (procedure,
"Follows a link to an image in a "
......
......@@ -170,7 +170,7 @@ dicom_create_procedure (GimpPlugIn *plug_in,
GIMP_PDB_PROC_TYPE_PLUGIN,
dicom_load, NULL, NULL);
gimp_procedure_set_menu_label (procedure, N_("DICOM image"));
gimp_procedure_set_menu_label (procedure, _("DICOM image"));
gimp_procedure_set_documentation (procedure,
"Loads files of the dicom file format",
......@@ -202,8 +202,8 @@ dicom_create_procedure (GimpPlugIn *plug_in,
gimp_procedure_set_image_types (procedure, "RGB, GRAY");
gimp_procedure_set_menu_label (procedure,
N_("Digital Imaging and Communications in "
"Medicine image"));
_("Digital Imaging and Communications in "
"Medicine image"));
gimp_procedure_set_documentation (procedure,
"Save file in the DICOM file format",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment