I18n disambiguation: Translation (of UI vs. moving something).
authorBastien Montagne <montagne29@wanadoo.fr>
Thu, 9 May 2019 08:09:14 +0000 (10:09 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Thu, 9 May 2019 09:38:54 +0000 (11:38 +0200)
Part of T43295.

release/scripts/startup/bl_ui/space_userpref.py

index cb589fe..f35388e 100644 (file)
@@ -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):