I18n: translate add node operator tooltips
The tooltips from the Add Node menu were extracted, but not translated. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15467
This commit is contained in:
parent
47f3b53756
commit
dec8854bf3
|
@ -14,6 +14,8 @@ from bpy.props import (
|
|||
StringProperty,
|
||||
)
|
||||
|
||||
from bpy.app.translations import pgettext_tip as tip_
|
||||
|
||||
|
||||
class NodeSetting(PropertyGroup):
|
||||
value: StringProperty(
|
||||
|
@ -134,7 +136,7 @@ class NodeAddOperator:
|
|||
nodetype = properties["type"]
|
||||
bl_rna = bpy.types.Node.bl_rna_get_subclass(nodetype)
|
||||
if bl_rna is not None:
|
||||
return bl_rna.description
|
||||
return tip_(bl_rna.description)
|
||||
else:
|
||||
return ""
|
||||
|
||||
|
|
Loading…
Reference in New Issue