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:
committed by
Bastien Montagne
parent
197d69627d
commit
51a0d1bf1c
@@ -59,7 +59,8 @@ static void cmp_node_dilate_declare(NodeDeclarationBuilder &b)
|
|||||||
.default_value(PROP_SMOOTH)
|
.default_value(PROP_SMOOTH)
|
||||||
.static_items(rna_enum_proportional_falloff_curve_only_items)
|
.static_items(rna_enum_proportional_falloff_curve_only_items)
|
||||||
.optional_label()
|
.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);
|
b.add_output<decl::Float>("Mask").structure_type(StructureType::Dynamic);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -137,7 +137,8 @@ static void cmp_node_keying_declare(NodeDeclarationBuilder &b)
|
|||||||
postprocess_panel.add_input<decl::Menu>("Feather Falloff")
|
postprocess_panel.add_input<decl::Menu>("Feather Falloff")
|
||||||
.default_value(PROP_SMOOTH)
|
.default_value(PROP_SMOOTH)
|
||||||
.static_items(rna_enum_proportional_falloff_curve_only_items)
|
.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);
|
PanelDeclarationBuilder &despill_panel = b.add_panel("Despill").default_closed(true);
|
||||||
despill_panel.add_input<decl::Float>("Strength", "Despill Strength")
|
despill_panel.add_input<decl::Float>("Strength", "Despill Strength")
|
||||||
|
|||||||
Reference in New Issue
Block a user