Various minor fixes to i18n code (mostly, translation of enum items' tooltips was wrongly bound to iface option, not tooltips one, and recent changes in r53119 were incorectly using BLF_pgettext, made them simpler by using CTX_IFACE_ macro).
Also fixed CTX_FOO_ macros when building without i18n, those were kinda wrong. And hid i18n ui section in userpreferences when built without its support too.
This commit is contained in:
@@ -492,15 +492,15 @@ class USERPREF_PT_system(Panel):
|
||||
sub.active = system.use_weight_color_range
|
||||
sub.template_color_ramp(system, "weight_color_range", expand=True)
|
||||
|
||||
column.separator()
|
||||
|
||||
column.prop(system, "use_international_fonts")
|
||||
if system.use_international_fonts:
|
||||
column.prop(system, "language")
|
||||
row = column.row()
|
||||
row.label(text="Translate:")
|
||||
row.prop(system, "use_translate_interface", text="Interface")
|
||||
row.prop(system, "use_translate_tooltips", text="Tooltips")
|
||||
if 'INTERNATIONAL' in bpy.app.build_options:
|
||||
column.separator()
|
||||
column.prop(system, "use_international_fonts")
|
||||
if system.use_international_fonts:
|
||||
column.prop(system, "language")
|
||||
row = column.row()
|
||||
row.label(text="Translate:")
|
||||
row.prop(system, "use_translate_interface", text="Interface")
|
||||
row.prop(system, "use_translate_tooltips", text="Tooltips")
|
||||
|
||||
|
||||
class USERPREF_MT_interface_theme_presets(Menu):
|
||||
|
||||
Reference in New Issue
Block a user