extensions: more i18n for goat-exercises

This commit is contained in:
Anders Jonsson 2023-07-22 12:37:00 +02:00 committed by Jehan
parent ba5b4794e1
commit 095af5629c
4 changed files with 13 additions and 13 deletions

View File

@ -111,13 +111,13 @@ goat_create_procedure (GimpPlugIn *plug_in,
gimp_procedure_set_sensitivity_mask (procedure,
GIMP_PROCEDURE_SENSITIVE_DRAWABLE);
gimp_procedure_set_menu_label (procedure, N_("Exercise in _C minor"));
gimp_procedure_set_menu_label (procedure, _("Exercise in _C minor"));
gimp_procedure_set_icon_name (procedure, GIMP_ICON_GEGL);
gimp_procedure_add_menu_path (procedure,
"<Image>/Filters/Development/Goat exercises/");
gimp_procedure_set_documentation (procedure,
N_("Exercise a goat in the C language"),
_("Exercise a goat in the C language"),
"Takes a goat for a walk",
PLUG_IN_PROC);
gimp_procedure_set_attribution (procedure,

View File

@ -64,7 +64,7 @@ function run(procedure, run_mode, image, drawables, args, run_data)
if run_mode == "INTERACTIVE" then
GimpUi.init("goat-exercise-lua");
local dialog = GimpUi.Dialog {
title = N_("Exercise a goat (Lua)"),
title = _("Exercise a goat (Lua)"),
role = "goat-exercise-Lua",
use_header_bar = 1
}
@ -85,8 +85,8 @@ function run(procedure, run_mode, image, drawables, args, run_data)
box:show()
local lang = "Lua"
local head_text = "This plug-in is an exercise in '%s' to demo plug-in creation.\n" ..
"Check out the last version of the source code online by clicking the \"Source\" button."
local head_text = _("This plug-in is an exercise in '%s' to demo plug-in creation.\n" ..
"Check out the last version of the source code online by clicking the \"Source\" button.")
local label = Gtk.Label { label = string.format(head_text, lang) }
box:pack_start(label, false, false, 1)
@ -169,11 +169,11 @@ function Goat.Exercise:do_create_procedure(name)
procedure:set_image_types("*");
procedure:set_sensitivity_mask(Gimp.ProcedureSensitivityMask.DRAWABLE);
procedure:set_menu_label("Exercise a Lua goat");
procedure:set_menu_label(_("Exercise a Lua goat"));
procedure:set_icon_name(GimpUi.ICON_GEGL);
procedure:add_menu_path('<Image>/Filters/Development/Goat exercises/');
procedure:set_documentation("Exercise a goat in the Lua language",
procedure:set_documentation(_("Exercise a goat in the Lua language"),
"Takes a goat for a walk in Lua",
name);
procedure:set_attribution("Jehan", "Jehan", "2019");

View File

@ -43,12 +43,12 @@ class Goat (Gimp.PlugIn):
procedure.set_image_types("*")
procedure.set_sensitivity_mask (Gimp.ProcedureSensitivityMask.DRAWABLE)
procedure.set_menu_label(N_("Exercise a goat and a python"))
procedure.set_menu_label(_("Exercise a goat and a python"))
procedure.set_icon_name(GimpUi.ICON_GEGL)
procedure.add_menu_path('<Image>/Filters/Development/Goat exercises/')
procedure.set_documentation(N_("Exercise a goat in the Python 3 language"),
N_("Takes a goat for a walk in Python 3"),
procedure.set_documentation(_("Exercise a goat in the Python 3 language"),
_("Takes a goat for a walk in Python 3"),
name)
procedure.set_attribution("Jehan", "Jehan", "2019")

View File

@ -42,9 +42,9 @@ public class Goat : Gimp.PlugIn {
var procedure = new Gimp.ImageProcedure(this, name, Gimp.PDBProcType.PLUGIN, this.run);
procedure.set_image_types("RGB*, INDEXED*, GRAY*");
procedure.set_sensitivity_mask(Gimp.ProcedureSensitivityMask.DRAWABLE);
procedure.set_menu_label(N_("Exercise a Vala goat"));
procedure.set_documentation(N_("Exercise a goat in the Vala language"),
N_("Takes a goat for a walk in Vala"),
procedure.set_menu_label(_("Exercise a Vala goat"));
procedure.set_documentation(_("Exercise a goat in the Vala language"),
_("Takes a goat for a walk in Vala"),
PLUG_IN_PROC);
procedure.add_menu_path("<Image>/Filters/Development/Goat exercises/");
procedure.set_attribution("Niels De Graef", "Niels De Graef", "2020");