I18n: translate node group socket type and subtype #107100
|
@ -204,7 +204,7 @@ def dump_rna_messages(msgs, reports, settings, verbose=False):
|
|||
def class_blacklist():
|
||||
blacklist_rna_class = {getattr(bpy.types, cls_id) for cls_id in (
|
||||
# core classes
|
||||
"Context", "Event", "Function", "UILayout", "UnknownType", "Property", "Struct",
|
||||
"Context", "Event", "Function", "UILayout", "UnknownType", "Struct",
|
||||
|
||||
# registerable classes
|
||||
"Panel", "Menu", "Header", "RenderEngine", "Operator", "OperatorMacro", "Macro", "KeyingSetInfo",
|
||||
)
|
||||
|
|
|
@ -885,7 +885,8 @@ class NodeTreeInterfacePanel(Panel):
|
|||
props = property_row.operator_menu_enum(
|
||||
"node.tree_socket_change_type",
|
||||
"socket_type",
|
||||
text=active_socket.bl_label if active_socket.bl_label else active_socket.bl_idname,
|
||||
text=(iface_(active_socket.bl_label) if active_socket.bl_label
|
||||
else iface_(active_socket.bl_idname)),
|
||||
)
|
||||
props.in_out = in_out
|
||||
|
||||
|
@ -903,10 +904,8 @@ class NodeTreeInterfacePanel(Panel):
|
|||
props = property_row.operator_menu_enum(
|
||||
"node.tree_socket_change_subtype",
|
||||
"socket_subtype",
|
||||
text=(
|
||||
active_socket.bl_subtype_label if active_socket.bl_subtype_label else
|
||||
active_socket.bl_idname
|
||||
),
|
||||
text=(iface_(active_socket.bl_subtype_label) if active_socket.bl_subtype_label
|
||||
else iface_(active_socket.bl_idname)),
|
||||
)
|
||||
|
||||
layout.use_property_split = True
|
||||
|
|
Loading…
Reference in New Issue
I find it weird that you need to remove this from the blacklist.... can you elaborate on the why?
Yes,
Time (Scene Relative)
andTime (Absolute)
are both defined as part ofbpy.types.Property
:They are not extracted from anywhere else.
Is there a better way to extract just those?
Mmmm I see.... But are these strings actually shown in the UI? In theory this should only be API-related, they are not expected to be exposed directly to the user in the UI :|
They are since
e7f395dd20