fix a small bug , and update language-packs
[blender-staging.git] / release / scripts / modules / rna_prop_ui.py
index 388ae2b0e131f7e5a4c37984f5f17de02a2fa25c..2d779f2ddda4ee624b24cf460939e61eb0e87965 100644 (file)
@@ -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