From 095af5629c8e01ee94926bc81185cdda3aab2747 Mon Sep 17 00:00:00 2001 From: Anders Jonsson Date: Sat, 22 Jul 2023 12:37:00 +0200 Subject: [PATCH] extensions: more i18n for goat-exercises --- extensions/goat-exercises/goat-exercise-c.c | 4 ++-- extensions/goat-exercises/goat-exercise-lua.lua | 10 +++++----- extensions/goat-exercises/goat-exercise-py3.py | 6 +++--- extensions/goat-exercises/goat-exercise-vala.vala | 6 +++--- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/extensions/goat-exercises/goat-exercise-c.c b/extensions/goat-exercises/goat-exercise-c.c index 3ce9f95e47..69c1f21e99 100644 --- a/extensions/goat-exercises/goat-exercise-c.c +++ b/extensions/goat-exercises/goat-exercise-c.c @@ -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, "/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, diff --git a/extensions/goat-exercises/goat-exercise-lua.lua b/extensions/goat-exercises/goat-exercise-lua.lua index a9acfc663d..9bf0693ddd 100755 --- a/extensions/goat-exercises/goat-exercise-lua.lua +++ b/extensions/goat-exercises/goat-exercise-lua.lua @@ -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('/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"); diff --git a/extensions/goat-exercises/goat-exercise-py3.py b/extensions/goat-exercises/goat-exercise-py3.py index 30b026a797..355b5b7479 100755 --- a/extensions/goat-exercises/goat-exercise-py3.py +++ b/extensions/goat-exercises/goat-exercise-py3.py @@ -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('/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") diff --git a/extensions/goat-exercises/goat-exercise-vala.vala b/extensions/goat-exercises/goat-exercise-vala.vala index 5b81866f1f..6e7d07d3de 100755 --- a/extensions/goat-exercises/goat-exercise-vala.vala +++ b/extensions/goat-exercises/goat-exercise-vala.vala @@ -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("/Filters/Development/Goat exercises/"); procedure.set_attribution("Niels De Graef", "Niels De Graef", "2020");