Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Xiangquan <xiaoxiangquan@gmail.com>2011-08-02 20:51:50 +0400
committerXiao Xiangquan <xiaoxiangquan@gmail.com>2011-08-02 20:51:50 +0400
commit79656a65e0abc4740f0d87232b09a1172e22bfdd (patch)
tree217bfdbe86a76f2cd1249b67c31c33dd025d1188 /release/scripts/startup/bl_ui/properties_data_metaball.py
parent66d1707293f53d78978b7bcbc1d13d35e2d4398b (diff)
finish handle for properties_XXX scripts
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_data_metaball.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_data_metaball.py38
1 files changed, 19 insertions, 19 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_metaball.py b/release/scripts/startup/bl_ui/properties_data_metaball.py
index 6dda99bc37f..96b94d369b5 100644
--- a/release/scripts/startup/bl_ui/properties_data_metaball.py
+++ b/release/scripts/startup/bl_ui/properties_data_metaball.py
@@ -19,7 +19,7 @@
# <pep8 compliant>
import bpy
from rna_prop_ui import PropertyPanel
-
+from blf import gettext as _
class DataButtonsPanel():
bl_space_type = 'PROPERTIES'
@@ -49,7 +49,7 @@ class DATA_PT_context_metaball(DataButtonsPanel, bpy.types.Panel):
class DATA_PT_metaball(DataButtonsPanel, bpy.types.Panel):
- bl_label = "Metaball"
+ bl_label = _("Metaball")
def draw(self, context):
layout = self.layout
@@ -59,21 +59,21 @@ class DATA_PT_metaball(DataButtonsPanel, bpy.types.Panel):
split = layout.split()
col = split.column()
- col.label(text="Resolution:")
+ col.label(text=_("Resolution:"))
sub = col.column(align=True)
- sub.prop(mball, "resolution", text="View")
- sub.prop(mball, "render_resolution", text="Render")
+ sub.prop(mball, "resolution", text=_("View"))
+ sub.prop(mball, "render_resolution", text=_("Render"))
col = split.column()
- col.label(text="Settings:")
- col.prop(mball, "threshold", text="Threshold")
+ col.label(text=_("Settings:"))
+ col.prop(mball, "threshold", text=_("Threshold"))
- layout.label(text="Update:")
+ layout.label(text=_("Update:"))
layout.prop(mball, "update_method", expand=True)
class DATA_PT_mball_texture_space(DataButtonsPanel, bpy.types.Panel):
- bl_label = "Texture Space"
+ bl_label = _("Texture Space")
bl_options = {'DEFAULT_CLOSED'}
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
@@ -85,12 +85,12 @@ class DATA_PT_mball_texture_space(DataButtonsPanel, bpy.types.Panel):
layout.prop(mball, "use_auto_texspace")
row = layout.row()
- row.column().prop(mball, "texspace_location", text="Location")
- row.column().prop(mball, "texspace_size", text="Size")
+ row.column().prop(mball, "texspace_location", text=_("Location"))
+ row.column().prop(mball, "texspace_size", text=_("Size"))
class DATA_PT_metaball_element(DataButtonsPanel, bpy.types.Panel):
- bl_label = "Active Element"
+ bl_label = _("Active Element")
@classmethod
def poll(cls, context):
@@ -106,25 +106,25 @@ class DATA_PT_metaball_element(DataButtonsPanel, bpy.types.Panel):
split = layout.split()
col = split.column(align=True)
- col.label(text="Settings:")
- col.prop(metaelem, "stiffness", text="Stiffness")
- col.prop(metaelem, "use_negative", text="Negative")
- col.prop(metaelem, "hide", text="Hide")
+ col.label(text=_("Settings:"))
+ col.prop(metaelem, "stiffness", text=_("Stiffness"))
+ col.prop(metaelem, "use_negative", text=_("Negative"))
+ col.prop(metaelem, "hide", text=_("Hide"))
col = split.column(align=True)
if metaelem.type in {'CUBE', 'ELLIPSOID'}:
- col.label(text="Size:")
+ col.label(text=_("Size:"))
col.prop(metaelem, "size_x", text="X")
col.prop(metaelem, "size_y", text="Y")
col.prop(metaelem, "size_z", text="Z")
elif metaelem.type == 'TUBE':
- col.label(text="Size:")
+ col.label(text=_("Size:"))
col.prop(metaelem, "size_x", text="X")
elif metaelem.type == 'PLANE':
- col.label(text="Size:")
+ col.label(text=_("Size:"))
col.prop(metaelem, "size_x", text="X")
col.prop(metaelem, "size_y", text="Y")