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:
committed by
Bastien Montagne
parent
771af1a0ad
commit
ac8a3f98c2
@@ -15,7 +15,7 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
{
|
||||
b.add_output<decl::Bool>("Boolean").custom_draw([](CustomSocketDrawParams ¶ms) {
|
||||
uiLayout &row = params.layout.row(true);
|
||||
row.prop(¶ms.node_ptr, "boolean", UI_ITEM_NONE, "Boolean", ICON_NONE);
|
||||
row.prop(¶ms.node_ptr, "boolean", UI_ITEM_NONE, IFACE_("Boolean"), ICON_NONE);
|
||||
if (gizmos::value_node_has_gizmo(params.tree, params.node)) {
|
||||
row.prop(¶ms.socket_ptr, "pin_gizmo", UI_ITEM_NONE, "", ICON_GIZMO);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user