[Bf-blender-cvs] [1b753acd896] master: I18n disambiguation: Translation (of UI vs. moving something).

Bastien Montagne noreply at git.blender.org
Thu May 9 11:39:05 CEST 2019


Commit: 1b753acd896cd5886fe7b0a6e7b92027e1f30a60
Author: Bastien Montagne
Date:   Thu May 9 10:09:14 2019 +0200
Branches: master
https://developer.blender.org/rB1b753acd896cd5886fe7b0a6e7b92027e1f30a60

I18n disambiguation: Translation (of UI vs. moving something).

Part of T43295.

===================================================================

M	release/scripts/startup/bl_ui/space_userpref.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py
index cb589feb57f..f35388eb41c 100644
--- a/release/scripts/startup/bl_ui/space_userpref.py
+++ b/release/scripts/startup/bl_ui/space_userpref.py
@@ -24,6 +24,7 @@ from bpy.types import (
     Panel,
 )
 from bpy.app.translations import pgettext_iface as iface_
+from bpy.app.translations import contexts as i18n_contexts
 
 
 class USERPREF_HT_header(Header):
@@ -169,6 +170,7 @@ class USERPREF_PT_interface_text(PreferencePanel, Panel):
 
 class USERPREF_PT_interface_translation(PreferencePanel, Panel):
     bl_label = "Translation"
+    bl_translation_context = i18n_contexts.id_windowmanager
 
     @classmethod
     def poll(cls, context):



More information about the Bf-blender-cvs mailing list