diff options
author | Xiao Xiangquan <xiaoxiangquan@gmail.com> | 2011-08-16 20:58:35 +0400 |
---|---|---|
committer | Xiao Xiangquan <xiaoxiangquan@gmail.com> | 2011-08-16 20:58:35 +0400 |
commit | 18d95a8462a7b6386becfecb962657022afdb82b (patch) | |
tree | 2ed0077afa066b0e03862c97352a7476799bd20b /release | |
parent | 5293b4f498c3b3a851cc69850a4e131b0788089c (diff) |
fix a small bug , and update language-packs
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/modules/rna_prop_ui.py | 6 | ||||
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/release/scripts/modules/rna_prop_ui.py b/release/scripts/modules/rna_prop_ui.py index 388ae2b0e13..2d779f2ddda 100644 --- a/release/scripts/modules/rna_prop_ui.py +++ b/release/scripts/modules/rna_prop_ui.py @@ -19,7 +19,7 @@ # <pep8 compliant> import bpy - +from blf import gettext as _ def rna_idprop_ui_get(item, create=True): try: @@ -145,7 +145,7 @@ def draw(layout, context, context_member, property_type, use_edit=True): if use_edit: row = split.row(align=True) - prop = row.operator("wm.properties_edit", text="edit") + prop = row.operator("wm.properties_edit", text=_("edit")) assign_props(prop, val_draw, key) prop = row.operator("wm.properties_remove", text="", icon='ZOOMOUT') @@ -157,7 +157,7 @@ class PropertyPanel(): The subclass should have its own poll function and the variable '_context_path' MUST be set. """ - bl_label = "Custom Properties" + bl_label = _("Custom Properties") bl_options = {'DEFAULT_CLOSED'} @classmethod diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index 4d0c143eab5..f63fc50b254 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -798,6 +798,7 @@ class WM_OT_properties_edit(bpy.types.Operator): '''Internal use (edit a property data_path)''' bl_idname = "wm.properties_edit" bl_label = _("Edit Property") + __doc__ = _("Internal use (edit a property data_path)") bl_options = {'REGISTER'} # only because invoke_props_popup requires. data_path = rna_path @@ -882,6 +883,7 @@ class WM_OT_properties_add(bpy.types.Operator): '''Internal use (edit a property data_path)''' bl_idname = "wm.properties_add" bl_label = _("Add Property") + __doc__ = _("Internal use (edit a property data_path)") data_path = rna_path @@ -920,6 +922,7 @@ class WM_OT_properties_remove(bpy.types.Operator): '''Internal use (edit a property data_path)''' bl_idname = "wm.properties_remove" bl_label = _("Remove Property") + __doc__ = _("Internal use (edit a property data_path)") data_path = rna_path property = rna_property |