I18n: Disambiguate "Edges" in Keying compositing node

"Edges" usually refers to the edges of a mesh. In the context of the
Keying compositing node, it should be the image processing sense of
edges between color areas. This mirrors the singular "Edge", already
similarly disambiguated.

Reported by Satoshi Yamasaki in #43295.
This commit is contained in:
Damien Picard
2025-07-05 20:20:41 +02:00
committed by Bastien Montagne
parent 3aa633304a
commit 995b700e71

View File

@@ -36,7 +36,7 @@ static void cmp_node_keying_declare(NodeDeclarationBuilder &b)
b.add_output<decl::Color>("Image");
b.add_output<decl::Float>("Matte");
b.add_output<decl::Float>("Edges");
b.add_output<decl::Float>("Edges").translation_context(BLT_I18NCONTEXT_ID_IMAGE);
b.add_input<decl::Color>("Image").default_value({0.8f, 0.8f, 0.8f, 1.0f});
b.add_input<decl::Color>("Key Color").default_value({1.0f, 1.0f, 1.0f, 1.0f});
@@ -83,7 +83,9 @@ static void cmp_node_keying_declare(NodeDeclarationBuilder &b)
"Pixels at the identified edges are excluded from the remapping to preserve details")
.compositor_expects_single_value();
PanelDeclarationBuilder &edges_panel = tweak_panel.add_panel("Edges").default_closed(true);
PanelDeclarationBuilder &edges_panel =
tweak_panel.add_panel("Edges").default_closed(true).translation_context(
BLT_I18NCONTEXT_ID_IMAGE);
edges_panel.add_input<decl::Int>("Size", "Edge Search Size")
.default_value(3)
.min(0)