I18n: Translate curve falloffs using existing context

In particular, "Inverse Square" is only extracted in the Curve
translation context.

Reported by Ye Gui in #43295.
This commit is contained in:
Damien Picard
2025-10-14 13:02:09 +02:00
committed by Bastien Montagne
parent 197d69627d
commit 51a0d1bf1c
2 changed files with 4 additions and 2 deletions

View File

@@ -59,7 +59,8 @@ static void cmp_node_dilate_declare(NodeDeclarationBuilder &b)
.default_value(PROP_SMOOTH)
.static_items(rna_enum_proportional_falloff_curve_only_items)
.optional_label()
.usage_by_menu("Type", CMP_NODE_DILATE_ERODE_DISTANCE_FEATHER);
.usage_by_menu("Type", CMP_NODE_DILATE_ERODE_DISTANCE_FEATHER)
.translation_context(BLT_I18NCONTEXT_ID_CURVE_LEGACY);
b.add_output<decl::Float>("Mask").structure_type(StructureType::Dynamic);
}

View File

@@ -137,7 +137,8 @@ static void cmp_node_keying_declare(NodeDeclarationBuilder &b)
postprocess_panel.add_input<decl::Menu>("Feather Falloff")
.default_value(PROP_SMOOTH)
.static_items(rna_enum_proportional_falloff_curve_only_items)
.optional_label();
.optional_label()
.translation_context(BLT_I18NCONTEXT_ID_CURVE_LEGACY);
PanelDeclarationBuilder &despill_panel = b.add_panel("Despill").default_closed(true);
despill_panel.add_input<decl::Float>("Strength", "Despill Strength")