diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-02-08 20:41:02 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-02-08 20:41:02 +0400 |
commit | d26c06312138d9032f8534282af5ba2a1cad0089 (patch) | |
tree | 256d00d0c8e7d892b5bd74be9f8c819ae2c7bb4b /release/scripts/modules | |
parent | ebf18c6df927c0075dcc9057cf1774309d56464e (diff) |
disable translations for some python buttons.
Diffstat (limited to 'release/scripts/modules')
-rw-r--r-- | release/scripts/modules/bpy_types.py | 4 | ||||
-rw-r--r-- | release/scripts/modules/rna_prop_ui.py | 4 |
2 files changed, 5 insertions, 3 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="") |