python: translation fixes

Followup to 292cb01fc2,
taking care of remaining untranslated strings and a stray
accelerator in a tooltip.
This commit is contained in:
Anders Jonsson 2024-06-10 21:50:26 +02:00 committed by Alx Sa
parent 19a94fa4ba
commit 5841e9f8af
3 changed files with 5 additions and 5 deletions

View File

@ -122,7 +122,7 @@ class Foggify (Gimp.PlugIn):
procedure.add_string_argument ("name", _("Layer _name"), _("Layer name"),
_("Clouds"), GObject.ParamFlags.READWRITE)
procedure.add_color_argument ("color", _("_Fog color"), _("_Fog color"),
procedure.add_color_argument ("color", _("_Fog color"), _("Fog color"),
True, _color, GObject.ParamFlags.READWRITE)
procedure.add_double_argument ("turbulence", _("_Turbulence"), _("Turbulence"),
0.0, 7.0, 1.0, GObject.ParamFlags.READWRITE)

View File

@ -108,7 +108,7 @@ def gegl_color_bytes_convert (color, format, precision, index):
return result[index]
slice_expr_doc = """
slice_expr_doc = N_("""
Format is 'start:nrows,length' . All items are optional.
The empty string selects all items, as does ':'
@ -121,7 +121,7 @@ slice_expr_doc = """
'3:,4' selects rows of 4 colors, starting at 3 (nrows auto-determined)
'2:3,4' selects 3 rows of 4 colors (12 colors total), beginning at index 2.
'4' is illegal (ambiguous)
"""
""")
def parse_slice(s, numcolors):
@ -386,7 +386,7 @@ class PaletteSort (Gimp.PlugIn):
# TODO: It would be much simpler to replace the slice expression with three
# separate parameters: start-index, number-of-rows, row_length
procedure.add_string_argument ("slice-expr", _("Slice _expression"),
slice_expr_doc, "",
_(slice_expr_doc), "",
GObject.ParamFlags.READWRITE)
channel_choice = Gimp.Choice.new()
self.add_choices (channel_choice)

View File

@ -1453,7 +1453,7 @@ class SpyroWindow():
combo.append_text(_(txt))
else:
for key in txt_list:
combo.append (key, txt_list[key].name)
combo.append (key, _(txt_list[key].name))
combo.set_halign(Gtk.Align.FILL)
table.attach(combo, 1, row, 1, 1)