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:
Damien Picard 2022-07-18 15:09:37 +02:00 committed by Bastien Montagne
parent 47f3b53756
commit dec8854bf3
1 changed files with 3 additions and 1 deletions

View File

@ -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 ""