I18n: Translate newly-created node group names

Reported by Ye Gui in #43295.
This commit is contained in:
Damien Picard
2025-09-23 14:43:50 +02:00
committed by Bastien Montagne
parent 8abd92caf0
commit 6983b97640
2 changed files with 19 additions and 2 deletions

View File

@@ -24,6 +24,7 @@ from mathutils import (
from bpy.app.translations import (
pgettext_tip as tip_,
pgettext_data as data_,
pgettext_rpt as rpt_,
)
@@ -560,7 +561,7 @@ class NODE_OT_add_empty_group(NodeAddOperator, bpy.types.Operator):
@staticmethod
def create_empty_group(idname):
group = bpy.data.node_groups.new(name="NodeGroup", type=idname)
group = bpy.data.node_groups.new(name=data_("NodeGroup"), type=idname)
input_node = group.nodes.new('NodeGroupInput')
input_node.select = False
input_node.location.x = -200 - input_node.width