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:
@@ -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 ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user