I18n: Translate "Boolean" output in Boolean GN node

This node uses the recently-introduced uiLayout API to draw its UI.
This still needs to do manual translation using `IFACE_()`. This
commit adds this macro.

Reported by Ye Gui in #43295.
This commit is contained in:
Damien Picard
2025-07-05 18:55:11 +02:00
committed by Bastien Montagne
parent 771af1a0ad
commit ac8a3f98c2

View File

@@ -15,7 +15,7 @@ static void node_declare(NodeDeclarationBuilder &b)
{
b.add_output<decl::Bool>("Boolean").custom_draw([](CustomSocketDrawParams &params) {
uiLayout &row = params.layout.row(true);
row.prop(&params.node_ptr, "boolean", UI_ITEM_NONE, "Boolean", ICON_NONE);
row.prop(&params.node_ptr, "boolean", UI_ITEM_NONE, IFACE_("Boolean"), ICON_NONE);
if (gizmos::value_node_has_gizmo(params.tree, params.node)) {
row.prop(&params.socket_ptr, "pin_gizmo", UI_ITEM_NONE, "", ICON_GIZMO);
}