diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-05-09 11:09:14 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-05-09 12:38:54 +0300 |
commit | 1b753acd896cd5886fe7b0a6e7b92027e1f30a60 (patch) | |
tree | 3225cdb1e0fdf37a4c9baa030a1c80eff0cf1152 /release/scripts | |
parent | 895c41ec5d0f4574bedf800bf8bb6183169043f4 (diff) |
I18n disambiguation: Translation (of UI vs. moving something).
Part of T43295.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/space_userpref.py | 2 |
1 files changed, 2 insertions, 0 deletions
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): |