diff options
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/modules/bpy_types.py | 4 | ||||
-rw-r--r-- | release/scripts/modules/rna_prop_ui.py | 4 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_console.py | 4 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_userpref.py | 8 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 8 |
5 files changed, 16 insertions, 12 deletions
diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py index b0a4e05b107..4398b1721f7 100644 --- a/release/scripts/modules/bpy_types.py +++ b/release/scripts/modules/bpy_types.py @@ -718,7 +718,9 @@ class Menu(StructRNA, _GenericUI, metaclass=RNAMeta): files.sort() for f, filepath in files: - props = layout.operator(operator, text=bpy.path.display_name(f)) + props = layout.operator(operator, + text=bpy.path.display_name(f), + translate=False) for attr, value in props_default.items(): setattr(props, attr, value) diff --git a/release/scripts/modules/rna_prop_ui.py b/release/scripts/modules/rna_prop_ui.py index 12438795539..5e8bccb815e 100644 --- a/release/scripts/modules/rna_prop_ui.py +++ b/release/scripts/modules/rna_prop_ui.py @@ -135,11 +135,11 @@ def draw(layout, context, context_member, property_type, use_edit=True): else: row = box.row() - row.label(text=key) + row.label(text=key, translate=False) # explicit exception for arrays if to_dict or to_list: - row.label(text=val_draw) + row.label(text=val_draw, translate=False) else: if key in rna_properties: row.prop(rna_item, key, text="") diff --git a/release/scripts/startup/bl_ui/space_console.py b/release/scripts/startup/bl_ui/space_console.py index 23d16c14f2d..70e0fb4fcf2 100644 --- a/release/scripts/startup/bl_ui/space_console.py +++ b/release/scripts/startup/bl_ui/space_console.py @@ -80,7 +80,9 @@ class CONSOLE_MT_language(Menu): languages.sort() for language in languages: - layout.operator("console.language", text=language[0].upper() + language[1:]).language = language + layout.operator("console.language", + text=language.title(), + translate=False).language = language def add_scrollback(text, text_type): diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py index b4b6554d4fa..4ebd38ca0b2 100644 --- a/release/scripts/startup/bl_ui/space_userpref.py +++ b/release/scripts/startup/bl_ui/space_userpref.py @@ -1217,15 +1217,15 @@ class USERPREF_PT_addons(Panel): if mod: split = colsub.row().split(percentage=0.15) split.label(text="File:") - split.label(text=mod.__file__) + split.label(text=mod.__file__, translate=False) if info["author"]: split = colsub.row().split(percentage=0.15) split.label(text="Author:") - split.label(text=info["author"]) + split.label(text=info["author"], translate=False) if info["version"]: split = colsub.row().split(percentage=0.15) split.label(text="Version:") - split.label(text='.'.join(str(x) for x in info["version"])) + split.label(text='.'.join(str(x) for x in info["version"]), translate=False) if info["warning"]: split = colsub.row().split(percentage=0.15) split.label(text="Warning:") @@ -1282,7 +1282,7 @@ class USERPREF_PT_addons(Panel): colsub = box.column() row = colsub.row() - row.label(text=module_name, icon='ERROR') + row.label(text=module_name, translate=False, icon='ERROR') if is_enabled: row.operator("wm.addon_disable", icon='CHECKBOX_HLT', text="", emboss=False).module = module_name diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index 0faac7cce3f..2fb420dabea 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -1142,14 +1142,14 @@ class VIEW3D_PT_tools_projectpaint(View3DPanel, Panel): row = split.row() row.active = (ipaint.use_stencil_layer) stencil_text = mesh.uv_texture_stencil.name if mesh.uv_texture_stencil else "" - row.menu("VIEW3D_MT_tools_projectpaint_stencil", text=stencil_text) + row.menu("VIEW3D_MT_tools_projectpaint_stencil", text=stencil_text, translate=False) row.prop(ipaint, "invert_stencil", text="", icon='IMAGE_ALPHA') col = layout.column() col.active = (settings.brush.image_tool == 'CLONE') col.prop(ipaint, "use_clone_layer", text="Clone from UV map") clone_text = mesh.uv_texture_clone.name if mesh.uv_texture_clone else "" - col.menu("VIEW3D_MT_tools_projectpaint_clone", text=clone_text) + col.menu("VIEW3D_MT_tools_projectpaint_clone", text=clone_text, translate=False) layout.prop(ipaint, "seam_bleed") @@ -1188,7 +1188,7 @@ class VIEW3D_MT_tools_projectpaint_clone(Menu): layout = self.layout for i, tex in enumerate(context.active_object.data.uv_textures): - props = layout.operator("wm.context_set_int", text=tex.name) + props = layout.operator("wm.context_set_int", text=tex.name, translate=False) props.data_path = "active_object.data.uv_texture_clone_index" props.value = i @@ -1199,7 +1199,7 @@ class VIEW3D_MT_tools_projectpaint_stencil(Menu): def draw(self, context): layout = self.layout for i, tex in enumerate(context.active_object.data.uv_textures): - props = layout.operator("wm.context_set_int", text=tex.name) + props = layout.operator("wm.context_set_int", text=tex.name, translate=False) props.data_path = "active_object.data.uv_texture_stencil_index" props.value = i |