diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-08-02 17:17:41 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-08-02 17:20:06 +0300 |
commit | 630747ca66dac8e5ccad46de047025b3912a2b53 (patch) | |
tree | cf83daed18476dd62ec3810fa272d50a1e9708f9 /release/scripts | |
parent | 820522d5140901bb0706b2f30a41d5606fffb9aa (diff) |
Fix T66731: Translated texts remain original english (Tools' tips part).
This should fix all remaining issues reported in T66731 I think.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_common.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_common.py b/release/scripts/startup/bl_ui/space_toolsystem_common.py index 651d30a029f..5a1398d0582 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_common.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_common.py @@ -22,6 +22,8 @@ from bpy.types import ( Menu, ) +from bpy.app.translations import pgettext_tip as tip_ + __all__ = ( "ToolDef", "ToolSelectPanelHelper", @@ -782,7 +784,7 @@ def description_from_id(context, space_type, idname, *, use_operator=True): if callable(description): km = _keymap_from_item(context, item) return description(context, item, km) - return description + return tip_(description) # Extract from the operator. if use_operator: @@ -798,7 +800,7 @@ def description_from_id(context, space_type, idname, *, use_operator=True): if operator is not None: import _bpy - return _bpy.ops.get_rna_type(operator).description + return tip_(_bpy.ops.get_rna_type(operator).description) return "" |