Fix T44237: translation does not work for input sockets in 'Active node properties' panel.
This commit is contained in:
parent
99d8e08ed9
commit
13a63234d6
Notes:
blender-bot
2023-02-14 09:17:53 +01:00
Referenced by issue #44237, translation does not work in spacebar search and in some node editor places
|
@ -19,6 +19,7 @@
|
|||
# <pep8 compliant>
|
||||
import bpy
|
||||
from bpy.types import Header, Menu, Panel
|
||||
from bpy.app.translations import pgettext_iface as iface_
|
||||
from bl_ui.properties_grease_pencil_common import (
|
||||
GreasePencilDrawingToolsPanel,
|
||||
GreasePencilStrokeEditPanel,
|
||||
|
@ -358,7 +359,7 @@ class NODE_PT_active_node_properties(Panel):
|
|||
layout.label("Inputs:")
|
||||
for socket in value_inputs:
|
||||
row = layout.row()
|
||||
socket.draw(context, row, node, socket.name)
|
||||
socket.draw(context, row, node, iface_(socket.name, socket.bl_rna.translation_context))
|
||||
|
||||
|
||||
# Node Backdrop options
|
||||
|
|
Loading…
Reference in New Issue