[Bf-blender-cvs] [5892f0fd0cc] blender2.8: UI: small clean-up of I18N UI in userpref.
Bastien Montagne
noreply at git.blender.org
Wed Nov 21 12:07:48 CET 2018
Commit: 5892f0fd0ccc7f956863248465babce259d09fe1
Author: Bastien Montagne
Date: Wed Nov 21 12:04:09 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB5892f0fd0ccc7f956863248465babce259d09fe1
UI: small clean-up of I18N UI in userpref.
Mainly do not hide i18n options anymore, this is against our rules, just
disable them instead.
===================================================================
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 92aa42520ea..7d8be6ceec0 100644
--- a/release/scripts/startup/bl_ui/space_userpref.py
+++ b/release/scripts/startup/bl_ui/space_userpref.py
@@ -464,14 +464,15 @@ class USERPREF_PT_system(Panel):
if bpy.app.build_options.international:
column.prop(system, "use_international_fonts")
- if system.use_international_fonts:
- column.prop(system, "language")
- row = column.row()
- row.label(text="Translate:", text_ctxt=i18n_contexts.id_windowmanager)
- row = column.row(align=True)
- row.prop(system, "use_translate_interface", text="Interface", toggle=True)
- row.prop(system, "use_translate_tooltips", text="Tooltips", toggle=True)
- row.prop(system, "use_translate_new_dataname", text="New Data", toggle=True)
+ sub_col = column.column()
+ sub_col.active = system.use_international_fonts
+ sub_col.prop(system, "language")
+ row = sub_col.row()
+ row.label(text="Translate:", text_ctxt=i18n_contexts.id_windowmanager)
+ row = sub_col.row(align=True)
+ row.prop(system, "use_translate_tooltips", text="Tooltips", toggle=True)
+ row.prop(system, "use_translate_interface", text="Interface", toggle=True)
+ row.prop(system, "use_translate_new_dataname", text="New Data", toggle=True)
class USERPREF_MT_interface_theme_presets(Menu):
More information about the Bf-blender-cvs
mailing list