diff options
author | Damien Picard <pioverfour> | 2022-07-18 16:09:37 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-07-18 16:10:08 +0300 |
commit | dec8854bf31df3cedfa0efb5169160ba4a54d202 (patch) | |
tree | c713765b1e5089e4c68a03f8ac00c0cfffcb04ff | |
parent | 47f3b5375648505f435f21417012ffcd78ddd923 (diff) |
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
-rw-r--r-- | release/scripts/startup/bl_operators/node.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/node.py b/release/scripts/startup/bl_operators/node.py index bad12ff4621..df4ca9ef170 100644 --- a/release/scripts/startup/bl_operators/node.py +++ b/release/scripts/startup/bl_operators/node.py @@ -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 "" |