remove use of gettext: _("...") style translation now its handled by rna.
authorCampbell Barton <ideasman42@gmail.com>
Wed, 21 Sep 2011 15:18:38 +0000 (15:18 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 21 Sep 2011 15:18:38 +0000 (15:18 +0000)
40 files changed:
release/scripts/startup/bl_ui/properties_animviz.py
release/scripts/startup/bl_ui/properties_data_armature.py
release/scripts/startup/bl_ui/properties_data_bone.py
release/scripts/startup/bl_ui/properties_data_camera.py
release/scripts/startup/bl_ui/properties_data_curve.py
release/scripts/startup/bl_ui/properties_data_empty.py
release/scripts/startup/bl_ui/properties_data_lamp.py
release/scripts/startup/bl_ui/properties_data_mesh.py
release/scripts/startup/bl_ui/properties_data_metaball.py
release/scripts/startup/bl_ui/properties_data_modifier.py
release/scripts/startup/bl_ui/properties_game.py
release/scripts/startup/bl_ui/properties_material.py
release/scripts/startup/bl_ui/properties_object.py
release/scripts/startup/bl_ui/properties_object_constraint.py
release/scripts/startup/bl_ui/properties_particle.py
release/scripts/startup/bl_ui/properties_physics_cloth.py
release/scripts/startup/bl_ui/properties_physics_common.py
release/scripts/startup/bl_ui/properties_physics_field.py
release/scripts/startup/bl_ui/properties_physics_fluid.py
release/scripts/startup/bl_ui/properties_physics_smoke.py
release/scripts/startup/bl_ui/properties_physics_softbody.py
release/scripts/startup/bl_ui/properties_render.py
release/scripts/startup/bl_ui/properties_scene.py
release/scripts/startup/bl_ui/properties_texture.py
release/scripts/startup/bl_ui/properties_world.py
release/scripts/startup/bl_ui/space_console.py
release/scripts/startup/bl_ui/space_dopesheet.py
release/scripts/startup/bl_ui/space_graph.py
release/scripts/startup/bl_ui/space_image.py
release/scripts/startup/bl_ui/space_info.py
release/scripts/startup/bl_ui/space_logic.py
release/scripts/startup/bl_ui/space_nla.py
release/scripts/startup/bl_ui/space_node.py
release/scripts/startup/bl_ui/space_sequencer.py
release/scripts/startup/bl_ui/space_text.py
release/scripts/startup/bl_ui/space_time.py
release/scripts/startup/bl_ui/space_userpref.py
release/scripts/startup/bl_ui/space_userpref_keymap.py
release/scripts/startup/bl_ui/space_view3d.py
release/scripts/startup/bl_ui/space_view3d_toolbar.py

index d75541feca0e8480382f20ddb8024f2663a5dba4..3b33a7ccc6100444603a03b401f7b7c80dc5297f 100644 (file)
@@ -23,7 +23,6 @@
 # NOTE:
 # The specialised panel types are derived in their respective UI modules
 # dont register these classes since they are only helpers.
 # NOTE:
 # The specialised panel types are derived in their respective UI modules
 # dont register these classes since they are only helpers.
-from blf import gettext as _
 
 
 class MotionPathButtonsPanel():
 
 
 class MotionPathButtonsPanel():
@@ -44,23 +43,23 @@ class MotionPathButtonsPanel():
         col = split.column()
         sub = col.column(align=True)
         if (mps.type == 'CURRENT_FRAME'):
         col = split.column()
         sub = col.column(align=True)
         if (mps.type == 'CURRENT_FRAME'):
-            sub.prop(mps, "frame_before", text=_("Before"))
-            sub.prop(mps, "frame_after", text=_("After"))
+            sub.prop(mps, "frame_before", text="Before")
+            sub.prop(mps, "frame_after", text="After")
         elif (mps.type == 'RANGE'):
         elif (mps.type == 'RANGE'):
-            sub.prop(mps, "frame_start", text=_("Start"))
-            sub.prop(mps, "frame_end", text=_("End"))
+            sub.prop(mps, "frame_start", text="Start")
+            sub.prop(mps, "frame_end", text="End")
 
 
-        sub.prop(mps, "frame_step", text=_("Step"))
+        sub.prop(mps, "frame_step", text="Step")
         if bones:
             col.row().prop(mps, "bake_location", expand=True)
 
         col = split.column()
         if bones:
             col.row().prop(mps, "bake_location", expand=True)
 
         col = split.column()
-        col.label(text=_("Display:"))
-        col.prop(mps, "show_frame_numbers", text=_("Frame Numbers"))
-        col.prop(mps, "show_keyframe_highlight", text=_("Keyframes"))
+        col.label(text="Display:")
+        col.prop(mps, "show_frame_numbers", text="Frame Numbers")
+        col.prop(mps, "show_keyframe_highlight", text="Keyframes")
         if bones:
         if bones:
-            col.prop(mps, "show_keyframe_action_all", text=_("+ Non-Grouped Keyframes"))
-        col.prop(mps, "show_keyframe_numbers", text=_("Keyframe Numbers"))
+            col.prop(mps, "show_keyframe_action_all", text="+ Non-Grouped Keyframes")
+        col.prop(mps, "show_keyframe_numbers", text="Keyframe Numbers")
 
 
 # FIXME: this panel still needs to be ported so that it will work correctly with animviz
 
 
 # FIXME: this panel still needs to be ported so that it will work correctly with animviz
@@ -83,16 +82,16 @@ class OnionSkinButtonsPanel():
 
         sub = col.column(align=True)
         if arm.ghost_type == 'RANGE':
 
         sub = col.column(align=True)
         if arm.ghost_type == 'RANGE':
-            sub.prop(arm, "ghost_frame_start", text=_("Start"))
-            sub.prop(arm, "ghost_frame_end", text=_("End"))
-            sub.prop(arm, "ghost_size", text=_("Step"))
+            sub.prop(arm, "ghost_frame_start", text="Start")
+            sub.prop(arm, "ghost_frame_end", text="End")
+            sub.prop(arm, "ghost_size", text="Step")
         elif arm.ghost_type == 'CURRENT_FRAME':
         elif arm.ghost_type == 'CURRENT_FRAME':
-            sub.prop(arm, "ghost_step", text=_("Range"))
-            sub.prop(arm, "ghost_size", text=_("Step"))
+            sub.prop(arm, "ghost_step", text="Range")
+            sub.prop(arm, "ghost_size", text="Step")
 
         col = split.column()
 
         col = split.column()
-        col.label(text=_("Display:"))
-        col.prop(arm, "show_only_ghost_selected", text=_("Selected Only"))
+        col.label(text="Display:")
+        col.prop(arm, "show_only_ghost_selected", text="Selected Only")
 
 if __name__ == "__main__":  # only for live edit.
     import bpy
 
 if __name__ == "__main__":  # only for live edit.
     import bpy
index 97783c09d4b4cc7ba5cefa0c6ef2098d89972374..61093abe81400d4985907652124b40ad4495eac5 100644 (file)
@@ -20,7 +20,6 @@
 import bpy
 from bpy.types import Panel, Menu
 from rna_prop_ui import PropertyPanel
 import bpy
 from bpy.types import Panel, Menu
 from rna_prop_ui import PropertyPanel
-from blf import gettext as _
 
 
 class ArmatureButtonsPanel():
 
 
 class ArmatureButtonsPanel():
@@ -61,16 +60,16 @@ class DATA_PT_skeleton(ArmatureButtonsPanel, Panel):
         layout.prop(arm, "pose_position", expand=True)
 
         col = layout.column()
         layout.prop(arm, "pose_position", expand=True)
 
         col = layout.column()
-        col.label(text=_("Layers:"))
+        col.label(text="Layers:")
         col.prop(arm, "layers", text="")
         col.prop(arm, "layers", text="")
-        col.label(text=_("Protected Layers:"))
+        col.label(text="Protected Layers:")
         col.prop(arm, "layers_protected", text="")
 
         layout.label(text="Deform:")
         flow = layout.column_flow()
         col.prop(arm, "layers_protected", text="")
 
         layout.label(text="Deform:")
         flow = layout.column_flow()
-        flow.prop(arm, "use_deform_vertex_groups", text=_("Vertex Groups"))
-        flow.prop(arm, "use_deform_envelopes", text=_("Envelopes"))
-        flow.prop(arm, "use_deform_preserve_volume", text=_("Quaternion"))
+        flow.prop(arm, "use_deform_vertex_groups", text="Vertex Groups")
+        flow.prop(arm, "use_deform_envelopes", text="Envelopes")
+        flow.prop(arm, "use_deform_preserve_volume", text="Quaternion")
 
         if context.scene.render.engine == "BLENDER_GAME":
             layout.row().prop(arm, "vert_deformer", expand=True)
 
         if context.scene.render.engine == "BLENDER_GAME":
             layout.row().prop(arm, "vert_deformer", expand=True)
@@ -90,15 +89,15 @@ class DATA_PT_display(ArmatureButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.prop(arm, "show_names", text=_("Names"))
-        col.prop(arm, "show_axes", text=_("Axes"))
-        col.prop(arm, "show_bone_custom_shapes", text=_("Shapes"))
+        col.prop(arm, "show_names", text="Names")
+        col.prop(arm, "show_axes", text="Axes")
+        col.prop(arm, "show_bone_custom_shapes", text="Shapes")
 
         col = split.column()
 
         col = split.column()
-        col.prop(arm, "show_group_colors", text=_("Colors"))
+        col.prop(arm, "show_group_colors", text="Colors")
         if ob:
         if ob:
-            col.prop(ob, "show_x_ray", text=_("X-Ray"))
-        col.prop(arm, "use_deform_delay", text=_("Delay Refresh"))
+            col.prop(ob, "show_x_ray", text="X-Ray")
+        col.prop(arm, "use_deform_delay", text="Delay Refresh")
 
 
 class DATA_PT_bone_group_specials(Menu):
 
 
 class DATA_PT_bone_group_specials(Menu):
@@ -162,12 +161,12 @@ class DATA_PT_bone_groups(ArmatureButtonsPanel, Panel):
         row.active = (ob.proxy is None)
 
         sub = row.row(align=True)
         row.active = (ob.proxy is None)
 
         sub = row.row(align=True)
-        sub.operator("pose.group_assign", text=_("Assign"))
-        sub.operator("pose.group_unassign", text=_("Remove"))  # row.operator("pose.bone_group_remove_from", text=_("Remove"))
+        sub.operator("pose.group_assign", text="Assign")
+        sub.operator("pose.group_unassign", text="Remove")  # row.operator("pose.bone_group_remove_from", text="Remove")
 
         sub = row.row(align=True)
 
         sub = row.row(align=True)
-        sub.operator("pose.group_select", text=_("Select"))
-        sub.operator("pose.group_deselect", text=_("Deselect"))
+        sub.operator("pose.group_select", text="Select")
+        sub.operator("pose.group_deselect", text="Deselect")
 
 
 class DATA_PT_pose_library(ArmatureButtonsPanel, Panel):
 
 
 class DATA_PT_pose_library(ArmatureButtonsPanel, Panel):
@@ -231,16 +230,16 @@ class DATA_PT_ghost(ArmatureButtonsPanel, Panel):
         col = split.column(align=True)
 
         if arm.ghost_type == 'RANGE':
         col = split.column(align=True)
 
         if arm.ghost_type == 'RANGE':
-            col.prop(arm, "ghost_frame_start", text=_("Start"))
-            col.prop(arm, "ghost_frame_end", text=_("End"))
-            col.prop(arm, "ghost_size", text=_("Step"))
+            col.prop(arm, "ghost_frame_start", text="Start")
+            col.prop(arm, "ghost_frame_end", text="End")
+            col.prop(arm, "ghost_size", text="Step")
         elif arm.ghost_type == 'CURRENT_FRAME':
         elif arm.ghost_type == 'CURRENT_FRAME':
-            col.prop(arm, "ghost_step", text=_("Range"))
-            col.prop(arm, "ghost_size", text=_("Step"))
+            col.prop(arm, "ghost_step", text="Range")
+            col.prop(arm, "ghost_size", text="Step")
 
         col = split.column()
 
         col = split.column()
-        col.label(text=_("Display:"))
-        col.prop(arm, "show_only_ghost_selected", text=_("Selected Only"))
+        col.label(text="Display:")
+        col.prop(arm, "show_only_ghost_selected", text="Selected Only")
 
 
 class DATA_PT_iksolver_itasc(ArmatureButtonsPanel, Panel):
 
 
 class DATA_PT_iksolver_itasc(ArmatureButtonsPanel, Panel):
@@ -264,7 +263,7 @@ class DATA_PT_iksolver_itasc(ArmatureButtonsPanel, Panel):
             layout.prop(itasc, "mode", expand=True)
             simulation = (itasc.mode == 'SIMULATION')
             if simulation:
             layout.prop(itasc, "mode", expand=True)
             simulation = (itasc.mode == 'SIMULATION')
             if simulation:
-                layout.label(text=_("Reiteration:"))
+                layout.label(text="Reiteration:")
                 layout.prop(itasc, "reiteration_method", expand=True)
 
             row = layout.row()
                 layout.prop(itasc, "reiteration_method", expand=True)
 
             row = layout.row()
@@ -276,8 +275,8 @@ class DATA_PT_iksolver_itasc(ArmatureButtonsPanel, Panel):
                 layout.prop(itasc, "use_auto_step")
                 row = layout.row()
                 if itasc.use_auto_step:
                 layout.prop(itasc, "use_auto_step")
                 row = layout.row()
                 if itasc.use_auto_step:
-                    row.prop(itasc, "step_min", text=_("Min"))
-                    row.prop(itasc, "step_max", text=_("Max"))
+                    row.prop(itasc, "step_min", text="Min")
+                    row.prop(itasc, "step_max", text="Max")
                 else:
                     row.prop(itasc, "step_count")
 
                 else:
                     row.prop(itasc, "step_count")
 
@@ -287,7 +286,7 @@ class DATA_PT_iksolver_itasc(ArmatureButtonsPanel, Panel):
                 layout.prop(itasc, "velocity_max")
             if itasc.solver == 'DLS':
                 row = layout.row()
                 layout.prop(itasc, "velocity_max")
             if itasc.solver == 'DLS':
                 row = layout.row()
-                row.prop(itasc, "damping_max", text=_("Damp"), slider=True)
+                row.prop(itasc, "damping_max", text="Damp", slider=True)
                 row.prop(itasc, "damping_epsilon", text="Eps", slider=True)
 
 from bl_ui.properties_animviz import (
                 row.prop(itasc, "damping_epsilon", text="Eps", slider=True)
 
 from bl_ui.properties_animviz import (
@@ -315,8 +314,8 @@ class DATA_PT_motion_paths(MotionPathButtonsPanel, Panel):
         layout.separator()
 
         split = layout.split()
         layout.separator()
 
         split = layout.split()
-        split.operator("pose.paths_calculate", text=_("Calculate Paths"))
-        split.operator("pose.paths_clear", text=_("Clear Paths"))
+        split.operator("pose.paths_calculate", text="Calculate Paths")
+        split.operator("pose.paths_clear", text="Clear Paths")
 
 
 class DATA_PT_onion_skinning(OnionSkinButtonsPanel):  # , Panel): # inherit from panel when ready
 
 
 class DATA_PT_onion_skinning(OnionSkinButtonsPanel):  # , Panel): # inherit from panel when ready
index 54045cd7d6e3c01fe2f6f88768c9fbdb660a6fb6..b3eaf88d5bfd066d70e900716c0628d3d2fb95b7 100644 (file)
@@ -21,7 +21,6 @@
 import bpy
 from bpy.types import Panel
 from rna_prop_ui import PropertyPanel
 import bpy
 from bpy.types import Panel
 from rna_prop_ui import PropertyPanel
-from blf import gettext as _
 
 
 class BoneButtonsPanel():
 
 
 class BoneButtonsPanel():
@@ -77,14 +76,14 @@ class BONE_PT_transform(BoneButtonsPanel, Panel):
 
             col = row.column()
             if pchan.rotation_mode == 'QUATERNION':
 
             col = row.column()
             if pchan.rotation_mode == 'QUATERNION':
-                col.prop(pchan, "rotation_quaternion", text=_("Rotation"))
+                col.prop(pchan, "rotation_quaternion", text="Rotation")
             elif pchan.rotation_mode == 'AXIS_ANGLE':
             elif pchan.rotation_mode == 'AXIS_ANGLE':
-                #col.label(text=_("Rotation"))
-                #col.prop(pchan, "rotation_angle", text=_("Angle"))
-                #col.prop(pchan, "rotation_axis", text=_("Axis"))
-                col.prop(pchan, "rotation_axis_angle", text=_("Rotation"))
+                #col.label(text="Rotation")
+                #col.prop(pchan, "rotation_angle", text="Angle")
+                #col.prop(pchan, "rotation_axis", text="Axis")
+                col.prop(pchan, "rotation_axis_angle", text="Rotation")
             else:
             else:
-                col.prop(pchan, "rotation_euler", text=_("Rotation"))
+                col.prop(pchan, "rotation_euler", text="Rotation")
 
             row.column().prop(pchan, "scale")
 
 
             row.column().prop(pchan, "scale")
 
@@ -98,7 +97,7 @@ class BONE_PT_transform(BoneButtonsPanel, Panel):
 
             col = row.column()
             sub = col.column(align=True)
 
             col = row.column()
             sub = col.column(align=True)
-            sub.label(text=_("Roll:"))
+            sub.label(text="Roll:")
             sub.prop(bone, "roll", text="")
             sub.label()
             sub.prop(bone, "lock")
             sub.prop(bone, "roll", text="")
             sub.label()
             sub.prop(bone, "lock")
@@ -127,12 +126,12 @@ class BONE_PT_transform_locks(BoneButtonsPanel, Panel):
 
         col = row.column()
         if pchan.rotation_mode in {'QUATERNION', 'AXIS_ANGLE'}:
 
         col = row.column()
         if pchan.rotation_mode in {'QUATERNION', 'AXIS_ANGLE'}:
-            col.prop(pchan, "lock_rotations_4d", text=_("Lock Rotation"))
+            col.prop(pchan, "lock_rotations_4d", text="Lock Rotation")
             if pchan.lock_rotations_4d:
                 col.prop(pchan, "lock_rotation_w", text="W")
             col.prop(pchan, "lock_rotation", text="")
         else:
             if pchan.lock_rotations_4d:
                 col.prop(pchan, "lock_rotation_w", text="W")
             col.prop(pchan, "lock_rotation", text="")
         else:
-            col.prop(pchan, "lock_rotation", text=_("Rotation"))
+            col.prop(pchan, "lock_rotation", text="Rotation")
 
         row.column().prop(pchan, "lock_scale")
 
 
         row.column().prop(pchan, "lock_scale")
 
@@ -156,17 +155,17 @@ class BONE_PT_relations(BoneButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Layers:"))
+        col.label(text="Layers:")
         col.prop(bone, "layers", text="")
 
         col.separator()
 
         if ob and pchan:
         col.prop(bone, "layers", text="")
 
         col.separator()
 
         if ob and pchan:
-            col.label(text=_("Bone Group:"))
+            col.label(text="Bone Group:")
             col.prop_search(pchan, "bone_group", ob.pose, "bone_groups", text="")
 
         col = split.column()
             col.prop_search(pchan, "bone_group", ob.pose, "bone_groups", text="")
 
         col = split.column()
-        col.label(text=_("Parent:"))
+        col.label(text="Parent:")
         if context.bone:
             col.prop(bone, "parent", text="")
         else:
         if context.bone:
             col.prop(bone, "parent", text="")
         else:
@@ -175,11 +174,11 @@ class BONE_PT_relations(BoneButtonsPanel, Panel):
         sub = col.column()
         sub.active = (bone.parent is not None)
         sub.prop(bone, "use_connect")
         sub = col.column()
         sub.active = (bone.parent is not None)
         sub.prop(bone, "use_connect")
-        sub.prop(bone, "use_inherit_rotation", text=_("Inherit Rotation"))
-        sub.prop(bone, "use_inherit_scale", text=_("Inherit Scale"))
+        sub.prop(bone, "use_inherit_rotation", text="Inherit Rotation")
+        sub.prop(bone, "use_inherit_scale", text="Inherit Scale")
         sub = col.column()
         sub.active = (not bone.parent or not bone.use_connect)
         sub = col.column()
         sub.active = (not bone.parent or not bone.use_connect)
-        sub.prop(bone, "use_local_location", text=_("Local Location"))
+        sub.prop(bone, "use_local_location", text="Local Location")
 
 
 class BONE_PT_display(BoneButtonsPanel, Panel):
 
 
 class BONE_PT_display(BoneButtonsPanel, Panel):
@@ -207,16 +206,16 @@ class BONE_PT_display(BoneButtonsPanel, Panel):
             split = layout.split()
 
             col = split.column()
             split = layout.split()
 
             col = split.column()
-            col.prop(bone, "show_wire", text=_("Wireframe"))
-            col.prop(bone, "hide", text=_("Hide"))
+            col.prop(bone, "show_wire", text="Wireframe")
+            col.prop(bone, "hide", text="Hide")
 
             if pchan:
                 col = split.column()
 
 
             if pchan:
                 col = split.column()
 
-                col.label(text=_("Custom Shape:"))
+                col.label(text="Custom Shape:")
                 col.prop(pchan, "custom_shape", text="")
                 if pchan.custom_shape:
                 col.prop(pchan, "custom_shape", text="")
                 if pchan.custom_shape:
-                    col.prop_search(pchan, "custom_shape_transform", ob.pose, "bones", text=_("At"))
+                    col.prop_search(pchan, "custom_shape_transform", ob.pose, "bones", text="At")
 
 
 class BONE_PT_inverse_kinematics(BoneButtonsPanel, Panel):
 
 
 class BONE_PT_inverse_kinematics(BoneButtonsPanel, Panel):
@@ -242,13 +241,13 @@ class BONE_PT_inverse_kinematics(BoneButtonsPanel, Panel):
         split.prop(pchan, "lock_ik_x", icon='LOCKED' if pchan.lock_ik_x else 'UNLOCKED', text="X")
         split.active = pchan.is_in_ik_chain
         row = split.row()
         split.prop(pchan, "lock_ik_x", icon='LOCKED' if pchan.lock_ik_x else 'UNLOCKED', text="X")
         split.active = pchan.is_in_ik_chain
         row = split.row()
-        row.prop(pchan, "ik_stiffness_x", text=_("Stiffness"), slider=True)
+        row.prop(pchan, "ik_stiffness_x", text="Stiffness", slider=True)
         row.active = pchan.lock_ik_x == False and pchan.is_in_ik_chain
 
         split = layout.split(percentage=0.25)
         sub = split.row()
 
         row.active = pchan.lock_ik_x == False and pchan.is_in_ik_chain
 
         split = layout.split(percentage=0.25)
         sub = split.row()
 
-        sub.prop(pchan, "use_ik_limit_x", text=_("Limit"))
+        sub.prop(pchan, "use_ik_limit_x", text="Limit")
         sub.active = pchan.lock_ik_x == False and pchan.is_in_ik_chain
         sub = split.row(align=True)
         sub.prop(pchan, "ik_min_x", text="")
         sub.active = pchan.lock_ik_x == False and pchan.is_in_ik_chain
         sub = split.row(align=True)
         sub.prop(pchan, "ik_min_x", text="")
@@ -259,13 +258,13 @@ class BONE_PT_inverse_kinematics(BoneButtonsPanel, Panel):
         split.prop(pchan, "lock_ik_y", icon='LOCKED' if pchan.lock_ik_y else 'UNLOCKED', text="Y")
         split.active = pchan.is_in_ik_chain
         row = split.row()
         split.prop(pchan, "lock_ik_y", icon='LOCKED' if pchan.lock_ik_y else 'UNLOCKED', text="Y")
         split.active = pchan.is_in_ik_chain
         row = split.row()
-        row.prop(pchan, "ik_stiffness_y", text=_("Stiffness"), slider=True)
+        row.prop(pchan, "ik_stiffness_y", text="Stiffness", slider=True)
         row.active = pchan.lock_ik_y == False and pchan.is_in_ik_chain
 
         split = layout.split(percentage=0.25)
         sub = split.row()
 
         row.active = pchan.lock_ik_y == False and pchan.is_in_ik_chain
 
         split = layout.split(percentage=0.25)
         sub = split.row()
 
-        sub.prop(pchan, "use_ik_limit_y", text=_("Limit"))
+        sub.prop(pchan, "use_ik_limit_y", text="Limit")
         sub.active = pchan.lock_ik_y == False and pchan.is_in_ik_chain
 
         sub = split.row(align=True)
         sub.active = pchan.lock_ik_y == False and pchan.is_in_ik_chain
 
         sub = split.row(align=True)
@@ -277,13 +276,13 @@ class BONE_PT_inverse_kinematics(BoneButtonsPanel, Panel):
         split.prop(pchan, "lock_ik_z", icon='LOCKED' if pchan.lock_ik_z else 'UNLOCKED', text="Z")
         split.active = pchan.is_in_ik_chain
         sub = split.row()
         split.prop(pchan, "lock_ik_z", icon='LOCKED' if pchan.lock_ik_z else 'UNLOCKED', text="Z")
         split.active = pchan.is_in_ik_chain
         sub = split.row()
-        sub.prop(pchan, "ik_stiffness_z", text=_("Stiffness"), slider=True)
+        sub.prop(pchan, "ik_stiffness_z", text="Stiffness", slider=True)
         sub.active = pchan.lock_ik_z == False and pchan.is_in_ik_chain
 
         split = layout.split(percentage=0.25)
         sub = split.row()
 
         sub.active = pchan.lock_ik_z == False and pchan.is_in_ik_chain
 
         split = layout.split(percentage=0.25)
         sub = split.row()
 
-        sub.prop(pchan, "use_ik_limit_z", text=_("Limit"))
+        sub.prop(pchan, "use_ik_limit_z", text="Limit")
         sub.active = pchan.lock_ik_z == False and pchan.is_in_ik_chain
         sub = split.row(align=True)
         sub.prop(pchan, "ik_min_z", text="")
         sub.active = pchan.lock_ik_z == False and pchan.is_in_ik_chain
         sub = split.row(align=True)
         sub.prop(pchan, "ik_min_z", text="")
@@ -291,7 +290,7 @@ class BONE_PT_inverse_kinematics(BoneButtonsPanel, Panel):
         sub.active = pchan.lock_ik_z == False and pchan.use_ik_limit_z and pchan.is_in_ik_chain
 
         split = layout.split(percentage=0.25)
         sub.active = pchan.lock_ik_z == False and pchan.use_ik_limit_z and pchan.is_in_ik_chain
 
         split = layout.split(percentage=0.25)
-        split.label(text=_("Stretch:"))
+        split.label(text="Stretch:")
         sub = split.row()
         sub.prop(pchan, "ik_stretch", text="", slider=True)
         sub.active = pchan.is_in_ik_chain
         sub = split.row()
         sub.prop(pchan, "ik_stretch", text="", slider=True)
         sub.active = pchan.is_in_ik_chain
@@ -299,15 +298,15 @@ class BONE_PT_inverse_kinematics(BoneButtonsPanel, Panel):
         if ob.pose.ik_solver == 'ITASC':
             split = layout.split()
             col = split.column()
         if ob.pose.ik_solver == 'ITASC':
             split = layout.split()
             col = split.column()
-            col.prop(pchan, "use_ik_rotation_control", text=_("Control Rotation"))
+            col.prop(pchan, "use_ik_rotation_control", text="Control Rotation")
             col.active = pchan.is_in_ik_chain
             col = split.column()
             col.active = pchan.is_in_ik_chain
             col = split.column()
-            col.prop(pchan, "ik_rotation_weight", text=_("Weight"), slider=True)
+            col.prop(pchan, "ik_rotation_weight", text="Weight", slider=True)
             col.active = pchan.is_in_ik_chain
             # not supported yet
             #row = layout.row()
             col.active = pchan.is_in_ik_chain
             # not supported yet
             #row = layout.row()
-            #row.prop(pchan, "use_ik_linear_control", text=_("Joint Size"))
-            #row.prop(pchan, "ik_linear_weight", text=_("Weight"), slider=True)
+            #row.prop(pchan, "use_ik_linear_control", text="Joint Size")
+            #row.prop(pchan, "ik_linear_weight", text="Weight", slider=True)
 
 
 class BONE_PT_deform(BoneButtonsPanel, Panel):
 
 
 class BONE_PT_deform(BoneButtonsPanel, Panel):
@@ -335,27 +334,27 @@ class BONE_PT_deform(BoneButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Envelope:"))
+        col.label(text="Envelope:")
 
         sub = col.column(align=True)
 
         sub = col.column(align=True)
-        sub.prop(bone, "envelope_distance", text=_("Distance"))
-        sub.prop(bone, "envelope_weight", text=_("Weight"))
-        col.prop(bone, "use_envelope_multiply", text=_("Multiply"))
+        sub.prop(bone, "envelope_distance", text="Distance")
+        sub.prop(bone, "envelope_weight", text="Weight")
+        col.prop(bone, "use_envelope_multiply", text="Multiply")
 
         sub = col.column(align=True)
 
         sub = col.column(align=True)
-        sub.label(text=_("Radius:"))
-        sub.prop(bone, "head_radius", text=_("Head"))
-        sub.prop(bone, "tail_radius", text=_("Tail"))
+        sub.label(text="Radius:")
+        sub.prop(bone, "head_radius", text="Head")
+        sub.prop(bone, "tail_radius", text="Tail")
 
         col = split.column()
 
         col = split.column()
-        col.label(text=_("Curved Bones:"))
+        col.label(text="Curved Bones:")
 
         sub = col.column(align=True)
 
         sub = col.column(align=True)
-        sub.prop(bone, "bbone_segments", text=_("Segments"))
-        sub.prop(bone, "bbone_in", text=_("Ease In"))
-        sub.prop(bone, "bbone_out", text=_("Ease Out"))
+        sub.prop(bone, "bbone_segments", text="Segments")
+        sub.prop(bone, "bbone_in", text="Ease In")
+        sub.prop(bone, "bbone_out", text="Ease Out")
 
 
-        col.label(text=_("Offset:"))
+        col.label(text="Offset:")
         col.prop(bone, "use_cyclic_offset")
 
 
         col.prop(bone, "use_cyclic_offset")
 
 
index 6d6f4c27ddff091a9b7d2d777484b6320d74ba6c..5255af40951d6604fba37cf071695f224eec16b0 100644 (file)
@@ -20,7 +20,6 @@
 import bpy
 from bpy.types import Panel
 from rna_prop_ui import PropertyPanel
 import bpy
 from bpy.types import Panel
 from rna_prop_ui import PropertyPanel
-from blf import gettext as _
 
 
 class CameraButtonsPanel():
 
 
 class CameraButtonsPanel():
@@ -92,16 +91,16 @@ class DATA_PT_camera(CameraButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column(align=True)
         split = layout.split()
 
         col = split.column(align=True)
-        col.label(text=_("Shift:"))
+        col.label(text="Shift:")
         col.prop(cam, "shift_x", text="X")
         col.prop(cam, "shift_y", text="Y")
 
         col = split.column(align=True)
         col.prop(cam, "shift_x", text="X")
         col.prop(cam, "shift_y", text="Y")
 
         col = split.column(align=True)
-        col.label(text=_("Clipping:"))
-        col.prop(cam, "clip_start", text=_("Start"))
-        col.prop(cam, "clip_end", text=_("End"))
+        col.label(text="Clipping:")
+        col.prop(cam, "clip_start", text="Start")
+        col.prop(cam, "clip_end", text="End")
 
 
-        layout.label(text=_("Depth of Field:"))
+        layout.label(text="Depth of Field:")
 
         split = layout.split()
         split.prop(cam, "dof_object", text="")
 
         split = layout.split()
         split.prop(cam, "dof_object", text="")
@@ -110,7 +109,7 @@ class DATA_PT_camera(CameraButtonsPanel, Panel):
 
         if cam.dof_object is not None:
             col.enabled = False
 
         if cam.dof_object is not None:
             col.enabled = False
-        col.prop(cam, "dof_distance", text=_("Distance"))
+        col.prop(cam, "dof_distance", text="Distance")
 
 
 class DATA_PT_camera_display(CameraButtonsPanel, Panel):
 
 
 class DATA_PT_camera_display(CameraButtonsPanel, Panel):
@@ -125,19 +124,19 @@ class DATA_PT_camera_display(CameraButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.prop(cam, "show_limits", text=_("Limits"))
-        col.prop(cam, "show_mist", text=_("Mist"))
-        col.prop(cam, "show_title_safe", text=_("Title Safe"))
-        col.prop(cam, "show_name", text=_("Name"))
+        col.prop(cam, "show_limits", text="Limits")
+        col.prop(cam, "show_mist", text="Mist")
+        col.prop(cam, "show_title_safe", text="Title Safe")
+        col.prop(cam, "show_name", text="Name")
         col.prop_menu_enum(cam, "show_guide")
 
         col = split.column()
         col.prop_menu_enum(cam, "show_guide")
 
         col = split.column()
-        col.prop(cam, "draw_size", text=_("Size"))
+        col.prop(cam, "draw_size", text="Size")
         col.separator()
         col.separator()
-        col.prop(cam, "show_passepartout", text=_("Passepartout"))
+        col.prop(cam, "show_passepartout", text="Passepartout")
         sub = col.column()
         sub.active = cam.show_passepartout
         sub = col.column()
         sub.active = cam.show_passepartout
-        sub.prop(cam, "passepartout_alpha", text=_("Alpha"), slider=True)
+        sub.prop(cam, "passepartout_alpha", text="Alpha", slider=True)
 
 
 class DATA_PT_custom_props_camera(CameraButtonsPanel, PropertyPanel, Panel):
 
 
 class DATA_PT_custom_props_camera(CameraButtonsPanel, PropertyPanel, Panel):
index 47051194fc0e1bfdb878e9c943f89a93395f53da..2e0b36a7a7560bd6cc854675dfb022617c2b238f 100644 (file)
@@ -20,7 +20,6 @@
 import bpy
 from bpy.types import Panel
 from rna_prop_ui import PropertyPanel
 import bpy
 from bpy.types import Panel
 from rna_prop_ui import PropertyPanel
-from blf import gettext as _
 
 
 class CurveButtonsPanel():
 
 
 class CurveButtonsPanel():
@@ -68,7 +67,7 @@ class DATA_PT_context_curve(CurveButtonsPanel, Panel):
 
 
 class DATA_PT_shape_curve(CurveButtonsPanel, Panel):
 
 
 class DATA_PT_shape_curve(CurveButtonsPanel, Panel):
-    bl_label = _("Shape")
+    bl_label = "Shape"
 
     def draw(self, context):
         layout = self.layout
 
     def draw(self, context):
         layout = self.layout
@@ -86,17 +85,17 @@ class DATA_PT_shape_curve(CurveButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Resolution:"))
+        col.label(text="Resolution:")
         sub = col.column(align=True)
         sub = col.column(align=True)
-        sub.prop(curve, "resolution_u", text=_("Preview U"))
-        sub.prop(curve, "render_resolution_u", text=_("Render U"))
+        sub.prop(curve, "resolution_u", text="Preview U")
+        sub.prop(curve, "render_resolution_u", text="Render U")
         if is_curve:
         if is_curve:
-            col.label(text=_("Twisting:"))
+            col.label(text="Twisting:")
             col.prop(curve, "twist_mode", text="")
             col.prop(curve, "twist_mode", text="")
-            col.prop(curve, "twist_smooth", text=_("Smooth"))
+            col.prop(curve, "twist_smooth", text="Smooth")
         if is_text:
         if is_text:
-            col.label(text=_("Display:"))
-            col.prop(curve, "use_fast_edit", text=_("Fast Editing"))
+            col.label(text="Display:")
+            col.prop(curve, "use_fast_edit", text="Fast Editing")
 
         col = split.column()
 
 
         col = split.column()
 
@@ -104,15 +103,15 @@ class DATA_PT_shape_curve(CurveButtonsPanel, Panel):
             sub = col.column()
             sub.label(text="")
             sub = col.column(align=True)
             sub = col.column()
             sub.label(text="")
             sub = col.column(align=True)
-            sub.prop(curve, "resolution_v", text=_("Preview V"))
-            sub.prop(curve, "render_resolution_v", text=_("Render V"))
+            sub.prop(curve, "resolution_v", text="Preview V")
+            sub.prop(curve, "render_resolution_v", text="Render V")
 
         if (is_curve or is_text):
 
         if (is_curve or is_text):
-            col.label(text=_("Fill:"))
+            col.label(text="Fill:")
             sub = col.column()
             sub.active = (curve.dimensions == '2D' or (curve.bevel_object is None and curve.dimensions == '3D'))
             sub.prop(curve, "fill_mode", text="")
             sub = col.column()
             sub.active = (curve.dimensions == '2D' or (curve.bevel_object is None and curve.dimensions == '3D'))
             sub.prop(curve, "fill_mode", text="")
-            col.prop(curve, "use_fill_deform", text=_("Fill Deformed"))
+            col.prop(curve, "use_fill_deform", text="Fill Deformed")
 
 
 class DATA_PT_curve_texture_space(CurveButtonsPanel, Panel):
 
 
 class DATA_PT_curve_texture_space(CurveButtonsPanel, Panel):
@@ -130,8 +129,8 @@ class DATA_PT_curve_texture_space(CurveButtonsPanel, Panel):
         row.prop(curve, "use_uv_as_generated")
 
         row = layout.row()
         row.prop(curve, "use_uv_as_generated")
 
         row = layout.row()
-        row.column().prop(curve, "texspace_location", text=_("Location"))
-        row.column().prop(curve, "texspace_size", text=_("Size"))
+        row.column().prop(curve, "texspace_location", text="Location")
+        row.column().prop(curve, "texspace_size", text="Size")
 
 
 class DATA_PT_geometry_curve(CurveButtonsPanel, Panel):
 
 
 class DATA_PT_geometry_curve(CurveButtonsPanel, Panel):
@@ -153,17 +152,17 @@ class DATA_PT_geometry_curve(CurveButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Modification:"))
+        col.label(text="Modification:")
         col.prop(curve, "offset")
         col.prop(curve, "extrude")
         col.prop(curve, "offset")
         col.prop(curve, "extrude")
-        col.label(text=_("Taper Object:"))
+        col.label(text="Taper Object:")
         col.prop(curve, "taper_object", text="")
 
         col = split.column()
         col.prop(curve, "taper_object", text="")
 
         col = split.column()
-        col.label(text=_("Bevel:"))
-        col.prop(curve, "bevel_depth", text=_("Depth"))
-        col.prop(curve, "bevel_resolution", text=_("Resolution"))
-        col.label(text=_("Bevel Object:"))
+        col.label(text="Bevel:")
+        col.prop(curve, "bevel_depth", text="Depth")
+        col.prop(curve, "bevel_resolution", text="Resolution")
+        col.label(text="Bevel Object:")
         col.prop(curve, "bevel_object", text="")
 
 
         col.prop(curve, "bevel_object", text="")
 
 
@@ -183,7 +182,7 @@ class DATA_PT_pathanim(CurveButtonsPanelCurve, Panel):
         layout.active = curve.use_path
 
         col = layout.column()
         layout.active = curve.use_path
 
         col = layout.column()
-        layout.prop(curve, "path_duration", text=_("Frames"))
+        layout.prop(curve, "path_duration", text="Frames")
         layout.prop(curve, "eval_time")
 
         split = layout.split()
         layout.prop(curve, "eval_time")
 
         split = layout.split()
@@ -195,7 +194,7 @@ class DATA_PT_pathanim(CurveButtonsPanelCurve, Panel):
 
         col = split.column()
         col.prop(curve, "use_radius")
 
         col = split.column()
         col.prop(curve, "use_radius")
-        col.prop(curve, "use_time_offset", text=_("Offset Children"))
+        col.prop(curve, "use_time_offset", text="Offset Children")
 
 
 class DATA_PT_active_spline(CurveButtonsPanelActive, Panel):
 
 
 class DATA_PT_active_spline(CurveButtonsPanelActive, Panel):
@@ -216,20 +215,20 @@ class DATA_PT_active_spline(CurveButtonsPanelActive, Panel):
             # These settings are below but its easier to have
             # poly's set aside since they use so few settings
             col = split.column()
             # These settings are below but its easier to have
             # poly's set aside since they use so few settings
             col = split.column()
-            col.label(text=_("Cyclic:"))
+            col.label(text="Cyclic:")
             col.prop(act_spline, "use_smooth")
             col = split.column()
             col.prop(act_spline, "use_cyclic_u", text="U")
 
         else:
             col = split.column()
             col.prop(act_spline, "use_smooth")
             col = split.column()
             col.prop(act_spline, "use_cyclic_u", text="U")
 
         else:
             col = split.column()
-            col.label(text=_("Cyclic:"))
+            col.label(text="Cyclic:")
             if act_spline.type == 'NURBS':
             if act_spline.type == 'NURBS':
-                col.label(text=_("Bezier:"))
-                col.label(text=_("Endpoint:"))
-                col.label(text=_("Order:"))
+                col.label(text="Bezier:")
+                col.label(text="Endpoint:")
+                col.label(text="Order:")
 
 
-            col.label(text=_("Resolution:"))
+            col.label(text="Resolution:")
 
             col = split.column()
             col.prop(act_spline, "use_cyclic_u", text="U")
 
             col = split.column()
             col.prop(act_spline, "use_cyclic_u", text="U")
@@ -262,9 +261,9 @@ class DATA_PT_active_spline(CurveButtonsPanelActive, Panel):
                 col = split.column()
                 col.active = (curve.dimensions == '3D')
 
                 col = split.column()
                 col.active = (curve.dimensions == '3D')
 
-                col.label(text=_("Interpolation:"))
-                col.prop(act_spline, "tilt_interpolation", text=_("Tilt"))
-                col.prop(act_spline, "radius_interpolation", text=_("Radius"))
+                col.label(text="Interpolation:")
+                col.prop(act_spline, "tilt_interpolation", text="Tilt")
+                col.prop(act_spline, "radius_interpolation", text="Radius")
 
             layout.prop(act_spline, "use_smooth")
 
 
             layout.prop(act_spline, "use_smooth")
 
@@ -283,16 +282,16 @@ class DATA_PT_font(CurveButtonsPanel, Panel):
         char = context.curve.edit_format
 
         row = layout.split(percentage=0.25)
         char = context.curve.edit_format
 
         row = layout.split(percentage=0.25)
-        row.label(text=_("Regular"))
+        row.label(text="Regular")
         row.template_ID(text, "font", open="font.open", unlink="font.unlink")
         row = layout.split(percentage=0.25)
         row.template_ID(text, "font", open="font.open", unlink="font.unlink")
         row = layout.split(percentage=0.25)
-        row.label(text=_("Bold"))
+        row.label(text="Bold")
         row.template_ID(text, "font_bold", open="font.open", unlink="font.unlink")
         row = layout.split(percentage=0.25)
         row.template_ID(text, "font_bold", open="font.open", unlink="font.unlink")
         row = layout.split(percentage=0.25)
-        row.label(text=_("Italic"))
+        row.label(text="Italic")
         row.template_ID(text, "font_italic", open="font.open", unlink="font.unlink")
         row = layout.split(percentage=0.25)
         row.template_ID(text, "font_italic", open="font.open", unlink="font.unlink")
         row = layout.split(percentage=0.25)
-        row.label(text=_("Bold & Italic"))
+        row.label(text="Bold & Italic")
         row.template_ID(text, "font_bold_italic", open="font.open", unlink="font.unlink")
 
         #layout.prop(text, "font")
         row.template_ID(text, "font_bold_italic", open="font.open", unlink="font.unlink")
 
         #layout.prop(text, "font")
@@ -300,36 +299,36 @@ class DATA_PT_font(CurveButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.prop(text, "size", text=_("Size"))
+        col.prop(text, "size", text="Size")
         col = split.column()
         col.prop(text, "shear")
 
         split = layout.split()
 
         col = split.column()
         col = split.column()
         col.prop(text, "shear")
 
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Object Font:"))
+        col.label(text="Object Font:")
         col.prop(text, "family", text="")
 
         col = split.column()
         col.prop(text, "family", text="")
 
         col = split.column()
-        col.label(text=_("Text on Curve:"))
+        col.label(text="Text on Curve:")
         col.prop(text, "follow_curve", text="")
 
         split = layout.split()
 
         col = split.column()
         colsub = col.column(align=True)
         col.prop(text, "follow_curve", text="")
 
         split = layout.split()
 
         col = split.column()
         colsub = col.column(align=True)
-        colsub.label(text=_("Underline:"))
-        colsub.prop(text, "underline_position", text=_("Position"))
-        colsub.prop(text, "underline_height", text=_("Thickness"))
+        colsub.label(text="Underline:")
+        colsub.prop(text, "underline_position", text="Position")
+        colsub.prop(text, "underline_height", text="Thickness")
 
         col = split.column()
 
         col = split.column()
-        col.label(text=_("Character:"))
+        col.label(text="Character:")
         col.prop(char, "use_bold")
         col.prop(char, "use_italic")
         col.prop(char, "use_underline")
 
         row = layout.row()
         col.prop(char, "use_bold")
         col.prop(char, "use_italic")
         col.prop(char, "use_underline")
 
         row = layout.row()
-        row.prop(text, "small_caps_scale", text=_("Small Caps"))
+        row.prop(text, "small_caps_scale", text="Small Caps")
         row.prop(char, "use_small_caps")
 
 
         row.prop(char, "use_small_caps")
 
 
@@ -345,19 +344,19 @@ class DATA_PT_paragraph(CurveButtonsPanel, Panel):
 
         text = context.curve
 
 
         text = context.curve
 
-        layout.label(text=_("Align:"))
+        layout.label(text="Align:")
         layout.prop(text, "align", expand=True)
 
         split = layout.split()
 
         col = split.column(align=True)
         layout.prop(text, "align", expand=True)
 
         split = layout.split()
 
         col = split.column(align=True)
-        col.label(text=_("Spacing:"))
-        col.prop(text, "space_character", text=_("Character"))
-        col.prop(text, "space_word", text=_("Word"))
-        col.prop(text, "space_line", text=_("Line"))
+        col.label(text="Spacing:")
+        col.prop(text, "space_character", text="Character")
+        col.prop(text, "space_word", text="Word")
+        col.prop(text, "space_line", text="Line")
 
         col = split.column(align=True)
 
         col = split.column(align=True)
-        col.label(text=_("Offset:"))
+        col.label(text="Offset:")
         col.prop(text, "offset_x", text="X")
         col.prop(text, "offset_y", text="Y")
 
         col.prop(text, "offset_x", text="X")
         col.prop(text, "offset_y", text="Y")
 
@@ -389,13 +388,13 @@ class DATA_PT_text_boxes(CurveButtonsPanel, Panel):
 
             col = split.column(align=True)
 
 
             col = split.column(align=True)
 
-            col.label(text=_("Dimensions:"))
-            col.prop(box, "width", text=_("Width"))
-            col.prop(box, "height", text=_("Height"))
+            col.label(text="Dimensions:")
+            col.prop(box, "width", text="Width")
+            col.prop(box, "height", text="Height")
 
             col = split.column(align=True)
 
 
             col = split.column(align=True)
 
-            col.label(text=_("Offset:"))
+            col.label(text="Offset:")
             col.prop(box, "x", text="X")
             col.prop(box, "y", text="Y")
 
             col.prop(box, "x", text="X")
             col.prop(box, "y", text="Y")
 
index fac6d8fcfb1967626303db2657732efed2fd0f0d..c781873e16c22c70b5afa1e739165303ccc87eb6 100644 (file)
@@ -19,7 +19,6 @@
 # <pep8 compliant>
 import bpy
 from bpy.types import Panel
 # <pep8 compliant>
 import bpy
 from bpy.types import Panel
-from blf import gettext as _
 
 
 class DataButtonsPanel():
 
 
 class DataButtonsPanel():
@@ -40,17 +39,17 @@ class DATA_PT_empty(DataButtonsPanel, Panel):
 
         ob = context.object
 
 
         ob = context.object
 
-        layout.prop(ob, "empty_draw_type", text=_("Display"))
+        layout.prop(ob, "empty_draw_type", text="Display")
 
         if ob.empty_draw_type == 'IMAGE':
             layout.template_ID(ob, "data", open="image.open", unlink="image.unlink")
 
 
         if ob.empty_draw_type == 'IMAGE':
             layout.template_ID(ob, "data", open="image.open", unlink="image.unlink")
 
-            layout.prop(ob, "color", text=_("Transparency"), index=3, slider=True)
+            layout.prop(ob, "color", text="Transparency", index=3, slider=True)
             row = layout.row(align=True)
             row = layout.row(align=True)
-            row.prop(ob, "empty_image_offset", text=_("Offset X"), index=0)
-            row.prop(ob, "empty_image_offset", text=_("Offset Y"), index=1)
+            row.prop(ob, "empty_image_offset", text="Offset X", index=0)
+            row.prop(ob, "empty_image_offset", text="Offset Y", index=1)
 
 
-        layout.prop(ob, "empty_draw_size", text=_("Size"))
+        layout.prop(ob, "empty_draw_size", text="Size")
 
 if __name__ == "__main__":  # only for live edit.
     bpy.utils.register_module(__name__)
 
 if __name__ == "__main__":  # only for live edit.
     bpy.utils.register_module(__name__)
index f488669b424d43a32b91cad6e3b4ea783fdf5aac..4ff180f74fbe76f2acfd969264daa53bcf62b6d9 100644 (file)
 import bpy
 from bpy.types import Menu, Panel
 from rna_prop_ui import PropertyPanel
 import bpy
 from bpy.types import Menu, Panel
 from rna_prop_ui import PropertyPanel
-from blf import gettext as _
 
 
 class LAMP_MT_sunsky_presets(Menu):
 
 
 class LAMP_MT_sunsky_presets(Menu):
-    bl_label = _("Sun & Sky Presets")
+    bl_label = "Sun & Sky Presets"
     preset_subdir = "sunsky"
     preset_operator = "script.execute_preset"
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
     preset_subdir = "sunsky"
     preset_operator = "script.execute_preset"
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
@@ -94,15 +93,15 @@ class DATA_PT_lamp(DataButtonsPanel, Panel):
         sub.prop(lamp, "energy")
 
         if lamp.type in {'POINT', 'SPOT'}:
         sub.prop(lamp, "energy")
 
         if lamp.type in {'POINT', 'SPOT'}:
-            sub.label(text=_("Falloff:"))
+            sub.label(text="Falloff:")
             sub.prop(lamp, "falloff_type", text="")
             sub.prop(lamp, "distance")
 
             if lamp.falloff_type == 'LINEAR_QUADRATIC_WEIGHTED':
             sub.prop(lamp, "falloff_type", text="")
             sub.prop(lamp, "distance")
 
             if lamp.falloff_type == 'LINEAR_QUADRATIC_WEIGHTED':
-                col.label(text=_("Attenuation Factors:"))
+                col.label(text="Attenuation Factors:")
                 sub = col.column(align=True)
                 sub = col.column(align=True)
-                sub.prop(lamp, "linear_attenuation", slider=True, text=_("Linear"))
-                sub.prop(lamp, "quadratic_attenuation", slider=True, text=_("Quadratic"))
+                sub.prop(lamp, "linear_attenuation", slider=True, text="Linear")
+                sub.prop(lamp, "quadratic_attenuation", slider=True, text="Quadratic")
 
             col.prop(lamp, "use_sphere")
 
 
             col.prop(lamp, "use_sphere")
 
@@ -112,7 +111,7 @@ class DATA_PT_lamp(DataButtonsPanel, Panel):
 
         col = split.column()
         col.prop(lamp, "use_negative")
 
         col = split.column()
         col.prop(lamp, "use_negative")
-        col.prop(lamp, "use_own_layer", text=_("This Layer Only"))
+        col.prop(lamp, "use_own_layer", text="This Layer Only")
         col.prop(lamp, "use_specular")
         col.prop(lamp, "use_diffuse")
 
         col.prop(lamp, "use_specular")
         col.prop(lamp, "use_diffuse")
 
@@ -140,34 +139,34 @@ class DATA_PT_sunsky(DataButtonsPanel, Panel):
 
         row = layout.row()
         row.active = lamp.use_sky or lamp.use_atmosphere
 
         row = layout.row()
         row.active = lamp.use_sky or lamp.use_atmosphere
-        row.prop(lamp, "atmosphere_turbidity", text=_("Turbidity"))
+        row.prop(lamp, "atmosphere_turbidity", text="Turbidity")
 
         split = layout.split()
 
         col = split.column()
         col.active = lamp.use_sky
 
         split = layout.split()
 
         col = split.column()
         col.active = lamp.use_sky
-        col.label(text=_("Blending:"))
+        col.label(text="Blending:")
         sub = col.column()
         sub.prop(lamp, "sky_blend_type", text="")
         sub = col.column()
         sub.prop(lamp, "sky_blend_type", text="")
-        sub.prop(lamp, "sky_blend", text=_("Factor"))
+        sub.prop(lamp, "sky_blend", text="Factor")
 
 
-        col.label(text=_("Color Space:"))
+        col.label(text="Color Space:")
         sub = col.column()
         sub.row().prop(lamp, "sky_color_space", expand=True)
         sub = col.column()
         sub.row().prop(lamp, "sky_color_space", expand=True)
-        sub.prop(lamp, "sky_exposure", text=_("Exposure"))
+        sub.prop(lamp, "sky_exposure", text="Exposure")
 
         col = split.column()
         col.active = lamp.use_sky
 
         col = split.column()
         col.active = lamp.use_sky
-        col.label(text=_("Horizon:"))
+        col.label(text="Horizon:")
         sub = col.column()
         sub = col.column()
-        sub.prop(lamp, "horizon_brightness", text=_("Brightness"))
-        sub.prop(lamp, "spread", text=_("Spread"))
+        sub.prop(lamp, "horizon_brightness", text="Brightness")
+        sub.prop(lamp, "spread", text="Spread")
 
 
-        col.label(text=_("Sun:"))
+        col.label(text="Sun:")
         sub = col.column()
         sub = col.column()
-        sub.prop(lamp, "sun_brightness", text=_("Brightness"))
-        sub.prop(lamp, "sun_size", text=_("Size"))
-        sub.prop(lamp, "backscattered_light", slider=True, text=_("Back Light"))
+        sub.prop(lamp, "sun_brightness", text="Brightness")
+        sub.prop(lamp, "sun_size", text="Size")
+        sub.prop(lamp, "backscattered_light", slider=True, text="Back Light")
 
         layout.separator()
 
 
         layout.separator()
 
@@ -177,16 +176,16 @@ class DATA_PT_sunsky(DataButtonsPanel, Panel):
 
         col = split.column()
         col.active = lamp.use_atmosphere
 
         col = split.column()
         col.active = lamp.use_atmosphere
-        col.label(text=_("Intensity:"))
-        col.prop(lamp, "sun_intensity", text=_("Sun"))
-        col.prop(lamp, "atmosphere_distance_factor", text=_("Distance"))
+        col.label(text="Intensity:")
+        col.prop(lamp, "sun_intensity", text="Sun")
+        col.prop(lamp, "atmosphere_distance_factor", text="Distance")
 
         col = split.column()
         col.active = lamp.use_atmosphere
 
         col = split.column()
         col.active = lamp.use_atmosphere
-        col.label(text=_("Scattering:"))
+        col.label(text="Scattering:")
         sub = col.column(align=True)
         sub = col.column(align=True)
-        sub.prop(lamp, "atmosphere_inscattering", slider=True, text=_("Inscattering"))
-        sub.prop(lamp, "atmosphere_extinction", slider=True, text=_("Extinction"))
+        sub.prop(lamp, "atmosphere_inscattering", slider=True, text="Inscattering")
+        sub.prop(lamp, "atmosphere_extinction", slider=True, text="Extinction")
 
 
 class DATA_PT_shadow(DataButtonsPanel, Panel):
 
 
 class DATA_PT_shadow(DataButtonsPanel, Panel):
@@ -210,15 +209,15 @@ class DATA_PT_shadow(DataButtonsPanel, Panel):
             split = layout.split()
 
             col = split.column()
             split = layout.split()
 
             col = split.column()
-            col.label(text=_("Form factor sampling:"))
+            col.label(text="Form factor sampling:")
 
             sub = col.row(align=True)
 
             if lamp.shape == 'SQUARE':
 
             sub = col.row(align=True)
 
             if lamp.shape == 'SQUARE':
-                sub.prop(lamp, "shadow_ray_samples_x", text=_("Samples"))
+                sub.prop(lamp, "shadow_ray_samples_x", text="Samples")
             elif lamp.shape == 'RECTANGLE':
             elif lamp.shape == 'RECTANGLE':
-                sub.prop(lamp, "shadow_ray_samples_x", text=_("Samples X"))
-                sub.prop(lamp, "shadow_ray_samples_y", text=_("Samples Y"))
+                sub.prop(lamp, "shadow_ray_samples_x", text="Samples X")
+                sub.prop(lamp, "shadow_ray_samples_y", text="Samples Y")
 
         if lamp.shadow_method != 'NOSHADOW':
             split = layout.split()
 
         if lamp.shadow_method != 'NOSHADOW':
             split = layout.split()
@@ -227,34 +226,34 @@ class DATA_PT_shadow(DataButtonsPanel, Panel):
             col.prop(lamp, "shadow_color", text="")
 
             col = split.column()
             col.prop(lamp, "shadow_color", text="")
 
             col = split.column()
-            col.prop(lamp, "use_shadow_layer", text=_("This Layer Only"))
+            col.prop(lamp, "use_shadow_layer", text="This Layer Only")
             col.prop(lamp, "use_only_shadow")
 
         if lamp.shadow_method == 'RAY_SHADOW':
             split = layout.split()
 
             col = split.column()
             col.prop(lamp, "use_only_shadow")
 
         if lamp.shadow_method == 'RAY_SHADOW':
             split = layout.split()
 
             col = split.column()
-            col.label(text=_("Sampling:"))
+            col.label(text="Sampling:")
 
             if lamp.type in {'POINT', 'SUN', 'SPOT'}:
                 sub = col.row()
 
 
             if lamp.type in {'POINT', 'SUN', 'SPOT'}:
                 sub = col.row()
 
-                sub.prop(lamp, "shadow_ray_samples", text=_("Samples"))
-                sub.prop(lamp, "shadow_soft_size", text=_("Soft Size"))
+                sub.prop(lamp, "shadow_ray_samples", text="Samples")
+                sub.prop(lamp, "shadow_soft_size", text="Soft Size")
 
             elif lamp.type == 'AREA':
                 sub = col.row(align=True)
 
                 if lamp.shape == 'SQUARE':
 
             elif lamp.type == 'AREA':
                 sub = col.row(align=True)
 
                 if lamp.shape == 'SQUARE':
-                    sub.prop(lamp, "shadow_ray_samples_x", text=_("Samples"))
+                    sub.prop(lamp, "shadow_ray_samples_x", text="Samples")
                 elif lamp.shape == 'RECTANGLE':
                 elif lamp.shape == 'RECTANGLE':
-                    sub.prop(lamp, "shadow_ray_samples_x", text=_("Samples X"))
-                    sub.prop(lamp, "shadow_ray_samples_y", text=_("Samples Y"))
+                    sub.prop(lamp, "shadow_ray_samples_x", text="Samples X")
+                    sub.prop(lamp, "shadow_ray_samples_y", text="Samples Y")
 
             col.row().prop(lamp, "shadow_ray_sample_method", expand=True)
 
             if lamp.shadow_ray_sample_method == 'ADAPTIVE_QMC':
 
             col.row().prop(lamp, "shadow_ray_sample_method", expand=True)
 
             if lamp.shadow_ray_sample_method == 'ADAPTIVE_QMC':
-                layout.prop(lamp, "shadow_adaptive_threshold", text=_("Threshold"))
+                layout.prop(lamp, "shadow_adaptive_threshold", text="Threshold")
 
             if lamp.type == 'AREA' and lamp.shadow_ray_sample_method == 'CONSTANT_JITTERED':
                 row = layout.row()
 
             if lamp.type == 'AREA' and lamp.shadow_ray_sample_method == 'CONSTANT_JITTERED':
                 row = layout.row()
@@ -264,44 +263,44 @@ class DATA_PT_shadow(DataButtonsPanel, Panel):
 
         elif lamp.shadow_method == 'BUFFER_SHADOW':
             col = layout.column()
 
         elif lamp.shadow_method == 'BUFFER_SHADOW':
             col = layout.column()
-            col.label(text=_("Buffer Type:"))
+            col.label(text="Buffer Type:")
             col.row().prop(lamp, "shadow_buffer_type", expand=True)
 
             if lamp.shadow_buffer_type in {'REGULAR', 'HALFWAY', 'DEEP'}:
                 split = layout.split()
 
                 col = split.column()
             col.row().prop(lamp, "shadow_buffer_type", expand=True)
 
             if lamp.shadow_buffer_type in {'REGULAR', 'HALFWAY', 'DEEP'}:
                 split = layout.split()
 
                 col = split.column()
-                col.label(text=_("Filter Type:"))
+                col.label(text="Filter Type:")
                 col.prop(lamp, "shadow_filter_type", text="")
                 sub = col.column(align=True)
                 col.prop(lamp, "shadow_filter_type", text="")
                 sub = col.column(align=True)
-                sub.prop(lamp, "shadow_buffer_soft", text=_("Soft"))
-                sub.prop(lamp, "shadow_buffer_bias", text=_("Bias"))
+                sub.prop(lamp, "shadow_buffer_soft", text="Soft")
+                sub.prop(lamp, "shadow_buffer_bias", text="Bias")
 
                 col = split.column()
 
                 col = split.column()
-                col.label(text=_("Sample Buffers:"))
+                col.label(text="Sample Buffers:")
                 col.prop(lamp, "shadow_sample_buffers", text="")
                 sub = col.column(align=True)
                 col.prop(lamp, "shadow_sample_buffers", text="")
                 sub = col.column(align=True)
-                sub.prop(lamp, "shadow_buffer_size", text=_("Size"))
-                sub.prop(lamp, "shadow_buffer_samples", text=_("Samples"))
+                sub.prop(lamp, "shadow_buffer_size", text="Size")
+                sub.prop(lamp, "shadow_buffer_samples", text="Samples")
                 if lamp.shadow_buffer_type == 'DEEP':
                     col.prop(lamp, "compression_threshold")
 
             elif lamp.shadow_buffer_type == 'IRREGULAR':
                 if lamp.shadow_buffer_type == 'DEEP':
                     col.prop(lamp, "compression_threshold")
 
             elif lamp.shadow_buffer_type == 'IRREGULAR':
-                layout.prop(lamp, "shadow_buffer_bias", text=_("Bias"))
+                layout.prop(lamp, "shadow_buffer_bias", text="Bias")
 
             split = layout.split()
 
             col = split.column()
 
             split = layout.split()
 
             col = split.column()
-            col.prop(lamp, "use_auto_clip_start", text=_("Autoclip Start"))
+            col.prop(lamp, "use_auto_clip_start", text="Autoclip Start")
             sub = col.column()
             sub.active = not lamp.use_auto_clip_start
             sub = col.column()
             sub.active = not lamp.use_auto_clip_start
-            sub.prop(lamp, "shadow_buffer_clip_start", text=_("Clip Start"))
+            sub.prop(lamp, "shadow_buffer_clip_start", text="Clip Start")
 
             col = split.column()
 
             col = split.column()
-            col.prop(lamp, "use_auto_clip_end", text=_("Autoclip End"))
+            col.prop(lamp, "use_auto_clip_end", text="Autoclip End")
             sub = col.column()
             sub.active = not lamp.use_auto_clip_end
             sub = col.column()
             sub.active = not lamp.use_auto_clip_end
-            sub.prop(lamp, "shadow_buffer_clip_end", text=_(" Clip End"))
+            sub.prop(lamp, "shadow_buffer_clip_end", text=" Clip End")
 
 
 class DATA_PT_area(DataButtonsPanel, Panel):
 
 
 class DATA_PT_area(DataButtonsPanel, Panel):
@@ -326,8 +325,8 @@ class DATA_PT_area(DataButtonsPanel, Panel):
         if (lamp.shape == 'SQUARE'):
             sub.prop(lamp, "size")
         elif (lamp.shape == 'RECTANGLE'):
         if (lamp.shape == 'SQUARE'):
             sub.prop(lamp, "size")
         elif (lamp.shape == 'RECTANGLE'):
-            sub.prop(lamp, "size", text=_("Size X"))
-            sub.prop(lamp, "size_y", text=_("Size Y"))
+            sub.prop(lamp, "size", text="Size X")
+            sub.prop(lamp, "size_y", text="Size Y")
 
 
 class DATA_PT_spot(DataButtonsPanel, Panel):
 
 
 class DATA_PT_spot(DataButtonsPanel, Panel):
@@ -349,8 +348,8 @@ class DATA_PT_spot(DataButtonsPanel, Panel):
 
         col = split.column()
         sub = col.column()
 
         col = split.column()
         sub = col.column()
-        sub.prop(lamp, "spot_size", text=_("Size"))
-        sub.prop(lamp, "spot_blend", text=_("Blend"), slider=True)
+        sub.prop(lamp, "spot_size", text="Size")
+        sub.prop(lamp, "spot_blend", text="Blend", slider=True)
         col.prop(lamp, "use_square")
         col.prop(lamp, "show_cone")
 
         col.prop(lamp, "use_square")
         col.prop(lamp, "show_cone")
 
@@ -359,9 +358,9 @@ class DATA_PT_spot(DataButtonsPanel, Panel):
         col.prop(lamp, "use_halo")
         sub = col.column(align=True)
         sub.active = lamp.use_halo
         col.prop(lamp, "use_halo")
         sub = col.column(align=True)
         sub.active = lamp.use_halo
-        sub.prop(lamp, "halo_intensity", text=_("Intensity"))
+        sub.prop(lamp, "halo_intensity", text="Intensity")
         if lamp.shadow_method == 'BUFFER_SHADOW':
         if lamp.shadow_method == 'BUFFER_SHADOW':
-            sub.prop(lamp, "halo_step", text=_("Step"))
+            sub.prop(lamp, "halo_step", text="Step")
 
 
 class DATA_PT_falloff_curve(DataButtonsPanel, Panel):
 
 
 class DATA_PT_falloff_curve(DataButtonsPanel, Panel):
index 82185b0b1b059b42346d7ce6a45b06a4870059ef..ff19ece8f94a773a9047c931e0c889e09d0bf2e9 100644 (file)
 import bpy
 from bpy.types import Menu, Panel
 from rna_prop_ui import PropertyPanel
 import bpy
 from bpy.types import Menu, Panel
 from rna_prop_ui import PropertyPanel
-from blf import gettext as _
 
 
 class MESH_MT_vertex_group_specials(Menu):
 
 
 class MESH_MT_vertex_group_specials(Menu):
-    bl_label = _("Vertex Group Specials")
+    bl_label = "Vertex Group Specials"
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
 
     def draw(self, context):
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
 
     def draw(self, context):
@@ -35,7 +34,7 @@ class MESH_MT_vertex_group_specials(Menu):
         layout.operator("object.vertex_group_copy_to_linked", icon='LINK_AREA')
         layout.operator("object.vertex_group_copy_to_selected", icon='LINK_AREA')
         layout.operator("object.vertex_group_mirror", icon='ARROW_LEFTRIGHT')
         layout.operator("object.vertex_group_copy_to_linked", icon='LINK_AREA')
         layout.operator("object.vertex_group_copy_to_selected", icon='LINK_AREA')
         layout.operator("object.vertex_group_mirror", icon='ARROW_LEFTRIGHT')
-        layout.operator("object.vertex_group_remove", icon='X', text=_("Delete All")).all = True
+        layout.operator("object.vertex_group_remove", icon='X', text="Delete All").all = True
         layout.separator()
         layout.operator("object.vertex_group_lock", icon='LOCK', text="Lock All").action = 'SELECT'
         layout.operator("object.vertex_group_lock", icon='UNLOCK', text="UnLock All").action = 'DESELECT'
         layout.separator()
         layout.operator("object.vertex_group_lock", icon='LOCK', text="Lock All").action = 'SELECT'
         layout.operator("object.vertex_group_lock", icon='UNLOCK', text="UnLock All").action = 'DESELECT'
@@ -52,7 +51,7 @@ class MESH_MT_shape_key_specials(Menu):
         layout.operator("object.shape_key_transfer", icon='COPY_ID')  # icon is not ideal
         layout.operator("object.join_shapes", icon='COPY_ID')  # icon is not ideal
         layout.operator("object.shape_key_mirror", icon='ARROW_LEFTRIGHT')
         layout.operator("object.shape_key_transfer", icon='COPY_ID')  # icon is not ideal
         layout.operator("object.join_shapes", icon='COPY_ID')  # icon is not ideal
         layout.operator("object.shape_key_mirror", icon='ARROW_LEFTRIGHT')
-        op = layout.operator("object.shape_key_add", icon='ZOOMIN', text=_("New Shape From Mix"))
+        op = layout.operator("object.shape_key_add", icon='ZOOMIN', text="New Shape From Mix")
         op.from_mix = True
 
 
         op.from_mix = True
 
 
@@ -100,7 +99,7 @@ class DATA_PT_normals(MeshButtonsPanel, Panel):
         col.prop(mesh, "use_auto_smooth")
         sub = col.column()
         sub.active = mesh.use_auto_smooth
         col.prop(mesh, "use_auto_smooth")
         sub = col.column()
         sub.active = mesh.use_auto_smooth
-        sub.prop(mesh, "auto_smooth_angle", text=_("Angle"))
+        sub.prop(mesh, "auto_smooth_angle", text="Angle")
 
         split.prop(mesh, "show_double_sided")
 
 
         split.prop(mesh, "show_double_sided")
 
@@ -121,8 +120,8 @@ class DATA_PT_texture_space(MeshButtonsPanel, Panel):
 
         layout.prop(mesh, "use_auto_texspace")
         row = layout.row()
 
         layout.prop(mesh, "use_auto_texspace")
         row = layout.row()
-        row.column().prop(mesh, "texspace_location", text=_("Location"))
-        row.column().prop(mesh, "texspace_size", text=_("Size"))
+        row.column().prop(mesh, "texspace_location", text="Location")
+        row.column().prop(mesh, "texspace_size", text="Size")
 
 
 class DATA_PT_vertex_groups(MeshButtonsPanel, Panel):
 
 
 class DATA_PT_vertex_groups(MeshButtonsPanel, Panel):
@@ -164,14 +163,14 @@ class DATA_PT_vertex_groups(MeshButtonsPanel, Panel):
             row = layout.row()
 
             sub = row.row(align=True)
             row = layout.row()
 
             sub = row.row(align=True)
-            sub.operator("object.vertex_group_assign", text=_("Assign"))
-            sub.operator("object.vertex_group_remove_from", text=_("Remove"))
+            sub.operator("object.vertex_group_assign", text="Assign")
+            sub.operator("object.vertex_group_remove_from", text="Remove")
 
             sub = row.row(align=True)
 
             sub = row.row(align=True)
-            sub.operator("object.vertex_group_select", text=_("Select"))
-            sub.operator("object.vertex_group_deselect", text=_("Deselect"))
+            sub.operator("object.vertex_group_select", text="Select")
+            sub.operator("object.vertex_group_deselect", text="Deselect")
 
 
-            layout.prop(context.tool_settings, "vertex_group_weight", text=_("Weight"))
+            layout.prop(context.tool_settings, "vertex_group_weight", text="Weight")
 
 
 class DATA_PT_shape_keys(MeshButtonsPanel, Panel):
 
 
 class DATA_PT_shape_keys(MeshButtonsPanel, Panel):
@@ -251,13 +250,13 @@ class DATA_PT_shape_keys(MeshButtonsPanel, Panel):
 
                     col = split.column(align=True)
                     col.active = enable_edit_value
 
                     col = split.column(align=True)
                     col.active = enable_edit_value
-                    col.label(text=_("Range:"))
-                    col.prop(kb, "slider_min", text=_("Min"))
-                    col.prop(kb, "slider_max", text=_("Max"))
+                    col.label(text="Range:")
+                    col.prop(kb, "slider_min", text="Min")
+                    col.prop(kb, "slider_max", text="Max")
 
                     col = split.column(align=True)
                     col.active = enable_edit_value
 
                     col = split.column(align=True)
                     col.active = enable_edit_value
-                    col.label(text=_("Blend:"))
+                    col.label(text="Blend:")
                     col.prop_search(kb, "vertex_group", ob, "vertex_groups", text="")
                     col.prop_search(kb, "relative_key", key, "key_blocks", text="")
 
                     col.prop_search(kb, "vertex_group", ob, "vertex_groups", text="")
                     col.prop_search(kb, "relative_key", key, "key_blocks", text="")
 
index dbb947e416c55585cda122bed4514dd03a21370f..cd894e60dbba9a1135ba9062cd8f3751e75deae2 100644 (file)
@@ -20,7 +20,6 @@
 import bpy
 from bpy.types import Panel
 from rna_prop_ui import PropertyPanel
 import bpy
 from bpy.types import Panel
 from rna_prop_ui import PropertyPanel
-from blf import gettext as _
 
 
 class DataButtonsPanel():
 
 
 class DataButtonsPanel():
@@ -61,16 +60,16 @@ class DATA_PT_metaball(DataButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Resolution:"))
+        col.label(text="Resolution:")
         sub = col.column(align=True)
         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 = 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)
 
 
         layout.prop(mball, "update_method", expand=True)
 
 
@@ -87,8 +86,8 @@ class DATA_PT_mball_texture_space(DataButtonsPanel, Panel):
         layout.prop(mball, "use_auto_texspace")
 
         row = layout.row()
         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, Panel):
 
 
 class DATA_PT_metaball_element(DataButtonsPanel, Panel):
@@ -108,25 +107,25 @@ class DATA_PT_metaball_element(DataButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column(align=True)
         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 = 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.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.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")
 
             col.prop(metaelem, "size_x", text="X")
             col.prop(metaelem, "size_y", text="Y")
 
index 4719ae450f7a5ebb33882badce37d47b05dd7833..98466b41c2e1a42e00c9b823bc320e43eb55f59f 100644 (file)
@@ -19,7 +19,6 @@
 # <pep8 compliant>
 import bpy
 from bpy.types import Panel
 # <pep8 compliant>
 import bpy
 from bpy.types import Panel
-from blf import gettext as _
 
 
 class ModifierButtonsPanel():
 
 
 class ModifierButtonsPanel():
@@ -52,14 +51,14 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Object:"))
+        col.label(text="Object:")
         col.prop(md, "object", text="")
         col.prop(md, "use_deform_preserve_volume")
 
         col = split.column()
         col.prop(md, "object", text="")
         col.prop(md, "use_deform_preserve_volume")
 
         col = split.column()
-        col.label(text=_("Bind To:"))
-        col.prop(md, "use_vertex_groups", text=_("Vertex Groups"))
-        col.prop(md, "use_bone_envelopes", text=_("Bone Envelopes"))
+        col.label(text="Bind To:")
+        col.prop(md, "use_vertex_groups", text="Vertex Groups")
+        col.prop(md, "use_bone_envelopes", text="Bone Envelopes")
 
         layout.separator()
 
 
         layout.separator()
 
@@ -93,11 +92,11 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
 
         col.separator()
 
 
         col.separator()
 
-        col.prop(md, "use_merge_vertices", text=_("Merge"))
+        col.prop(md, "use_merge_vertices", text="Merge")
         sub = col.column()
         sub.active = md.use_merge_vertices
         sub = col.column()
         sub.active = md.use_merge_vertices
-        sub.prop(md, "use_merge_vertices_cap", text=_("First Last"))
-        sub.prop(md, "merge_threshold", text=_("Distance"))
+        sub.prop(md, "use_merge_vertices_cap", text="First Last")
+        sub.prop(md, "merge_threshold", text="Distance")
 
         col = split.column()
         col.prop(md, "use_relative_offset")
 
         col = split.column()
         col.prop(md, "use_relative_offset")
@@ -123,7 +122,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
         split.prop(md, "width")
         split.prop(md, "use_only_vertices")
 
         split.prop(md, "width")
         split.prop(md, "use_only_vertices")
 
-        layout.label(text=_("Limit Method:"))
+        layout.label(text="Limit Method:")
         layout.row().prop(md, "limit_method", expand=True)
         if md.limit_method == 'ANGLE':
             layout.prop(md, "angle_limit")
         layout.row().prop(md, "limit_method", expand=True)
         if md.limit_method == 'ANGLE':
             layout.prop(md, "angle_limit")
@@ -134,11 +133,11 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Operation:"))
+        col.label(text="Operation:")
         col.prop(md, "operation", text="")
 
         col = split.column()
         col.prop(md, "operation", text="")
 
         col = split.column()
-        col.label(text=_("Object:"))
+        col.label(text="Object:")
         col.prop(md, "object", text="")
 
     def BUILD(self, layout, ob, md):
         col.prop(md, "object", text="")
 
     def BUILD(self, layout, ob, md):
@@ -157,7 +156,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
     def CAST(self, layout, ob, md):
         split = layout.split(percentage=0.25)
 
     def CAST(self, layout, ob, md):
         split = layout.split(percentage=0.25)
 
-        split.label(text=_("Cast Type:"))
+        split.label(text="Cast Type:")
         split.prop(md, "cast_type", text="")
 
         split = layout.split(percentage=0.25)
         split.prop(md, "cast_type", text="")
 
         split = layout.split(percentage=0.25)
@@ -176,52 +175,52 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Vertex Group:"))
+        col.label(text="Vertex Group:")
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
         col = split.column()
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
         col = split.column()
-        col.label(text=_("Control Object:"))
+        col.label(text="Control Object:")
         col.prop(md, "object", text="")
         if md.object:
             col.prop(md, "use_transform")
 
     def CLOTH(self, layout, ob, md):
         col.prop(md, "object", text="")
         if md.object:
             col.prop(md, "use_transform")
 
     def CLOTH(self, layout, ob, md):
-        layout.label(text=_("Settings can be found inside the Physics context"))
+        layout.label(text="Settings can be found inside the Physics context")
 
     def COLLISION(self, layout, ob, md):
 
     def COLLISION(self, layout, ob, md):
-        layout.label(text=_("Settings can be found inside the Physics context"))
+        layout.label(text="Settings can be found inside the Physics context")
 
     def CURVE(self, layout, ob, md):
         split = layout.split()
 
         col = split.column()
 
     def CURVE(self, layout, ob, md):
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Object:"))
+        col.label(text="Object:")
         col.prop(md, "object", text="")
         col = split.column()
         col.prop(md, "object", text="")
         col = split.column()
-        col.label(text=_("Vertex Group:"))
+        col.label(text="Vertex Group:")
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
-        layout.label(text=_("Deformation Axis:"))
+        layout.label(text="Deformation Axis:")
         layout.row().prop(md, "deform_axis", expand=True)
 
     def DECIMATE(self, layout, ob, md):
         layout.prop(md, "ratio")
         layout.row().prop(md, "deform_axis", expand=True)
 
     def DECIMATE(self, layout, ob, md):
         layout.prop(md, "ratio")
-        layout.label(text=_("Face Count") + ": %d" % md.face_count)
+        layout.label(text="Face Count" + ": %d" % md.face_count)
 
     def DISPLACE(self, layout, ob, md):
         split = layout.split()
 
         col = split.column()
 
     def DISPLACE(self, layout, ob, md):
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Texture:"))
+        col.label(text="Texture:")
         col.template_ID(md, "texture", new="texture.new")
         col.template_ID(md, "texture", new="texture.new")
-        col.label(text=_("Vertex Group:"))
+        col.label(text="Vertex Group:")
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
         col = split.column()
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
         col = split.column()
-        col.label(text=_("Direction:"))
+        col.label(text="Direction:")
         col.prop(md, "direction", text="")
         col.prop(md, "direction", text="")
-        col.label(text=_("Texture Coordinates:"))
+        col.label(text="Texture Coordinates:")
         col.prop(md, "texture_coords", text="")
         if md.texture_coords == 'OBJECT':
         col.prop(md, "texture_coords", text="")
         if md.texture_coords == 'OBJECT':
-            layout.prop(md, "texture_coords_object", text=_("Object"))
+            layout.prop(md, "texture_coords_object", text="Object")
         elif md.texture_coords == 'UV' and ob.type == 'MESH':
             layout.prop_search(md, "uv_layer", ob.data, "uv_textures")
 
         elif md.texture_coords == 'UV' and ob.type == 'MESH':
             layout.prop_search(md, "uv_layer", ob.data, "uv_textures")
 
@@ -235,23 +234,23 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.prop(md, "use_edge_angle", text=_("Edge Angle"))
+        col.prop(md, "use_edge_angle", text="Edge Angle")
         sub = col.column()
         sub.active = md.use_edge_angle
         sub.prop(md, "split_angle")
 
         sub = col.column()
         sub.active = md.use_edge_angle
         sub.prop(md, "split_angle")
 
-        split.prop(md, "use_edge_sharp", text=_("Sharp Edges"))
+        split.prop(md, "use_edge_sharp", text="Sharp Edges")
 
     def EXPLODE(self, layout, ob, md):
         split = layout.split()
 
         col = split.column()
 
     def EXPLODE(self, layout, ob, md):
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Vertex group:"))
+        col.label(text="Vertex group:")
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
         sub = col.column()
         sub.active = bool(md.vertex_group)
         sub.prop(md, "protect")
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
         sub = col.column()
         sub.active = bool(md.vertex_group)
         sub.prop(md, "protect")
-        col.label(text=_("Particle UV"))
+        col.label(text="Particle UV")
         col.prop_search(md, "particle_uv", ob.data, "uv_textures", text="")
 
         col = split.column()
         col.prop_search(md, "particle_uv", ob.data, "uv_textures", text="")
 
         col = split.column()
@@ -261,22 +260,22 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
         col.prop(md, "show_dead")
         col.prop(md, "use_size")
 
         col.prop(md, "show_dead")
         col.prop(md, "use_size")
 
-        layout.operator("object.explode_refresh", text=_("Refresh"))
+        layout.operator("object.explode_refresh", text="Refresh")
 
     def FLUID_SIMULATION(self, layout, ob, md):
 
     def FLUID_SIMULATION(self, layout, ob, md):
-        layout.label(text=_("Settings can be found inside the Physics context"))
+        layout.label(text="Settings can be found inside the Physics context")
 
     def HOOK(self, layout, ob, md):
         split = layout.split()
 
         col = split.column()
 
     def HOOK(self, layout, ob, md):
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Object:"))
+        col.label(text="Object:")
         col.prop(md, "object", text="")
         if md.object and md.object.type == 'ARMATURE':
         col.prop(md, "object", text="")
         if md.object and md.object.type == 'ARMATURE':
-            col.label(text=_("Bone:"))
+            col.label(text="Bone:")
             col.prop_search(md, "subtarget", md.object.data, "bones", text="")
         col = split.column()
             col.prop_search(md, "subtarget", md.object.data, "bones", text="")
         col = split.column()
-        col.label(text=_("Vertex Group:"))
+        col.label(text="Vertex Group:")
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
         layout.separator()
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
         layout.separator()
@@ -288,38 +287,38 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
         col.prop(md, "force", slider=True)
 
         col = split.column()
         col.prop(md, "force", slider=True)
 
         col = split.column()
-        col.operator("object.hook_reset", text=_("Reset"))
-        col.operator("object.hook_recenter", text=_("Recenter"))
+        col.operator("object.hook_reset", text="Reset")
+        col.operator("object.hook_recenter", text="Recenter")
 
         if ob.mode == 'EDIT':
             layout.separator()
             row = layout.row()
 
         if ob.mode == 'EDIT':
             layout.separator()
             row = layout.row()
-            row.operator("object.hook_select", text=_("Select"))
-            row.operator("object.hook_assign", text=_("Assign"))
+            row.operator("object.hook_select", text="Select")
+            row.operator("object.hook_assign", text="Assign")
 
     def LATTICE(self, layout, ob, md):
         split = layout.split()
 
         col = split.column()
 
     def LATTICE(self, layout, ob, md):
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Object:"))
+        col.label(text="Object:")
         col.prop(md, "object", text="")
 
         col = split.column()
         col.prop(md, "object", text="")
 
         col = split.column()
-        col.label(text=_("Vertex Group:"))
+        col.label(text="Vertex Group:")
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
     def MASK(self, layout, ob, md):
         split = layout.split()
 
         col = split.column()
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
     def MASK(self, layout, ob, md):
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Mode:"))
+        col.label(text="Mode:")
         col.prop(md, "mode", text="")
         col = split.column()
         if md.mode == 'ARMATURE':
         col.prop(md, "mode", text="")
         col = split.column()
         if md.mode == 'ARMATURE':
-            col.label(text=_("Armature:"))
+            col.label(text="Armature:")
             col.prop(md, "armature", text="")
         elif md.mode == 'VERTEX_GROUP':
             col.prop(md, "armature", text="")
         elif md.mode == 'VERTEX_GROUP':
-            col.label(text=_("Vertex Group:"))
+            col.label(text="Vertex Group:")
             col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
         sub = col.column()
             col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
         sub = col.column()
@@ -331,11 +330,11 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
 
         col = split.column()
         sub = col.column()
 
         col = split.column()
         sub = col.column()
-        sub.label(text=_("Object:"))
+        sub.label(text="Object:")
         sub.prop(md, "object", text="")
         sub.active = not md.is_bound
         col = split.column()
         sub.prop(md, "object", text="")
         sub.active = not md.is_bound
         col = split.column()
-        col.label(text=_("Vertex Group:"))
+        col.label(text="Vertex Group:")
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
         sub = col.column()
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
         sub = col.column()
@@ -345,9 +344,9 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
         layout.separator()
 
         if md.is_bound:
         layout.separator()
 
         if md.is_bound:
-            layout.operator("object.meshdeform_bind", text=_("Unbind"))
+            layout.operator("object.meshdeform_bind", text="Unbind")
         else:
         else:
-            layout.operator("object.meshdeform_bind", text=_("Bind"))
+            layout.operator("object.meshdeform_bind", text="Bind")
 
             row = layout.row()
             row.prop(md, "precision")
 
             row = layout.row()
             row.prop(md, "precision")
@@ -357,19 +356,19 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
         split = layout.split(percentage=0.25)
 
         col = split.column()
         split = layout.split(percentage=0.25)
 
         col = split.column()
-        col.label(text=_("Axis:"))
+        col.label(text="Axis:")
         col.prop(md, "use_x")
         col.prop(md, "use_y")
         col.prop(md, "use_z")
 
         col = split.column()
         col.prop(md, "use_x")
         col.prop(md, "use_y")
         col.prop(md, "use_z")
 
         col = split.column()
-        col.label(text=_("Options:"))
-        col.prop(md, "use_mirror_merge", text=_("Merge"))
-        col.prop(md, "use_clip", text=_("Clipping"))
-        col.prop(md, "use_mirror_vertex_groups", text=_("Vertex Groups"))
+        col.label(text="Options:")
+        col.prop(md, "use_mirror_merge", text="Merge")
+        col.prop(md, "use_clip", text="Clipping")
+        col.prop(md, "use_mirror_vertex_groups", text="Vertex Groups")
 
         col = split.column()
 
         col = split.column()
-        col.label(text=_("Textures:"))
+        col.label(text="Textures:")
         col.prop(md, "use_mirror_u", text="U")
         col.prop(md, "use_mirror_v", text="V")
 
         col.prop(md, "use_mirror_u", text="U")
         col.prop(md, "use_mirror_v", text="V")
 
@@ -377,7 +376,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
 
         if md.use_mirror_merge == True:
             col.prop(md, "merge_threshold")
 
         if md.use_mirror_merge == True:
             col.prop(md, "merge_threshold")
-        col.label(text=_("Mirror Object:"))
+        col.label(text="Mirror Object:")
         col.prop(md, "mirror_object", text="")
 
     def NAVMESH(self, layout, ob, md):
         col.prop(md, "mirror_object", text="")
 
     def NAVMESH(self, layout, ob, md):
@@ -389,17 +388,17 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
 
         split = layout.split()
         col = split.column()
 
         split = layout.split()
         col = split.column()
-        col.prop(md, "levels", text=_("Preview"))
-        col.prop(md, "sculpt_levels", text=_("Sculpt"))
-        col.prop(md, "render_levels", text=_("Render"))
+        col.prop(md, "levels", text="Preview")
+        col.prop(md, "sculpt_levels", text="Sculpt")
+        col.prop(md, "render_levels", text="Render")
 
         col = split.column()
 
         col.enabled = ob.mode != 'EDIT'
 
         col = split.column()
 
         col.enabled = ob.mode != 'EDIT'
-        col.operator("object.multires_subdivide", text=_("Subdivide"))
-        col.operator("object.multires_higher_levels_delete", text=_("Delete Higher"))
-        col.operator("object.multires_reshape", text=_("Reshape"))
-        col.operator("object.multires_base_apply", text=_("Apply Base"))
+        col.operator("object.multires_subdivide", text="Subdivide")
+        col.operator("object.multires_higher_levels_delete", text="Delete Higher")
+        col.operator("object.multires_reshape", text="Reshape")
+        col.operator("object.multires_base_apply", text="Apply Base")
         col.prop(md, "use_subsurf_uv")
         col.prop(md, "show_only_control_edges")
 
         col.prop(md, "use_subsurf_uv")
         col.prop(md, "show_only_control_edges")
 
@@ -408,34 +407,34 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
         col = layout.column()
         row = col.row()
         if md.is_external:
         col = layout.column()
         row = col.row()
         if md.is_external:
-            row.operator("object.multires_external_pack", text=_("Pack External"))
+            row.operator("object.multires_external_pack", text="Pack External")
             row.label()
             row = col.row()
             row.prop(md, "filepath", text="")
         else:
             row.label()
             row = col.row()
             row.prop(md, "filepath", text="")
         else:
-            row.operator("object.multires_external_save", text=_("Save External..."))
+            row.operator("object.multires_external_save", text="Save External...")
             row.label()
 
     def PARTICLE_INSTANCE(self, layout, ob, md):
         layout.prop(md, "object")
             row.label()
 
     def PARTICLE_INSTANCE(self, layout, ob, md):
         layout.prop(md, "object")
-        layout.prop(md, "particle_system_index", text=_("Particle System"))
+        layout.prop(md, "particle_system_index", text="Particle System")
 
         split = layout.split()
         col = split.column()
 
         split = layout.split()
         col = split.column()
-        col.label(text=_("Create From:"))
+        col.label(text="Create From:")
         col.prop(md, "use_normal")
         col.prop(md, "use_children")
         col.prop(md, "use_size")
 
         col = split.column()
         col.prop(md, "use_normal")
         col.prop(md, "use_children")
         col.prop(md, "use_size")
 
         col = split.column()
-        col.label(text=_("Show Particles When:"))
+        col.label(text="Show Particles When:")
         col.prop(md, "show_alive")
         col.prop(md, "show_unborn")
         col.prop(md, "show_dead")
 
         layout.separator()
 
         col.prop(md, "show_alive")
         col.prop(md, "show_unborn")
         col.prop(md, "show_dead")
 
         layout.separator()
 
-        layout.prop(md, "use_path", text=_("Create Along Paths"))
+        layout.prop(md, "use_path", text="Create Along Paths")
 
         split = layout.split()
         split.active = md.use_path
 
         split = layout.split()
         split.active = md.use_path
@@ -445,17 +444,17 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
 
         col = split.column()
         col.prop(md, "position", slider=True)
 
         col = split.column()
         col.prop(md, "position", slider=True)
-        col.prop(md, "random_position", text=_("Random"), slider=True)
+        col.prop(md, "random_position", text="Random", slider=True)
 
     def PARTICLE_SYSTEM(self, layout, ob, md):
 
     def PARTICLE_SYSTEM(self, layout, ob, md):
-        layout.label(text=_("Settings can be found inside the Particle context"))
+        layout.label(text="Settings can be found inside the Particle context")
 
     def SCREW(self, layout, ob, md):
         split = layout.split()
 
         col = split.column()
         col.prop(md, "axis")
 
     def SCREW(self, layout, ob, md):
         split = layout.split()
 
         col = split.column()
         col.prop(md, "axis")
-        col.prop(md, "object", text=_("AxisOb"))
+        col.prop(md, "object", text="AxisOb")
         col.prop(md, "angle")
         col.prop(md, "steps")
         col.prop(md, "render_steps")
         col.prop(md, "angle")
         col.prop(md, "steps")
         col.prop(md, "render_steps")
@@ -474,10 +473,10 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
     def SHRINKWRAP(self, layout, ob, md):
         split = layout.split()
         col = split.column()
     def SHRINKWRAP(self, layout, ob, md):
         split = layout.split()
         col = split.column()
-        col.label(text=_("Target:"))
+        col.label(text="Target:")
         col.prop(md, "target", text="")
         col = split.column()
         col.prop(md, "target", text="")
         col = split.column()
-        col.label(text=_("Vertex Group:"))
+        col.label(text="Vertex Group:")
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
         split = layout.split()
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
         split = layout.split()
@@ -487,28 +486,28 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
         col.prop(md, "subsurf_levels")
 
         col = split.column()
         col.prop(md, "subsurf_levels")
 
         col = split.column()
-        col.label(text=_("Mode:"))
+        col.label(text="Mode:")
         col.prop(md, "wrap_method", text="")
 
         if md.wrap_method == 'PROJECT':
             split = layout.split(percentage=0.25)
 
             col = split.column()
         col.prop(md, "wrap_method", text="")
 
         if md.wrap_method == 'PROJECT':
             split = layout.split(percentage=0.25)
 
             col = split.column()
-            col.label(text=_("Axis:"))
+            col.label(text="Axis:")
             col.prop(md, "use_project_x")
             col.prop(md, "use_project_y")
             col.prop(md, "use_project_z")
 
             col = split.column()
             col.prop(md, "use_project_x")
             col.prop(md, "use_project_y")
             col.prop(md, "use_project_z")
 
             col = split.column()
-            col.label(text=_("Direction:"))
+            col.label(text="Direction:")
             col.prop(md, "use_negative_direction")
             col.prop(md, "use_positive_direction")
 
             col = split.column()
             col.prop(md, "use_negative_direction")
             col.prop(md, "use_positive_direction")
 
             col = split.column()
-            col.label(text=_("Cull Faces:"))
+            col.label(text="Cull Faces:")
             col.prop(md, "cull_face", expand=True)
 
             col.prop(md, "cull_face", expand=True)
 
-            layout.label(text=_("Auxiliary Target:"))
+            layout.label(text="Auxiliary Target:")
             layout.prop(md, "auxiliary_target", text="")
 
         elif md.wrap_method == 'NEAREST_SURFACEPOINT':
             layout.prop(md, "auxiliary_target", text="")
 
         elif md.wrap_method == 'NEAREST_SURFACEPOINT':
@@ -518,24 +517,24 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Mode:"))
+        col.label(text="Mode:")
         col.prop(md, "deform_method", text="")
 
         col = split.column()
         col.prop(md, "deform_method", text="")
 
         col = split.column()
-        col.label(text=_("Vertex Group:"))
+        col.label(text="Vertex Group:")
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
         split = layout.split()
 
         col = split.column()
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Origin:"))
+        col.label(text="Origin:")
         col.prop(md, "origin", text="")
         sub = col.column()
         sub.active = (md.origin is not None)
         sub.prop(md, "use_relative")
 
         col = split.column()
         col.prop(md, "origin", text="")
         sub = col.column()
         sub.active = (md.origin is not None)
         sub.prop(md, "use_relative")
 
         col = split.column()
-        col.label(text=_("Deform:"))
+        col.label(text="Deform:")
         col.prop(md, "factor")
         col.prop(md, "limits", slider=True)
         if md.deform_method in {'TAPER', 'STRETCH'}:
         col.prop(md, "factor")
         col.prop(md, "limits", slider=True)
         if md.deform_method in {'TAPER', 'STRETCH'}:
@@ -543,13 +542,13 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
             col.prop(md, "lock_y")
 
     def SMOKE(self, layout, ob, md):
             col.prop(md, "lock_y")
 
     def SMOKE(self, layout, ob, md):
-        layout.label(text=_("Settings can be found inside the Physics context"))
+        layout.label(text="Settings can be found inside the Physics context")
 
     def SMOOTH(self, layout, ob, md):
         split = layout.split(percentage=0.25)
 
         col = split.column()
 
     def SMOOTH(self, layout, ob, md):
         split = layout.split(percentage=0.25)
 
         col = split.column()
-        col.label(text=_("Axis:"))
+        col.label(text="Axis:")
         col.prop(md, "use_x")
         col.prop(md, "use_y")
         col.prop(md, "use_z")
         col.prop(md, "use_x")
         col.prop(md, "use_y")
         col.prop(md, "use_z")
@@ -557,11 +556,11 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
         col = split.column()
         col.prop(md, "factor")
         col.prop(md, "iterations")
         col = split.column()
         col.prop(md, "factor")
         col.prop(md, "iterations")
-        col.label(text=_("Vertex Group:"))
+        col.label(text="Vertex Group:")
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
     def SOFT_BODY(self, layout, ob, md):
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
     def SOFT_BODY(self, layout, ob, md):
-        layout.label(text=_("Settings can be found inside the Physics context"))
+        layout.label(text="Settings can be found inside the Physics context")
 
     def SOLIDIFY(self, layout, ob, md):
         split = layout.split()
 
     def SOLIDIFY(self, layout, ob, md):
         split = layout.split()
@@ -570,19 +569,19 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
         col.prop(md, "thickness")
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
         col.prop(md, "thickness")
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
-        col.label(text=_("Crease:"))
-        col.prop(md, "edge_crease_inner", text=_("Inner"))
-        col.prop(md, "edge_crease_outer", text=_("Outer"))
-        col.prop(md, "edge_crease_rim", text=_("Rim"))
-        col.label(text=_("Material Index Offset:"))
+        col.label(text="Crease:")
+        col.prop(md, "edge_crease_inner", text="Inner")
+        col.prop(md, "edge_crease_outer", text="Outer")
+        col.prop(md, "edge_crease_rim", text="Rim")
+        col.label(text="Material Index Offset:")
 
         col = split.column()
 
         col.prop(md, "offset")
         sub = col.column()
         sub.active = bool(md.vertex_group)
 
         col = split.column()
 
         col.prop(md, "offset")
         sub = col.column()
         sub.active = bool(md.vertex_group)
-        sub.prop(md, "invert_vertex_group", text=_("Invert"))
-        sub.prop(md, "thickness_vertex_group", text=_("Factor"))
+        sub.prop(md, "invert_vertex_group", text="Invert")
+        sub.prop(md, "thickness_vertex_group", text="Factor")
 
         col.prop(md, "use_even_offset")
         col.prop(md, "use_quality_normals")
 
         col.prop(md, "use_even_offset")
         col.prop(md, "use_quality_normals")
@@ -593,64 +592,64 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
         row.prop(md, "material_offset", text="")
         row = row.row()
         row.active = md.use_rim
         row.prop(md, "material_offset", text="")
         row = row.row()
         row.active = md.use_rim
-        row.prop(md, "material_offset_rim", text=_("Rim"))
+        row.prop(md, "material_offset_rim", text="Rim")
 
     def SUBSURF(self, layout, ob, md):
         layout.row().prop(md, "subdivision_type", expand=True)
 
         split = layout.split()
         col = split.column()
 
     def SUBSURF(self, layout, ob, md):
         layout.row().prop(md, "subdivision_type", expand=True)
 
         split = layout.split()
         col = split.column()
-        col.label(text=_("Subdivisions:"))
-        col.prop(md, "levels", text=_("View"))
-        col.prop(md, "render_levels", text=_("Render"))
+        col.label(text="Subdivisions:")
+        col.prop(md, "levels", text="View")
+        col.prop(md, "render_levels", text="Render")
 
         col = split.column()
 
         col = split.column()
-        col.label(text=_("Options:"))
+        col.label(text="Options:")
         col.prop(md, "use_subsurf_uv")
         col.prop(md, "show_only_control_edges")
 
     def SURFACE(self, layout, ob, md):
         col.prop(md, "use_subsurf_uv")
         col.prop(md, "show_only_control_edges")
 
     def SURFACE(self, layout, ob, md):
-        layout.label(text=_("Settings can be found inside the Physics context"))
+        layout.label(text="Settings can be found inside the Physics context")
 
     def UV_PROJECT(self, layout, ob, md):
         split = layout.split()
 
         col = split.column()
 
     def UV_PROJECT(self, layout, ob, md):
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Image:"))
+        col.label(text="Image:")
         col.prop(md, "image", text="")
 
         col = split.column()
         col.prop(md, "image", text="")
 
         col = split.column()
-        col.label(text=_("UV Layer:"))
+        col.label(text="UV Layer:")
         col.prop_search(md, "uv_layer", ob.data, "uv_textures", text="")
 
         split = layout.split()
         col = split.column()
         col.prop(md, "use_image_override")
         col.prop_search(md, "uv_layer", ob.data, "uv_textures", text="")
 
         split = layout.split()
         col = split.column()
         col.prop(md, "use_image_override")
-        col.prop(md, "projector_count", text=_("Projectors"))
+        col.prop(md, "projector_count", text="Projectors")
         for proj in md.projectors:
             col.prop(proj, "object", text="")
 
         col = split.column()
         sub = col.column(align=True)
         for proj in md.projectors:
             col.prop(proj, "object", text="")
 
         col = split.column()
         sub = col.column(align=True)
-        sub.prop(md, "aspect_x", text=_("Aspect X"))
-        sub.prop(md, "aspect_y", text=_("Aspect Y"))
+        sub.prop(md, "aspect_x", text="Aspect X")
+        sub.prop(md, "aspect_y", text="Aspect Y")
 
         sub = col.column(align=True)
 
         sub = col.column(align=True)
-        sub.prop(md, "scale_x", text=_("Scale X"))
-        sub.prop(md, "scale_y", text=_("Scale Y"))
+        sub.prop(md, "scale_x", text="Scale X")
+        sub.prop(md, "scale_y", text="Scale Y")
 
     def WARP(self, layout, ob, md):
         use_falloff = (md.falloff_type != 'NONE')
         split = layout.split()
 
         col = split.column()
 
     def WARP(self, layout, ob, md):
         use_falloff = (md.falloff_type != 'NONE')
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("From:"))
+        col.label(text="From:")
         col.prop(md, "object_from", text="")
 
         col.prop(md, "use_volume_preserve")
 
         col = split.column()
         col.prop(md, "object_from", text="")
 
         col.prop(md, "use_volume_preserve")
 
         col = split.column()
-        col.label(text=_("To:"))
+        col.label(text="To:")
         col.prop(md, "object_to", text="")
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
         col.prop(md, "object_to", text="")
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
@@ -669,15 +668,15 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
         # 2 new columns
         split = layout.split()
         col = split.column()
         # 2 new columns
         split = layout.split()
         col = split.column()
-        col.label(text=_("Texture:"))
+        col.label(text="Texture:")
         col.prop(md, "texture", text="")
 
         col = split.column()
         col.prop(md, "texture", text="")
 
         col = split.column()
-        col.label(text=_("Texture Coordinates:"))
+        col.label(text="Texture Coordinates:")
         col.prop(md, "texture_coords", text="")
 
         if md.texture_coords == 'OBJECT':
         col.prop(md, "texture_coords", text="")
 
         if md.texture_coords == 'OBJECT':
-            layout.prop(md, "texture_coords_object", text=_("Object"))
+            layout.prop(md, "texture_coords_object", text="Object")
         elif md.texture_coords == 'UV' and ob.type == 'MESH':
             layout.prop_search(md, "uv_layer", ob.data, "uv_textures")
 
         elif md.texture_coords == 'UV' and ob.type == 'MESH':
             layout.prop_search(md, "uv_layer", ob.data, "uv_textures")
 
@@ -685,7 +684,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Motion:"))
+        col.label(text="Motion:")
         col.prop(md, "use_x")
         col.prop(md, "use_y")
         col.prop(md, "use_cyclic")
         col.prop(md, "use_x")
         col.prop(md, "use_y")
         col.prop(md, "use_cyclic")
@@ -701,18 +700,18 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Time:"))
+        col.label(text="Time:")
         sub = col.column(align=True)
         sub = col.column(align=True)
-        sub.prop(md, "time_offset", text=_("Offset"))
-        sub.prop(md, "lifetime", text=_("Life"))
-        col.prop(md, "damping_time", text=_("Damping"))
+        sub.prop(md, "time_offset", text="Offset")
+        sub.prop(md, "lifetime", text="Life")
+        col.prop(md, "damping_time", text="Damping")
 
         col = split.column()
 
         col = split.column()
-        col.label(text=_("Position:"))
+        col.label(text="Position:")
         sub = col.column(align=True)
         sub.prop(md, "start_position_x", text="X")
         sub.prop(md, "start_position_y", text="Y")
         sub = col.column(align=True)
         sub.prop(md, "start_position_x", text="X")
         sub.prop(md, "start_position_y", text="Y")
-        col.prop(md, "falloff_radius", text=_("Falloff"))
+        col.prop(md, "falloff_radius", text="Falloff")
 
         layout.separator()
 
 
         layout.separator()
 
@@ -720,7 +719,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
         layout.prop_search(md, "vertex_group", ob, "vertex_groups")
         split = layout.split(percentage=0.33)
         col = split.column()
         layout.prop_search(md, "vertex_group", ob, "vertex_groups")
         split = layout.split(percentage=0.33)
         col = split.column()
-        col.label(text=_("Texture"))
+        col.label(text="Texture")
         col = split.column()
         col.template_ID(md, "texture", new="texture.new")
         layout.prop(md, "texture_coords")
         col = split.column()
         col.template_ID(md, "texture", new="texture.new")
         layout.prop(md, "texture_coords")
index efe50b6fe2be3d2e71e3ae9867fbea8b1545da60..26b95484b282f0f27d8a0d8882842fc8ed76a583 100644 (file)
@@ -19,7 +19,6 @@
 # <pep8 compliant>
 import bpy
 from bpy.types import Panel
 # <pep8 compliant>
 import bpy
 from bpy.types import Panel
-from blf import gettext as _
 
 
 class PhysicsButtonsPanel():
 
 
 class PhysicsButtonsPanel():
@@ -55,7 +54,7 @@ class PHYSICS_PT_game_physics(PhysicsButtonsPanel, Panel):
             col = split.column()
             col.prop(game, "use_actor")
             col.prop(game, "use_ghost")
             col = split.column()
             col.prop(game, "use_actor")
             col.prop(game, "use_ghost")
-            col.prop(ob, "hide_render", text=_("Invisible"))  # out of place but useful
+            col.prop(ob, "hide_render", text="Invisible")  # out of place but useful
 
             col = split.column()
             col.prop(game, "use_material_physics_fh")
 
             col = split.column()
             col.prop(game, "use_material_physics_fh")
@@ -67,7 +66,7 @@ class PHYSICS_PT_game_physics(PhysicsButtonsPanel, Panel):
             split = layout.split()
 
             col = split.column()
             split = layout.split()
 
             col = split.column()
-            col.label(text=_("Attributes:"))
+            col.label(text="Attributes:")
             col.prop(game, "mass")
             col.prop(game, "radius")
             col.prop(game, "form_factor")
             col.prop(game, "mass")
             col.prop(game, "radius")
             col.prop(game, "form_factor")
@@ -82,29 +81,29 @@ class PHYSICS_PT_game_physics(PhysicsButtonsPanel, Panel):
             split = layout.split()
 
             col = split.column()
             split = layout.split()
 
             col = split.column()
-            col.label(text=_("Velocity:"))
+            col.label(text="Velocity:")
             sub = col.column(align=True)
             sub = col.column(align=True)
-            sub.prop(game, "velocity_min", text=_("Minimum"))
-            sub.prop(game, "velocity_max", text=_("Maximum"))
+            sub.prop(game, "velocity_min", text="Minimum")
+            sub.prop(game, "velocity_max", text="Maximum")
 
             col = split.column()
 
             col = split.column()
-            col.label(text=_("Damping:"))
+            col.label(text="Damping:")
             sub = col.column(align=True)
             sub = col.column(align=True)
-            sub.prop(game, "damping", text=_("Translation"), slider=True)
-            sub.prop(game, "rotation_damping", text=_("Rotation"), slider=True)
+            sub.prop(game, "damping", text="Translation", slider=True)
+            sub.prop(game, "rotation_damping", text="Rotation", slider=True)
 
             layout.separator()
 
             split = layout.split()
 
             col = split.column()
 
             layout.separator()
 
             split = layout.split()
 
             col = split.column()
-            col.label(text=_("Lock Translation:"))
+            col.label(text="Lock Translation:")
             col.prop(game, "lock_location_x", text="X")
             col.prop(game, "lock_location_y", text="Y")
             col.prop(game, "lock_location_z", text="Z")
 
             col = split.column()
             col.prop(game, "lock_location_x", text="X")
             col.prop(game, "lock_location_y", text="Y")
             col.prop(game, "lock_location_z", text="Z")
 
             col = split.column()
-            col.label(text=_("Lock Rotation:"))
+            col.label(text="Lock Rotation:")
             col.prop(game, "lock_rotation_x", text="X")
             col.prop(game, "lock_rotation_y", text="Y")
             col.prop(game, "lock_rotation_z", text="Z")
             col.prop(game, "lock_rotation_x", text="X")
             col.prop(game, "lock_rotation_y", text="Y")
             col.prop(game, "lock_rotation_z", text="Z")
@@ -113,21 +112,21 @@ class PHYSICS_PT_game_physics(PhysicsButtonsPanel, Panel):
             col = layout.column()
             col.prop(game, "use_actor")
             col.prop(game, "use_ghost")
             col = layout.column()
             col.prop(game, "use_actor")
             col.prop(game, "use_ghost")
-            col.prop(ob, "hide_render", text=_("Invisible"))
+            col.prop(ob, "hide_render", text="Invisible")
 
             layout.separator()
 
             split = layout.split()
 
             col = split.column()
 
             layout.separator()
 
             split = layout.split()
 
             col = split.column()
-            col.label(text=_("Attributes:"))
+            col.label(text="Attributes:")
             col.prop(game, "mass")
             col.prop(soft, "weld_threshold")
             col.prop(soft, "location_iterations")
             col.prop(soft, "linear_stiffness", slider=True)
             col.prop(soft, "dynamic_friction", slider=True)
             col.prop(soft, "collision_margin", slider=True)
             col.prop(game, "mass")
             col.prop(soft, "weld_threshold")
             col.prop(soft, "location_iterations")
             col.prop(soft, "linear_stiffness", slider=True)
             col.prop(soft, "dynamic_friction", slider=True)
             col.prop(soft, "collision_margin", slider=True)
-            col.prop(soft, "use_bending_constraints", text=_("Bending Constraints"))
+            col.prop(soft, "use_bending_constraints", text="Bending Constraints")
 
             col = split.column()
             col.prop(soft, "use_shape_match")
 
             col = split.column()
             col.prop(soft, "use_shape_match")
@@ -137,25 +136,25 @@ class PHYSICS_PT_game_physics(PhysicsButtonsPanel, Panel):
 
             col.separator()
 
 
             col.separator()
 
-            col.label(text=_("Cluster Collision:"))
+            col.label(text="Cluster Collision:")
             col.prop(soft, "use_cluster_rigid_to_softbody")
             col.prop(soft, "use_cluster_soft_to_softbody")
             sub = col.column()
             sub.active = (soft.use_cluster_rigid_to_softbody or soft.use_cluster_soft_to_softbody)
             col.prop(soft, "use_cluster_rigid_to_softbody")
             col.prop(soft, "use_cluster_soft_to_softbody")
             sub = col.column()
             sub.active = (soft.use_cluster_rigid_to_softbody or soft.use_cluster_soft_to_softbody)
-            sub.prop(soft, "cluster_iterations", text=_("Iterations"))
+            sub.prop(soft, "cluster_iterations", text="Iterations")
 
         elif game.physics_type == 'STATIC':
             col = layout.column()
             col.prop(game, "use_actor")
             col.prop(game, "use_ghost")
 
         elif game.physics_type == 'STATIC':
             col = layout.column()
             col.prop(game, "use_actor")
             col.prop(game, "use_ghost")
-            col.prop(ob, "hide_render", text=_("Invisible"))
+            col.prop(ob, "hide_render", text="Invisible")
 
             layout.separator()
 
             split = layout.split()
 
             col = split.column()
 
             layout.separator()
 
             split = layout.split()
 
             col = split.column()
-            col.label(text=_("Attributes:"))
+            col.label(text="Attributes:")
             col.prop(game, "radius")
 
             col = split.column()
             col.prop(game, "radius")
 
             col = split.column()
@@ -166,7 +165,7 @@ class PHYSICS_PT_game_physics(PhysicsButtonsPanel, Panel):
             subsub.prop(game, "friction_coefficients", text="", slider=True)
 
         elif game.physics_type in {'SENSOR', 'INVISIBLE', 'NO_COLLISION', 'OCCLUDE'}:
             subsub.prop(game, "friction_coefficients", text="", slider=True)
 
         elif game.physics_type in {'SENSOR', 'INVISIBLE', 'NO_COLLISION', 'OCCLUDE'}:
-            layout.prop(ob, "hide_render", text=_("Invisible"))
+            layout.prop(ob, "hide_render", text="Invisible")
 
 
 class PHYSICS_PT_game_collision_bounds(PhysicsButtonsPanel, Panel):
 
 
 class PHYSICS_PT_game_collision_bounds(PhysicsButtonsPanel, Panel):
@@ -190,11 +189,11 @@ class PHYSICS_PT_game_collision_bounds(PhysicsButtonsPanel, Panel):
         game = context.active_object.game
 
         layout.active = game.use_collision_bounds
         game = context.active_object.game
 
         layout.active = game.use_collision_bounds
-        layout.prop(game, "collision_bounds_type", text=_("Bounds"))
+        layout.prop(game, "collision_bounds_type", text="Bounds")
 
         row = layout.row()
 
         row = layout.row()
-        row.prop(game, "collision_margin", text=_("Margin"), slider=True)
-        row.prop(game, "use_collision_compound", text=_("Compound"))
+        row.prop(game, "collision_margin", text="Margin", slider=True)
+        row.prop(game, "use_collision_compound", text="Compound")
 
 
 class PHYSICS_PT_game_obstacles(PhysicsButtonsPanel, Panel):
 
 
 class PHYSICS_PT_game_obstacles(PhysicsButtonsPanel, Panel):
@@ -243,7 +242,7 @@ class RENDER_PT_game(RenderButtonsPanel, Panel):
         layout = self.layout
 
         row = layout.row()
         layout = self.layout
 
         row = layout.row()
-        row.operator("view3d.game_start", text=_("Start"))
+        row.operator("view3d.game_start", text="Start")
         row.label()
 
 
         row.label()
 
 
@@ -261,20 +260,20 @@ class RENDER_PT_game_player(RenderButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Resolution:"))
+        col.label(text="Resolution:")
         sub = col.column(align=True)
         sub.prop(gs, "resolution_x", slider=False, text="X")
         sub.prop(gs, "resolution_y", slider=False, text="Y")
 
         col = split.column()
         sub = col.column(align=True)
         sub.prop(gs, "resolution_x", slider=False, text="X")
         sub.prop(gs, "resolution_y", slider=False, text="Y")
 
         col = split.column()
-        col.label(text=_("Quality:"))
+        col.label(text="Quality:")
         sub = col.column(align=True)
         sub = col.column(align=True)
-        sub.prop(gs, "depth", text=_("Bit Depth"), slider=False)
-        sub.prop(gs, "frequency", text=_("FPS"), slider=False)
+        sub.prop(gs, "depth", text="Bit Depth", slider=False)
+        sub.prop(gs, "frequency", text="FPS", slider=False)
 
         # framing:
         col = layout.column()
 
         # framing:
         col = layout.column()
-        col.label(text=_("Framing:"))
+        col.label(text="Framing:")
         col.row().prop(gs, "frame_type", expand=True)
         if gs.frame_type == 'LETTERBOX':
             col.prop(gs, "frame_color", text="")
         col.row().prop(gs, "frame_type", expand=True)
         if gs.frame_type == 'LETTERBOX':
             col.prop(gs, "frame_color", text="")
@@ -300,7 +299,7 @@ class RENDER_PT_game_stereo(RenderButtonsPanel, Panel):
 
         # dome:
         elif stereo_mode == 'DOME':
 
         # dome:
         elif stereo_mode == 'DOME':
-            layout.prop(gs, "dome_mode", text=_("Dome Type"))
+            layout.prop(gs, "dome_mode", text="Dome Type")
 
             dome_type = gs.dome_mode
 
 
             dome_type = gs.dome_mode
 
@@ -311,23 +310,23 @@ class RENDER_PT_game_stereo(RenderButtonsPanel, Panel):
                dome_type == 'TRUNCATED_FRONT':
 
                 col = split.column()
                dome_type == 'TRUNCATED_FRONT':
 
                 col = split.column()
-                col.prop(gs, "dome_buffer_resolution", text=_("Resolution"), slider=True)
+                col.prop(gs, "dome_buffer_resolution", text="Resolution", slider=True)
                 col.prop(gs, "dome_angle", slider=True)
 
                 col = split.column()
                 col.prop(gs, "dome_angle", slider=True)
 
                 col = split.column()
-                col.prop(gs, "dome_tesselation", text=_("Tesselation"))
+                col.prop(gs, "dome_tesselation", text="Tesselation")
                 col.prop(gs, "dome_tilt")
 
             elif dome_type == 'PANORAM_SPH':
                 col = split.column()
 
                 col.prop(gs, "dome_tilt")
 
             elif dome_type == 'PANORAM_SPH':
                 col = split.column()
 
-                col.prop(gs, "dome_buffer_resolution", text=_("Resolution"), slider=True)
+                col.prop(gs, "dome_buffer_resolution", text="Resolution", slider=True)
                 col = split.column()
                 col = split.column()
-                col.prop(gs, "dome_tesselation", text=_("Tesselation"))
+                col.prop(gs, "dome_tesselation", text="Tesselation")
 
             else:  # cube map
                 col = split.column()
 
             else:  # cube map
                 col = split.column()
-                col.prop(gs, "dome_buffer_resolution", text=_("Resolution"), slider=True)
+                col.prop(gs, "dome_buffer_resolution", text="Resolution", slider=True)
 
                 col = split.column()
 
 
                 col = split.column()
 
@@ -349,15 +348,15 @@ class RENDER_PT_game_shading(RenderButtonsPanel, Panel):
             split = layout.split()
 
             col = split.column()
             split = layout.split()
 
             col = split.column()
-            col.prop(gs, "use_glsl_lights", text=_("Lights"))
-            col.prop(gs, "use_glsl_shaders", text=_("Shaders"))
-            col.prop(gs, "use_glsl_shadows", text=_("Shadows"))
-            col.prop(gs, "use_glsl_color_management", text=_("Color Management"))
+            col.prop(gs, "use_glsl_lights", text="Lights")
+            col.prop(gs, "use_glsl_shaders", text="Shaders")
+            col.prop(gs, "use_glsl_shadows", text="Shadows")
+            col.prop(gs, "use_glsl_color_management", text="Color Management")
 
             col = split.column()
 
             col = split.column()
-            col.prop(gs, "use_glsl_ramps", text=_("Ramps"))
-            col.prop(gs, "use_glsl_nodes", text=_("Nodes"))
-            col.prop(gs, "use_glsl_extra_textures", text=_("Extra Textures"))
+            col.prop(gs, "use_glsl_ramps", text="Ramps")
+            col.prop(gs, "use_glsl_nodes", text="Nodes")
+            col.prop(gs, "use_glsl_extra_textures", text="Extra Textures")
 
 
 class RENDER_PT_game_performance(RenderButtonsPanel, Panel):
 
 
 class RENDER_PT_game_performance(RenderButtonsPanel, Panel):
@@ -385,11 +384,11 @@ class RENDER_PT_game_display(RenderButtonsPanel, Panel):
 
         gs = context.scene.game_settings
         flow = layout.column_flow()
 
         gs = context.scene.game_settings
         flow = layout.column_flow()
-        flow.prop(gs, "show_debug_properties", text=_("Debug Properties"))
-        flow.prop(gs, "show_framerate_profile", text=_("Framerate and Profile"))
-        flow.prop(gs, "show_physics_visualization", text=_("Physics Visualization"))
+        flow.prop(gs, "show_debug_properties", text="Debug Properties")
+        flow.prop(gs, "show_framerate_profile", text="Framerate and Profile")
+        flow.prop(gs, "show_physics_visualization", text="Physics Visualization")
         flow.prop(gs, "use_deprecation_warnings")
         flow.prop(gs, "use_deprecation_warnings")
-        flow.prop(gs, "show_mouse", text=_("Mouse Cursor"))
+        flow.prop(gs, "show_mouse", text="Mouse Cursor")
 
 
 class SceneButtonsPanel():
 
 
 class SceneButtonsPanel():
@@ -547,37 +546,37 @@ class WORLD_PT_game_physics(WorldButtonsPanel, Panel):
 
         layout.prop(gs, "physics_engine")
         if gs.physics_engine != 'NONE':
 
         layout.prop(gs, "physics_engine")
         if gs.physics_engine != 'NONE':
-            layout.prop(gs, "physics_gravity", text=_("Gravity"))
+            layout.prop(gs, "physics_gravity", text="Gravity")
 
             split = layout.split()
 
             col = split.column()
 
             split = layout.split()
 
             col = split.column()
-            col.label(text=_("Physics Steps:"))
+            col.label(text="Physics Steps:")
             sub = col.column(align=True)
             sub = col.column(align=True)
-            sub.prop(gs, "physics_step_max", text=_("Max"))
-            sub.prop(gs, "physics_step_sub", text=_("Substeps"))
-            col.prop(gs, "fps", text=_("FPS"))
+            sub.prop(gs, "physics_step_max", text="Max")
+            sub.prop(gs, "physics_step_sub", text="Substeps")
+            col.prop(gs, "fps", text="FPS")
 
             col = split.column()
 
             col = split.column()
-            col.label(text=_("Logic Steps:"))
-            col.prop(gs, "logic_step_max", text=_("Max"))
+            col.label(text="Logic Steps:")
+            col.prop(gs, "logic_step_max", text="Max")
 
             col = layout.column()
 
             col = layout.column()
-            col.prop(gs, "use_occlusion_culling", text=_("Occlusion Culling"))
+            col.prop(gs, "use_occlusion_culling", text="Occlusion Culling")
             sub = col.column()
             sub.active = gs.use_occlusion_culling
             sub = col.column()
             sub.active = gs.use_occlusion_culling
-            sub.prop(gs, "occlusion_culling_resolution", text=_("Resolution"))
+            sub.prop(gs, "occlusion_culling_resolution", text="Resolution")
 
         else:
             split = layout.split()
 
             col = split.column()
 
         else:
             split = layout.split()
 
             col = split.column()
-            col.label(text=_("Physics Steps:"))
-            col.prop(gs, "fps", text=_("FPS"))
+            col.label(text="Physics Steps:")
+            col.prop(gs, "fps", text="FPS")
 
             col = split.column()
 
             col = split.column()
-            col.label(text=_("Logic Steps:"))
-            col.prop(gs, "logic_step_max", text=_("Max"))
+            col.label(text="Logic Steps:")
+            col.prop(gs, "logic_step_max", text="Max")
 
 
 class WORLD_PT_game_physics_obstacles(WorldButtonsPanel, Panel):
 
 
 class WORLD_PT_game_physics_obstacles(WorldButtonsPanel, Panel):
index 3a1a43589799a0c4ab92589dd04990929a1ef62f..1c9ff6dda0e52acc9c0546922589b53e97150a8d 100644 (file)
@@ -20,7 +20,6 @@
 import bpy
 from bpy.types import Menu, Panel
 from rna_prop_ui import PropertyPanel
 import bpy
 from bpy.types import Menu, Panel
 from rna_prop_ui import PropertyPanel
-from blf import gettext as _
 
 
 def active_node_mat(mat):
 
 
 def active_node_mat(mat):
@@ -115,9 +114,9 @@ class MATERIAL_PT_context_material(MaterialButtonsPanel, Panel):
 
             if ob.mode == 'EDIT':
                 row = layout.row(align=True)
 
             if ob.mode == 'EDIT':
                 row = layout.row(align=True)
-                row.operator("object.material_slot_assign", text=_("Assign"))
-                row.operator("object.material_slot_select", text=_("Select"))
-                row.operator("object.material_slot_deselect", text=_("Deselect"))
+                row.operator("object.material_slot_assign", text="Assign")
+                row.operator("object.material_slot_select", text="Select")
+                row.operator("object.material_slot_deselect", text="Deselect")
 
         split = layout.split(percentage=0.65)
 
 
         split = layout.split(percentage=0.65)
 
@@ -143,7 +142,7 @@ class MATERIAL_PT_context_material(MaterialButtonsPanel, Panel):
                 if mat.active_node_material:
                     row.prop(mat.active_node_material, "name", text="")
                 else:
                 if mat.active_node_material:
                     row.prop(mat.active_node_material, "name", text="")
                 else:
-                    row.label(text=_("No material node selected"))
+                    row.label(text="No material node selected")
 
 
 class MATERIAL_PT_preview(MaterialButtonsPanel, Panel):
 
 
 class MATERIAL_PT_preview(MaterialButtonsPanel, Panel):
@@ -198,8 +197,8 @@ class MATERIAL_PT_pipeline(MaterialButtonsPanel, Panel):
         col = split.column()
         col.active = mat_type
 
         col = split.column()
         col.active = mat_type
 
-        col.prop(mat, "use_cast_shadows_only", text=_("Cast Only"))
-        col.prop(mat, "shadow_cast_alpha", text=_("Casting Alpha"))
+        col.prop(mat, "use_cast_shadows_only", text="Cast Only")
+        col.prop(mat, "shadow_cast_alpha", text="Casting Alpha")
         col.prop(mat, "use_cast_buffer_shadows")
         col.prop(mat, "use_cast_approximate")
         col.prop(mat, "pass_index")
         col.prop(mat, "use_cast_buffer_shadows")
         col.prop(mat, "use_cast_approximate")
         col.prop(mat, "pass_index")
@@ -226,12 +225,12 @@ class MATERIAL_PT_diffuse(MaterialButtonsPanel, Panel):
         col.prop(mat, "diffuse_color", text="")
         sub = col.column()
         sub.active = (not mat.use_shadeless)
         col.prop(mat, "diffuse_color", text="")
         sub = col.column()
         sub.active = (not mat.use_shadeless)
-        sub.prop(mat, "diffuse_intensity", text=_("Intensity"))
+        sub.prop(mat, "diffuse_intensity", text="Intensity")
 
         col = split.column()
         col.active = (not mat.use_shadeless)
         col.prop(mat, "diffuse_shader", text="")
 
         col = split.column()
         col.active = (not mat.use_shadeless)
         col.prop(mat, "diffuse_shader", text="")
-        col.prop(mat, "use_diffuse_ramp", text=_("Ramp"))
+        col.prop(mat, "use_diffuse_ramp", text="Ramp")
 
         col = layout.column()
         col.active = (not mat.use_shadeless)
 
         col = layout.column()
         col.active = (not mat.use_shadeless)
@@ -241,12 +240,12 @@ class MATERIAL_PT_diffuse(MaterialButtonsPanel, Panel):
             col.prop(mat, "darkness")
         elif mat.diffuse_shader == 'TOON':
             row = col.row()
             col.prop(mat, "darkness")
         elif mat.diffuse_shader == 'TOON':
             row = col.row()
-            row.prop(mat, "diffuse_toon_size", text=_("Size"))
-            row.prop(mat, "diffuse_toon_smooth", text=_("Smooth"))
+            row.prop(mat, "diffuse_toon_size", text="Size")
+            row.prop(mat, "diffuse_toon_smooth", text="Smooth")
         elif mat.diffuse_shader == 'FRESNEL':
             row = col.row()
         elif mat.diffuse_shader == 'FRESNEL':
             row = col.row()
-            row.prop(mat, "diffuse_fresnel", text=_("Fresnel"))
-            row.prop(mat, "diffuse_fresnel_factor", text=_("Factor"))
+            row.prop(mat, "diffuse_fresnel", text="Fresnel")
+            row.prop(mat, "diffuse_fresnel_factor", text="Factor")
 
         if mat.use_diffuse_ramp:
             col = layout.column()
 
         if mat.use_diffuse_ramp:
             col = layout.column()
@@ -256,10 +255,10 @@ class MATERIAL_PT_diffuse(MaterialButtonsPanel, Panel):
             col.separator()
 
             row = col.row()
             col.separator()
 
             row = col.row()
-            row.prop(mat, "diffuse_ramp_input", text=_("Input"))
-            row.prop(mat, "diffuse_ramp_blend", text=_("Blend"))
+            row.prop(mat, "diffuse_ramp_input", text="Input")
+            row.prop(mat, "diffuse_ramp_blend", text="Blend")
 
 
-            col.prop(mat, "diffuse_ramp_factor", text=_("Factor"))
+            col.prop(mat, "diffuse_ramp_factor", text="Factor")
 
 
 class MATERIAL_PT_specular(MaterialButtonsPanel, Panel):
 
 
 class MATERIAL_PT_specular(MaterialButtonsPanel, Panel):
@@ -283,25 +282,25 @@ class MATERIAL_PT_specular(MaterialButtonsPanel, Panel):
 
         col = split.column()
         col.prop(mat, "specular_color", text="")
 
         col = split.column()
         col.prop(mat, "specular_color", text="")
-        col.prop(mat, "specular_intensity", text=_("Intensity"))
+        col.prop(mat, "specular_intensity", text="Intensity")
 
         col = split.column()
         col.prop(mat, "specular_shader", text="")
 
         col = split.column()
         col.prop(mat, "specular_shader", text="")
-        col.prop(mat, "use_specular_ramp", text=_("Ramp"))
+        col.prop(mat, "use_specular_ramp", text="Ramp")
 
         col = layout.column()
         if mat.specular_shader in {'COOKTORR', 'PHONG'}:
 
         col = layout.column()
         if mat.specular_shader in {'COOKTORR', 'PHONG'}:
-            col.prop(mat, "specular_hardness", text=_("Hardness"))
+            col.prop(mat, "specular_hardness", text="Hardness")
         elif mat.specular_shader == 'BLINN':
             row = col.row()
         elif mat.specular_shader == 'BLINN':
             row = col.row()
-            row.prop(mat, "specular_hardness", text=_("Hardness"))
-            row.prop(mat, "specular_ior", text=_("IOR"))
+            row.prop(mat, "specular_hardness", text="Hardness")
+            row.prop(mat, "specular_ior", text="IOR")
         elif mat.specular_shader == 'WARDISO':
         elif mat.specular_shader == 'WARDISO':
-            col.prop(mat, "specular_slope", text=_("Slope"))
+            col.prop(mat, "specular_slope", text="Slope")
         elif mat.specular_shader == 'TOON':
             row = col.row()
         elif mat.specular_shader == 'TOON':
             row = col.row()
-            row.prop(mat, "specular_toon_size", text=_("Size"))
-            row.prop(mat, "specular_toon_smooth", text=_("Smooth"))
+            row.prop(mat, "specular_toon_size", text="Size")
+            row.prop(mat, "specular_toon_smooth", text="Smooth")
 
         if mat.use_specular_ramp:
             layout.separator()
 
         if mat.use_specular_ramp:
             layout.separator()
@@ -309,10 +308,10 @@ class MATERIAL_PT_specular(MaterialButtonsPanel, Panel):
             layout.separator()
 
             row = layout.row()
             layout.separator()
 
             row = layout.row()
-            row.prop(mat, "specular_ramp_input", text=_("Input"))
-            row.prop(mat, "specular_ramp_blend", text=_("Blend"))
+            row.prop(mat, "specular_ramp_input", text="Input")
+            row.prop(mat, "specular_ramp_blend", text="Blend")
 
 
-            layout.prop(mat, "specular_ramp_factor", text=_("Factor"))
+            layout.prop(mat, "specular_ramp_factor", text="Factor")
 
 
 class MATERIAL_PT_shading(MaterialButtonsPanel, Panel):
 
 
 class MATERIAL_PT_shading(MaterialButtonsPanel, Panel):
@@ -385,14 +384,14 @@ class MATERIAL_PT_transp(MaterialButtonsPanel, Panel):
         col.prop(mat, "alpha")
         row = col.row()
         row.active = (base_mat.transparency_method != 'MASK') and (not mat.use_shadeless)
         col.prop(mat, "alpha")
         row = col.row()
         row.active = (base_mat.transparency_method != 'MASK') and (not mat.use_shadeless)
-        row.prop(mat, "specular_alpha", text=_("Specular"))
+        row.prop(mat, "specular_alpha", text="Specular")
 
         col = split.column()
         col.active = (not mat.use_shadeless)
         col.prop(rayt, "fresnel")
         sub = col.column()
         sub.active = rayt.fresnel > 0
 
         col = split.column()
         col.active = (not mat.use_shadeless)
         col.prop(rayt, "fresnel")
         sub = col.column()
         sub.active = rayt.fresnel > 0
-        sub.prop(rayt, "fresnel_factor", text=_("Blend"))
+        sub.prop(rayt, "fresnel_factor", text="Blend")
 
         if base_mat.transparency_method == 'RAYTRACE':
             layout.separator()
 
         if base_mat.transparency_method == 'RAYTRACE':
             layout.separator()
@@ -407,12 +406,12 @@ class MATERIAL_PT_transp(MaterialButtonsPanel, Panel):
             col.prop(rayt, "depth")
 
             col = split.column()
             col.prop(rayt, "depth")
 
             col = split.column()
-            col.label(text=_("Gloss:"))
-            col.prop(rayt, "gloss_factor", text=_("Amount"))
+            col.label(text="Gloss:")
+            col.prop(rayt, "gloss_factor", text="Amount")
             sub = col.column()
             sub.active = rayt.gloss_factor < 1.0
             sub = col.column()
             sub.active = rayt.gloss_factor < 1.0
-            sub.prop(rayt, "gloss_threshold", text=_("Threshold"))
-            sub.prop(rayt, "gloss_samples", text=_("Samples"))
+            sub.prop(rayt, "gloss_threshold", text="Threshold")
+            sub.prop(rayt, "gloss_samples", text="Samples")
 
 
 class MATERIAL_PT_mirror(MaterialButtonsPanel, Panel):
 
 
 class MATERIAL_PT_mirror(MaterialButtonsPanel, Panel):
@@ -449,28 +448,28 @@ class MATERIAL_PT_mirror(MaterialButtonsPanel, Panel):
         col.prop(raym, "fresnel")
         sub = col.column()
         sub.active = raym.fresnel > 0
         col.prop(raym, "fresnel")
         sub = col.column()
         sub.active = raym.fresnel > 0
-        sub.prop(raym, "fresnel_factor", text=_("Blend"))
+        sub.prop(raym, "fresnel_factor", text="Blend")
 
         split = layout.split()
 
         col = split.column()
         col.separator()
         col.prop(raym, "depth")
 
         split = layout.split()
 
         col = split.column()
         col.separator()
         col.prop(raym, "depth")
-        col.prop(raym, "distance", text=_("Max Dist"))
+        col.prop(raym, "distance", text="Max Dist")
         col.separator()
         sub = col.split(percentage=0.4)
         sub.active = raym.distance > 0.0
         col.separator()
         sub = col.split(percentage=0.4)
         sub.active = raym.distance > 0.0
-        sub.label(text=_("Fade To:"))
+        sub.label(text="Fade To:")
         sub.prop(raym, "fade_to", text="")
 
         col = split.column()
         sub.prop(raym, "fade_to", text="")
 
         col = split.column()
-        col.label(text=_("Gloss:"))
-        col.prop(raym, "gloss_factor", text=_("Amount"))
+        col.label(text="Gloss:")
+        col.prop(raym, "gloss_factor", text="Amount")
         sub = col.column()
         sub.active = raym.gloss_factor < 1.0
         sub = col.column()
         sub.active = raym.gloss_factor < 1.0
-        sub.prop(raym, "gloss_threshold", text=_("Threshold"))
-        sub.prop(raym, "gloss_samples", text=_("Samples"))
-        sub.prop(raym, "gloss_anisotropic", text=_("Anisotropic"))
+        sub.prop(raym, "gloss_threshold", text="Threshold")
+        sub.prop(raym, "gloss_samples", text="Samples")
+        sub.prop(raym, "gloss_anisotropic", text="Anisotropic")
 
 
 class MATERIAL_PT_sss(MaterialButtonsPanel, Panel):
 
 
 class MATERIAL_PT_sss(MaterialButtonsPanel, Panel):
@@ -511,18 +510,18 @@ class MATERIAL_PT_sss(MaterialButtonsPanel, Panel):
         col.prop(sss, "ior")
         col.prop(sss, "scale")
         col.prop(sss, "color", text="")
         col.prop(sss, "ior")
         col.prop(sss, "scale")
         col.prop(sss, "color", text="")
-        col.prop(sss, "radius", text=_("RGB Radius"), expand=True)
+        col.prop(sss, "radius", text="RGB Radius", expand=True)
 
         col = split.column()
         sub = col.column(align=True)
 
         col = split.column()
         sub = col.column(align=True)
-        sub.label(text=_("Blend:"))
-        sub.prop(sss, "color_factor", text=_("Color"))
-        sub.prop(sss, "texture_factor", text=_("Texture"))
-        sub.label(text=_("Scattering Weight:"))
+        sub.label(text="Blend:")
+        sub.prop(sss, "color_factor", text="Color")
+        sub.prop(sss, "texture_factor", text="Texture")
+        sub.label(text="Scattering Weight:")
         sub.prop(sss, "front")
         sub.prop(sss, "back")
         col.separator()
         sub.prop(sss, "front")
         sub.prop(sss, "back")
         col.separator()
-        col.prop(sss, "error_threshold", text=_("Error"))
+        col.prop(sss, "error_threshold", text="Error")
 
 
 class MATERIAL_PT_halo(MaterialButtonsPanel, Panel):
 
 
 class MATERIAL_PT_halo(MaterialButtonsPanel, Panel):
@@ -562,7 +561,7 @@ class MATERIAL_PT_halo(MaterialButtonsPanel, Panel):
         col.prop(halo, "hardness")
         col.prop(halo, "add")
 
         col.prop(halo, "hardness")
         col.prop(halo, "add")
 
-        layout.label(text=_("Options:"))
+        layout.label(text="Options:")
 
         split = layout.split()
         col = split.column()
 
         split = layout.split()
         col = split.column()
@@ -604,13 +603,13 @@ class MATERIAL_PT_flare(MaterialButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.prop(halo, "flare_size", text=_("Size"))
-        col.prop(halo, "flare_boost", text=_("Boost"))
-        col.prop(halo, "flare_seed", text=_("Seed"))
+        col.prop(halo, "flare_size", text="Size")
+        col.prop(halo, "flare_boost", text="Boost")
+        col.prop(halo, "flare_seed", text="Seed")
 
         col = split.column()
 
         col = split.column()
-        col.prop(halo, "flare_subflare_count", text=_("Subflares"))
-        col.prop(halo, "flare_subflare_size", text=_("Subsize"))
+        col.prop(halo, "flare_subflare_count", text="Subflares")
+        col.prop(halo, "flare_subflare_size", text="Subsize")
 
 
 class MATERIAL_PT_game_settings(MaterialButtonsPanel, bpy.types.Panel):
 
 
 class MATERIAL_PT_game_settings(MaterialButtonsPanel, bpy.types.Panel):
@@ -662,7 +661,7 @@ class MATERIAL_PT_physics(MaterialButtonsPanel, bpy.types.Panel):
         row.prop(phys, "elasticity", slider=True)
 
         row = layout.row()
         row.prop(phys, "elasticity", slider=True)
 
         row = layout.row()
-        row.label(text=_("Force Field:"))
+        row.label(text="Force Field:")
 
         row = layout.row()
         row.prop(phys, "fh_force")
 
         row = layout.row()
         row.prop(phys, "fh_force")
@@ -694,10 +693,10 @@ class MATERIAL_PT_strand(MaterialButtonsPanel, Panel):
 
         col = split.column()
         sub = col.column(align=True)
 
         col = split.column()
         sub = col.column(align=True)
-        sub.label(text=_("Size:"))
-        sub.prop(tan, "root_size", text=_("Root"))
-        sub.prop(tan, "tip_size", text=_("Tip"))
-        sub.prop(tan, "size_min", text=_("Minimum"))
+        sub.label(text="Size:")
+        sub.prop(tan, "root_size", text="Root")
+        sub.prop(tan, "tip_size", text="Tip")
+        sub.prop(tan, "size_min", text="Minimum")
         sub.prop(tan, "use_blender_units")
         sub = col.column()
         sub.active = (not mat.use_shadeless)
         sub.prop(tan, "use_blender_units")
         sub = col.column()
         sub.active = (not mat.use_shadeless)
@@ -705,7 +704,7 @@ class MATERIAL_PT_strand(MaterialButtonsPanel, Panel):
         col.prop(tan, "shape")
 
         col = split.column()
         col.prop(tan, "shape")
 
         col = split.column()
-        col.label(text=_("Shading:"))
+        col.label(text="Shading:")
         col.prop(tan, "width_fade")
         ob = context.object
         if ob and ob.type == 'MESH':
         col.prop(tan, "width_fade")
         ob = context.object
         if ob and ob.type == 'MESH':
@@ -715,9 +714,9 @@ class MATERIAL_PT_strand(MaterialButtonsPanel, Panel):
         col.separator()
         sub = col.column()
         sub.active = (not mat.use_shadeless)
         col.separator()
         sub = col.column()
         sub.active = (not mat.use_shadeless)
-        sub.label(_("Surface diffuse:"))
+        sub.label("Surface diffuse:")
         sub = col.column()
         sub = col.column()
-        sub.prop(tan, "blend_distance", text=_("Distance"))
+        sub.prop(tan, "blend_distance", text="Distance")
 
 
 class MATERIAL_PT_options(MaterialButtonsPanel, Panel):
 
 
 class MATERIAL_PT_options(MaterialButtonsPanel, Panel):
@@ -750,11 +749,11 @@ class MATERIAL_PT_options(MaterialButtonsPanel, Panel):
             sub.prop(mat, "offset_z")
             sub.active = mat.use_transparency and mat.transparency_method == 'Z_TRANSPARENCY'
         sub = col.column(align=True)
             sub.prop(mat, "offset_z")
             sub.active = mat.use_transparency and mat.transparency_method == 'Z_TRANSPARENCY'
         sub = col.column(align=True)
-        sub.label(text=_("Light Group:"))
+        sub.label(text="Light Group:")
         sub.prop(mat, "light_group", text="")
         row = sub.row()
         row.active = bool(mat.light_group)
         sub.prop(mat, "light_group", text="")
         row = sub.row()
         row.active = bool(mat.light_group)
-        row.prop(mat, "use_light_group_exclusive", text=_("Exclusive"))
+        row.prop(mat, "use_light_group_exclusive", text="Exclusive")
 
         col = split.column()
         col.prop(mat, "use_face_texture")
 
         col = split.column()
         col.prop(mat, "use_face_texture")
@@ -789,12 +788,12 @@ class MATERIAL_PT_shadow(MaterialButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.prop(mat, "use_shadows", text=_("Receive"))
-        col.prop(mat, "use_transparent_shadows", text=_("Receive Transparent"))
+        col.prop(mat, "use_shadows", text="Receive")
+        col.prop(mat, "use_transparent_shadows", text="Receive Transparent")
         if simple_material(base_mat):
         if simple_material(base_mat):
-            col.prop(mat, "use_cast_shadows_only", text=_("Cast Only"))
-            col.prop(mat, "shadow_cast_alpha", text=_("Casting Alpha"))
-        col.prop(mat, "use_only_shadow", text=_("Shadows Only"))
+            col.prop(mat, "use_cast_shadows_only", text="Cast Only")
+            col.prop(mat, "shadow_cast_alpha", text="Casting Alpha")
+        col.prop(mat, "use_only_shadow", text="Shadows Only")
         sub = col.column()
         sub.active = mat.use_only_shadow
         sub.prop(mat, "shadow_only_type", text="")
         sub = col.column()
         sub.active = mat.use_only_shadow
         sub.prop(mat, "shadow_only_type", text="")
@@ -804,11 +803,11 @@ class MATERIAL_PT_shadow(MaterialButtonsPanel, Panel):
             col.prop(mat, "use_cast_buffer_shadows")
         sub = col.column()
         sub.active = mat.use_cast_buffer_shadows
             col.prop(mat, "use_cast_buffer_shadows")
         sub = col.column()
         sub.active = mat.use_cast_buffer_shadows
-        sub.prop(mat, "shadow_buffer_bias", text=_("Buffer Bias"))
-        col.prop(mat, "use_ray_shadow_bias", text=_("Auto Ray Bias"))
+        sub.prop(mat, "shadow_buffer_bias", text="Buffer Bias")
+        col.prop(mat, "use_ray_shadow_bias", text="Auto Ray Bias")
         sub = col.column()
         sub.active = (not mat.use_ray_shadow_bias)
         sub = col.column()
         sub.active = (not mat.use_ray_shadow_bias)
-        sub.prop(mat, "shadow_ray_bias", text=_("Ray Bias"))
+        sub.prop(mat, "shadow_ray_bias", text="Ray Bias")
         if simple_material(base_mat):
             col.prop(mat, "use_cast_approximate")
 
         if simple_material(base_mat):
             col.prop(mat, "use_cast_approximate")
 
@@ -921,7 +920,7 @@ class MATERIAL_PT_volume_lighting(VolumeButtonsPanel, Panel):
             sub = col.column()
             sub.enabled = True
             sub.active = False
             sub = col.column()
             sub.enabled = True
             sub.active = False
-            sub.label(_("Light Cache Enabled"))
+            sub.label("Light Cache Enabled")
             col.prop(vol, "cache_resolution")
 
             sub = col.column(align=True)
             col.prop(vol, "cache_resolution")
 
             sub = col.column(align=True)
@@ -960,7 +959,7 @@ class MATERIAL_PT_volume_integration(VolumeButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Step Calculation:"))
+        col.label(text="Step Calculation:")
         col.prop(vol, "step_method", text="")
         col = col.column(align=True)
         col.prop(vol, "step_size")
         col.prop(vol, "step_method", text="")
         col = col.column(align=True)
         col.prop(vol, "step_size")
@@ -995,11 +994,11 @@ class MATERIAL_PT_volume_options(VolumeButtonsPanel, Panel):
         col.prop(mat, "use_mist")
 
         col = split.column()
         col.prop(mat, "use_mist")
 
         col = split.column()
-        col.label(text=_("Light Group:"))
+        col.label(text="Light Group:")
         col.prop(mat, "light_group", text="")
         row = col.row()
         row.active = bool(mat.light_group)
         col.prop(mat, "light_group", text="")
         row = col.row()
         row.active = bool(mat.light_group)
-        row.prop(mat, "use_light_group_exclusive", text=_("Exclusive"))
+        row.prop(mat, "use_light_group_exclusive", text="Exclusive")
 
 
 class MATERIAL_PT_custom_props(MaterialButtonsPanel, PropertyPanel, Panel):
 
 
 class MATERIAL_PT_custom_props(MaterialButtonsPanel, PropertyPanel, Panel):
index 89ffd4d3ed192ee9380bae6cc46980c284cbc9ac..0779debb1029821556cef84d0f92959519343a4e 100644 (file)
@@ -20,7 +20,6 @@
 import bpy
 from bpy.types import Panel
 from rna_prop_ui import PropertyPanel
 import bpy
 from bpy.types import Panel
 from rna_prop_ui import PropertyPanel
-from blf import gettext as _
 
 
 class ObjectButtonsPanel():
 
 
 class ObjectButtonsPanel():
@@ -56,14 +55,14 @@ class OBJECT_PT_transform(ObjectButtonsPanel, Panel):
 
         row.column().prop(ob, "location")
         if ob.rotation_mode == 'QUATERNION':
 
         row.column().prop(ob, "location")
         if ob.rotation_mode == 'QUATERNION':
-            row.column().prop(ob, "rotation_quaternion", text=_("Rotation"))
+            row.column().prop(ob, "rotation_quaternion", text="Rotation")
         elif ob.rotation_mode == 'AXIS_ANGLE':
         elif ob.rotation_mode == 'AXIS_ANGLE':
-            #row.column().label(text=_("Rotation"))
-            #row.column().prop(pchan, "rotation_angle", text=_("Angle"))
-            #row.column().prop(pchan, "rotation_axis", text=_("Axis"))
-            row.column().prop(ob, "rotation_axis_angle", text=_("Rotation"))
+            #row.column().label(text="Rotation")
+            #row.column().prop(pchan, "rotation_angle", text="Angle")
+            #row.column().prop(pchan, "rotation_axis", text="Axis")
+            row.column().prop(ob, "rotation_axis_angle", text="Rotation")
         else:
         else:
-            row.column().prop(ob, "rotation_euler", text=_("Rotation"))
+            row.column().prop(ob, "rotation_euler", text="Rotation")
 
         row.column().prop(ob, "scale")
 
 
         row.column().prop(ob, "scale")
 
@@ -83,15 +82,15 @@ class OBJECT_PT_delta_transform(ObjectButtonsPanel, Panel):
 
         row.column().prop(ob, "delta_location")
         if ob.rotation_mode == 'QUATERNION':
 
         row.column().prop(ob, "delta_location")
         if ob.rotation_mode == 'QUATERNION':
-            row.column().prop(ob, "delta_rotation_quaternion", text=_("Rotation"))
+            row.column().prop(ob, "delta_rotation_quaternion", text="Rotation")
         elif ob.rotation_mode == 'AXIS_ANGLE':
         elif ob.rotation_mode == 'AXIS_ANGLE':
-            #row.column().label(text=_("Rotation"))
-            #row.column().prop(pchan, "delta_rotation_angle", text=_("Angle"))
-            #row.column().prop(pchan, "delta_rotation_axis", text=_("Axis"))
-            #row.column().prop(ob, "delta_rotation_axis_angle", text=_("Rotation"))
-            row.column().label(text=_("Not for Axis-Angle"))
+            #row.column().label(text="Rotation")
+            #row.column().prop(pchan, "delta_rotation_angle", text="Angle")
+            #row.column().prop(pchan, "delta_rotation_axis", text="Axis")
+            #row.column().prop(ob, "delta_rotation_axis_angle", text="Rotation")
+            row.column().label(text="Not for Axis-Angle")
         else:
         else:
-            row.column().prop(ob, "delta_rotation_euler", text=_("Rotation"))
+            row.column().prop(ob, "delta_rotation_euler", text="Rotation")
 
         row.column().prop(ob, "delta_scale")
 
 
         row.column().prop(ob, "delta_scale")
 
@@ -108,18 +107,18 @@ class OBJECT_PT_transform_locks(ObjectButtonsPanel, Panel):
         row = layout.row()
 
         col = row.column()
         row = layout.row()
 
         col = row.column()
-        col.prop(ob, "lock_location", text=_("Location"))
+        col.prop(ob, "lock_location", text="Location")
 
         col = row.column()
         if ob.rotation_mode in {'QUATERNION', 'AXIS_ANGLE'}:
 
         col = row.column()
         if ob.rotation_mode in {'QUATERNION', 'AXIS_ANGLE'}:
-            col.prop(ob, "lock_rotations_4d", text=_("Rotation"))
+            col.prop(ob, "lock_rotations_4d", text="Rotation")
             if ob.lock_rotations_4d:
                 col.prop(ob, "lock_rotation_w", text="W")
             col.prop(ob, "lock_rotation", text="")
         else:
             if ob.lock_rotations_4d:
                 col.prop(ob, "lock_rotation_w", text="W")
             col.prop(ob, "lock_rotation", text="")
         else:
-            col.prop(ob, "lock_rotation", text=_("Rotation"))
+            col.prop(ob, "lock_rotation", text="Rotation")
 
 
-        row.column().prop(ob, "lock_scale", text=_("Scale"))
+        row.column().prop(ob, "lock_scale", text="Scale")
 
 
 class OBJECT_PT_relations(ObjectButtonsPanel, Panel):
 
 
 class OBJECT_PT_relations(ObjectButtonsPanel, Panel):
@@ -138,7 +137,7 @@ class OBJECT_PT_relations(ObjectButtonsPanel, Panel):
         col.prop(ob, "pass_index")
 
         col = split.column()
         col.prop(ob, "pass_index")
 
         col = split.column()
-        col.label(text=_("Parent:"))
+        col.label(text="Parent:")
         col.prop(ob, "parent", text="")
 
         sub = col.column()
         col.prop(ob, "parent", text="")
 
         sub = col.column()
@@ -158,7 +157,7 @@ class OBJECT_PT_groups(ObjectButtonsPanel, Panel):
         ob = context.object
 
         row = layout.row(align=True)
         ob = context.object
 
         row = layout.row(align=True)
-        row.operator("object.group_link", text=_("Add to Group"))
+        row.operator("object.group_link", text="Add to Group")
         row.operator("object.group_add", text="", icon='ZOOMIN')
 
         # XXX, this is bad practice, yes, I wrote it :( - campbell
         row.operator("object.group_add", text="", icon='ZOOMIN')
 
         # XXX, this is bad practice, yes, I wrote it :( - campbell
@@ -177,12 +176,12 @@ class OBJECT_PT_groups(ObjectButtonsPanel, Panel):
                 split = col.box().split()
 
                 col = split.column()
                 split = col.box().split()
 
                 col = split.column()
-                col.prop(group, "layers", text=_("Dupli"))
+                col.prop(group, "layers", text="Dupli")
 
                 col = split.column()
                 col.prop(group, "dupli_offset", text="")
 
 
                 col = split.column()
                 col.prop(group, "dupli_offset", text="")
 
-                prop = col.operator("wm.context_set_value", text=_("From Cursor"))
+                prop = col.operator("wm.context_set_value", text="From Cursor")
                 prop.data_path = "object.users_group[%d].dupli_offset" % index
                 prop.value = value
                 index += 1
                 prop.data_path = "object.users_group[%d].dupli_offset" % index
                 prop.value = value
                 index += 1
@@ -198,11 +197,11 @@ class OBJECT_PT_display(ObjectButtonsPanel, Panel):
 
         split = layout.split()
         col = split.column()
 
         split = layout.split()
         col = split.column()
-        col.prop(ob, "draw_type", text=_("Type"))
+        col.prop(ob, "draw_type", text="Type")
 
         col = split.column()
         row = col.row()
 
         col = split.column()
         row = col.row()
-        row.prop(ob, "show_bounds", text=_("Bounds"))
+        row.prop(ob, "show_bounds", text="Bounds")
         sub = row.row()
         sub.active = ob.show_bounds
         sub.prop(ob, "draw_bounds_type", text="")
         sub = row.row()
         sub.active = ob.show_bounds
         sub.prop(ob, "draw_bounds_type", text="")
@@ -210,16 +209,16 @@ class OBJECT_PT_display(ObjectButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.prop(ob, "show_name", text=_("Name"))
-        col.prop(ob, "show_axis", text=_("Axis"))
-        col.prop(ob, "show_wire", text=_("Wire"))
-        col.prop(ob, "color", text=_("Object Color"))
+        col.prop(ob, "show_name", text="Name")
+        col.prop(ob, "show_axis", text="Axis")
+        col.prop(ob, "show_wire", text="Wire")
+        col.prop(ob, "color", text="Object Color")
 
         col = split.column()
 
         col = split.column()
-        col.prop(ob, "show_texture_space", text=_("Texture Space"))
-        col.prop(ob, "show_x_ray", text=_("X-Ray"))
+        col.prop(ob, "show_texture_space", text="Texture Space")
+        col.prop(ob, "show_x_ray", text="X-Ray")
         if ob.type == 'MESH':
         if ob.type == 'MESH':
-            col.prop(ob, "show_transparent", text=_("Transparency"))
+            col.prop(ob, "show_transparent", text="Transparency")
 
 
 class OBJECT_PT_duplication(ObjectButtonsPanel, Panel):
 
 
 class OBJECT_PT_duplication(ObjectButtonsPanel, Panel):
@@ -236,26 +235,26 @@ class OBJECT_PT_duplication(ObjectButtonsPanel, Panel):
             split = layout.split()
 
             col = split.column(align=True)
             split = layout.split()
 
             col = split.column(align=True)
-            col.prop(ob, "dupli_frames_start", text=_("Start"))
-            col.prop(ob, "dupli_frames_end", text=_("End"))
+            col.prop(ob, "dupli_frames_start", text="Start")
+            col.prop(ob, "dupli_frames_end", text="End")
 
             col = split.column(align=True)
 
             col = split.column(align=True)
-            col.prop(ob, "dupli_frames_on", text=_("On"))
-            col.prop(ob, "dupli_frames_off", text=_("Off"))
+            col.prop(ob, "dupli_frames_on", text="On")
+            col.prop(ob, "dupli_frames_off", text="Off")
 
 
-            layout.prop(ob, "use_dupli_frames_speed", text=_("Speed"))
+            layout.prop(ob, "use_dupli_frames_speed", text="Speed")
 
         elif ob.dupli_type == 'VERTS':
 
         elif ob.dupli_type == 'VERTS':
-            layout.prop(ob, "use_dupli_vertices_rotation", text=_("Rotation"))
+            layout.prop(ob, "use_dupli_vertices_rotation", text="Rotation")
 
         elif ob.dupli_type == 'FACES':
 
             row = layout.row()
 
         elif ob.dupli_type == 'FACES':
 
             row = layout.row()
-            row.prop(ob, "use_dupli_faces_scale", text=_("Scale"))
-            row.prop(ob, "dupli_faces_scale", text=_("Inherit Scale"))
+            row.prop(ob, "use_dupli_faces_scale", text="Scale")
+            row.prop(ob, "dupli_faces_scale", text="Inherit Scale")
 
         elif ob.dupli_type == 'GROUP':
 
         elif ob.dupli_type == 'GROUP':
-            layout.prop(ob, "dupli_group", text=_("Group"))
+            layout.prop(ob, "dupli_group", text="Group")
 
 
 # XXX: the following options are all quite buggy, ancient hacks that should be dropped
 
 
 # XXX: the following options are all quite buggy, ancient hacks that should be dropped
@@ -272,21 +271,21 @@ class OBJECT_PT_animation(ObjectButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Time Offset:"))
-        col.prop(ob, "use_time_offset_edit", text=_("Edit"))
+        col.label(text="Time Offset:")
+        col.prop(ob, "use_time_offset_edit", text="Edit")
         row = col.row()
         row = col.row()
-        row.prop(ob, "use_time_offset_parent", text=_("Parent"))
+        row.prop(ob, "use_time_offset_parent", text="Parent")
         row.active = (ob.parent is not None)
         row = col.row()
         row.prop(ob, "use_slow_parent")
         row.active = (ob.parent is not None)
         row.active = (ob.parent is not None)
         row = col.row()
         row.prop(ob, "use_slow_parent")
         row.active = (ob.parent is not None)
-        col.prop(ob, "time_offset", text=_("Offset"))
+        col.prop(ob, "time_offset", text="Offset")
 
         # XXX: these are still used for a few curve-related tracking features
         col = split.column()
 
         # XXX: these are still used for a few curve-related tracking features
         col = split.column()
-        col.label(text=_("Tracking Axes:"))
-        col.prop(ob, "track_axis", text=_("Axis"))
-        col.prop(ob, "up_axis", text=_("Up Axis"))
+        col.label(text="Tracking Axes:")
+        col.prop(ob, "track_axis", text="Axis")
+        col.prop(ob, "up_axis", text="Up Axis")
 
 
 from bl_ui.properties_animviz import (
 
 
 from bl_ui.properties_animviz import (
@@ -313,8 +312,8 @@ class OBJECT_PT_motion_paths(MotionPathButtonsPanel, Panel):
         layout.separator()
 
         row = layout.row()
         layout.separator()
 
         row = layout.row()
-        row.operator("object.paths_calculate", text=_("Calculate Paths"))
-        row.operator("object.paths_clear", text=_("Clear Paths"))
+        row.operator("object.paths_calculate", text="Calculate Paths")
+        row.operator("object.paths_clear", text="Clear Paths")
 
 
 class OBJECT_PT_onion_skinning(OnionSkinButtonsPanel):  # , Panel): # inherit from panel when ready
 
 
 class OBJECT_PT_onion_skinning(OnionSkinButtonsPanel):  # , Panel): # inherit from panel when ready
index 7b48834eb791edc5a67dca730f924a35320b30fc..05fac2026a0da5de3e6b5db58d3324fb5aced20a 100644 (file)
@@ -19,7 +19,6 @@
 # <pep8 compliant>
 import bpy
 from bpy.types import Panel
 # <pep8 compliant>
 import bpy
 from bpy.types import Panel
-from blf import gettext as _
 
 
 class ConstraintButtonsPanel():
 
 
 class ConstraintButtonsPanel():
@@ -44,7 +43,7 @@ class ConstraintButtonsPanel():
 
             split = layout.split(percentage=0.2)
 
 
             split = layout.split(percentage=0.2)
 
-            split.label(text=_("Space:"))
+            split.label(text="Space:")
             row = split.row()
 
             if target:
             row = split.row()
 
             if target:
@@ -61,21 +60,21 @@ class ConstraintButtonsPanel():
 
         if con.target and subtargets:
             if con.target.type == 'ARMATURE':
 
         if con.target and subtargets:
             if con.target.type == 'ARMATURE':
-                layout.prop_search(con, "subtarget", con.target.data, "bones", text=_("Bone"))
+                layout.prop_search(con, "subtarget", con.target.data, "bones", text="Bone")
 
                 if hasattr(con, "head_tail"):
                     row = layout.row()
 
                 if hasattr(con, "head_tail"):
                     row = layout.row()
-                    row.label(text=_("Head/Tail:"))
+                    row.label(text="Head/Tail:")
                     row.prop(con, "head_tail", text="")
             elif con.target.type in {'MESH', 'LATTICE'}:
                     row.prop(con, "head_tail", text="")
             elif con.target.type in {'MESH', 'LATTICE'}:
-                layout.prop_search(con, "subtarget", con.target, "vertex_groups", text=_("Vertex Group"))
+                layout.prop_search(con, "subtarget", con.target, "vertex_groups", text="Vertex Group")
 
     def ik_template(self, layout, con):
         # only used for iTaSC
         layout.prop(con, "pole_target")
 
         if con.pole_target and con.pole_target.type == 'ARMATURE':
 
     def ik_template(self, layout, con):
         # only used for iTaSC
         layout.prop(con, "pole_target")
 
         if con.pole_target and con.pole_target.type == 'ARMATURE':
-            layout.prop_search(con, "pole_subtarget", con.pole_target.data, "bones", text=_("Bone"))
+            layout.prop_search(con, "pole_subtarget", con.pole_target.data, "bones", text="Bone")
 
         if con.pole_target:
             row = layout.row()
 
         if con.pole_target:
             row = layout.row()
@@ -97,19 +96,19 @@ class ConstraintButtonsPanel():
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Location:"))
+        col.label(text="Location:")
         col.prop(con, "use_location_x", text="X")
         col.prop(con, "use_location_y", text="Y")
         col.prop(con, "use_location_z", text="Z")
 
         col = split.column()
         col.prop(con, "use_location_x", text="X")
         col.prop(con, "use_location_y", text="Y")
         col.prop(con, "use_location_z", text="Z")
 
         col = split.column()
-        col.label(text=_("Rotation:"))
+        col.label(text="Rotation:")
         col.prop(con, "use_rotation_x", text="X")
         col.prop(con, "use_rotation_y", text="Y")
         col.prop(con, "use_rotation_z", text="Z")
 
         col = split.column()
         col.prop(con, "use_rotation_x", text="X")
         col.prop(con, "use_rotation_y", text="Y")
         col.prop(con, "use_rotation_z", text="Z")
 
         col = split.column()
-        col.label(text=_("Scale:"))
+        col.label(text="Scale:")
         col.prop(con, "use_scale_x", text="X")
         col.prop(con, "use_scale_y", text="Y")
         col.prop(con, "use_scale_z", text="Z")
         col.prop(con, "use_scale_x", text="X")
         col.prop(con, "use_scale_y", text="Y")
         col.prop(con, "use_scale_z", text="Z")
@@ -122,11 +121,11 @@ class ConstraintButtonsPanel():
         self.target_template(layout, con)
 
         row = layout.row()
         self.target_template(layout, con)
 
         row = layout.row()
-        row.label(text=_("To:"))
+        row.label(text="To:")
         row.prop(con, "track_axis", expand=True)
 
         row = layout.row()
         row.prop(con, "track_axis", expand=True)
 
         row = layout.row()
-        row.prop(con, "up_axis", text=_("Up"))
+        row.prop(con, "up_axis", text="Up")
         row.prop(con, "use_target_z")
 
         self.space_template(layout, con)
         row.prop(con, "use_target_z")
 
         self.space_template(layout, con)
@@ -141,7 +140,7 @@ class ConstraintButtonsPanel():
             layout.prop(con, "pole_target")
 
             if con.pole_target and con.pole_target.type == 'ARMATURE':
             layout.prop(con, "pole_target")
 
             if con.pole_target and con.pole_target.type == 'ARMATURE':
-                layout.prop_search(con, "pole_subtarget", con.pole_target.data, "bones", text=_("Bone"))
+                layout.prop_search(con, "pole_subtarget", con.pole_target.data, "bones", text="Bone")
 
             if con.pole_target:
                 row = layout.row()
 
             if con.pole_target:
                 row = layout.row()
@@ -153,11 +152,11 @@ class ConstraintButtonsPanel():
             col.prop(con, "iterations")
             col.prop(con, "chain_count")
 
             col.prop(con, "iterations")
             col.prop(con, "chain_count")
 
-            col.label(text=_("Weight:"))
-            col.prop(con, "weight", text=_("Position"), slider=True)
+            col.label(text="Weight:")
+            col.prop(con, "weight", text="Position", slider=True)
             sub = col.column()
             sub.active = con.use_rotation
             sub = col.column()
             sub.active = con.use_rotation
-            sub.prop(con, "orient_weight", text=_("Rotation"), slider=True)
+            sub.prop(con, "orient_weight", text="Rotation", slider=True)
 
             col = split.column()
             col.prop(con, "use_tail")
 
             col = split.column()
             col.prop(con, "use_tail")
@@ -171,16 +170,16 @@ class ConstraintButtonsPanel():
         self.ik_template(layout, con)
 
         row = layout.row()
         self.ik_template(layout, con)
 
         row = layout.row()
-        row.label(text=_("Axis Ref:"))
+        row.label(text="Axis Ref:")
         row.prop(con, "reference_axis", expand=True)
         split = layout.split(percentage=0.33)
         split.row().prop(con, "use_location")
         row = split.row()
         row.prop(con, "reference_axis", expand=True)
         split = layout.split(percentage=0.33)
         split.row().prop(con, "use_location")
         row = split.row()
-        row.prop(con, "weight", text=_("Weight"), slider=True)
+        row.prop(con, "weight", text="Weight", slider=True)
         row.active = con.use_location
         split = layout.split(percentage=0.33)
         row = split.row()
         row.active = con.use_location
         split = layout.split(percentage=0.33)
         row = split.row()
-        row.label(text=_("Lock:"))
+        row.label(text="Lock:")
         row = split.row()
         row.prop(con, "lock_location_x", text="X")
         row.prop(con, "lock_location_y", text="Y")
         row = split.row()
         row.prop(con, "lock_location_x", text="X")
         row.prop(con, "lock_location_y", text="Y")
@@ -190,11 +189,11 @@ class ConstraintButtonsPanel():
         split = layout.split(percentage=0.33)
         split.row().prop(con, "use_rotation")
         row = split.row()
         split = layout.split(percentage=0.33)
         split.row().prop(con, "use_rotation")
         row = split.row()
-        row.prop(con, "orient_weight", text=_("Weight"), slider=True)
+        row.prop(con, "orient_weight", text="Weight", slider=True)
         row.active = con.use_rotation
         split = layout.split(percentage=0.33)
         row = split.row()
         row.active = con.use_rotation
         split = layout.split(percentage=0.33)
         row = split.row()
-        row.label(text=_("Lock:"))
+        row.label(text="Lock:")
         row = split.row()
         row.prop(con, "lock_rotation_x", text="X")
         row.prop(con, "lock_rotation_y", text="Y")
         row = split.row()
         row.prop(con, "lock_rotation_x", text="X")
         row.prop(con, "lock_rotation_y", text="Y")
@@ -208,8 +207,8 @@ class ConstraintButtonsPanel():
         layout.prop(con, "limit_mode")
 
         row = layout.row()
         layout.prop(con, "limit_mode")
 
         row = layout.row()
-        row.prop(con, "weight", text=_("Weight"), slider=True)
-        row.prop(con, "distance", text=_("Distance"), slider=True)
+        row.prop(con, "weight", text="Weight", slider=True)
+        row.prop(con, "distance", text="Distance", slider=True)
 
     def FOLLOW_PATH(self, context, layout, con):
         self.target_template(layout, con)
 
     def FOLLOW_PATH(self, context, layout, con):
         self.target_template(layout, con)
@@ -223,16 +222,16 @@ class ConstraintButtonsPanel():
         col = split.column()
         col.prop(con, "use_fixed_location")
         if con.use_fixed_location:
         col = split.column()
         col.prop(con, "use_fixed_location")
         if con.use_fixed_location:
-            col.prop(con, "offset_factor", text=_("Offset"))
+            col.prop(con, "offset_factor", text="Offset")
         else:
             col.prop(con, "offset")
 
         row = layout.row()
         else:
             col.prop(con, "offset")
 
         row = layout.row()
-        row.label(text=_("Forward:"))
+        row.label(text="Forward:")
         row.prop(con, "forward_axis", expand=True)
 
         row = layout.row()
         row.prop(con, "forward_axis", expand=True)
 
         row = layout.row()
-        row.prop(con, "up_axis", text=_("Up"))
+        row.prop(con, "up_axis", text="Up")
         row.label()
 
     def LIMIT_ROTATION(self, context, layout, con):
         row.label()
 
     def LIMIT_ROTATION(self, context, layout, con):
@@ -242,27 +241,27 @@ class ConstraintButtonsPanel():
         col.prop(con, "use_limit_x")
         sub = col.column()
         sub.active = con.use_limit_x
         col.prop(con, "use_limit_x")
         sub = col.column()
         sub.active = con.use_limit_x
-        sub.prop(con, "min_x", text=_("Min"))
-        sub.prop(con, "max_x", text=_("Max"))
+        sub.prop(con, "min_x", text="Min")
+        sub.prop(con, "max_x", text="Max")
 
         col = split.column(align=True)
         col.prop(con, "use_limit_y")
         sub = col.column()
         sub.active = con.use_limit_y
 
         col = split.column(align=True)
         col.prop(con, "use_limit_y")
         sub = col.column()
         sub.active = con.use_limit_y
-        sub.prop(con, "min_y", text=_("Min"))
-        sub.prop(con, "max_y", text=_("Max"))
+        sub.prop(con, "min_y", text="Min")
+        sub.prop(con, "max_y", text="Max")
 
         col = split.column(align=True)
         col.prop(con, "use_limit_z")
         sub = col.column()
         sub.active = con.use_limit_z
 
         col = split.column(align=True)
         col.prop(con, "use_limit_z")
         sub = col.column()
         sub.active = con.use_limit_z
-        sub.prop(con, "min_z", text=_("Min"))
-        sub.prop(con, "max_z", text=_("Max"))
+        sub.prop(con, "min_z", text="Min")
+        sub.prop(con, "max_z", text="Max")
 
         layout.prop(con, "use_transform_limit")
 
         row = layout.row()
 
         layout.prop(con, "use_transform_limit")
 
         row = layout.row()
-        row.label(text=_("Convert:"))
+        row.label(text="Convert:")
         row.prop(con, "owner_space", text="")
 
     def LIMIT_LOCATION(self, context, layout, con):
         row.prop(con, "owner_space", text="")
 
     def LIMIT_LOCATION(self, context, layout, con):
@@ -303,7 +302,7 @@ class ConstraintButtonsPanel():
         row.label()
 
         row = layout.row()
         row.label()
 
         row = layout.row()
-        row.label(text=_("Convert:"))
+        row.label(text="Convert:")
         row.prop(con, "owner_space", text="")
 
     def LIMIT_SCALE(self, context, layout, con):
         row.prop(con, "owner_space", text="")
 
     def LIMIT_SCALE(self, context, layout, con):
@@ -344,7 +343,7 @@ class ConstraintButtonsPanel():
         row.label()
 
         row = layout.row()
         row.label()
 
         row = layout.row()
-        row.label(text=_("Convert:"))
+        row.label(text="Convert:")
         row.prop(con, "owner_space", text="")
 
     def COPY_ROTATION(self, context, layout, con):
         row.prop(con, "owner_space", text="")
 
     def COPY_ROTATION(self, context, layout, con):
@@ -356,19 +355,19 @@ class ConstraintButtonsPanel():
         col.prop(con, "use_x", text="X")
         sub = col.column()
         sub.active = con.use_x
         col.prop(con, "use_x", text="X")
         sub = col.column()
         sub.active = con.use_x
-        sub.prop(con, "invert_x", text=_("Invert"))
+        sub.prop(con, "invert_x", text="Invert")
 
         col = split.column()
         col.prop(con, "use_y", text="Y")
         sub = col.column()
         sub.active = con.use_y
 
         col = split.column()
         col.prop(con, "use_y", text="Y")
         sub = col.column()
         sub.active = con.use_y
-        sub.prop(con, "invert_y", text=_("Invert"))
+        sub.prop(con, "invert_y", text="Invert")
 
         col = split.column()
         col.prop(con, "use_z", text="Z")
         sub = col.column()
         sub.active = con.use_z
 
         col = split.column()
         col.prop(con, "use_z", text="Z")
         sub = col.column()
         sub.active = con.use_z
-        sub.prop(con, "invert_z", text=_("Invert"))
+        sub.prop(con, "invert_z", text="Invert")
 
         layout.prop(con, "use_offset")
 
 
         layout.prop(con, "use_offset")
 
@@ -383,19 +382,19 @@ class ConstraintButtonsPanel():
         col.prop(con, "use_x", text="X")
         sub = col.column()
         sub.active = con.use_x
         col.prop(con, "use_x", text="X")
         sub = col.column()
         sub.active = con.use_x
-        sub.prop(con, "invert_x", text=_("Invert"))
+        sub.prop(con, "invert_x", text="Invert")
 
         col = split.column()
         col.prop(con, "use_y", text="Y")
         sub = col.column()
         sub.active = con.use_y
 
         col = split.column()
         col.prop(con, "use_y", text="Y")
         sub = col.column()
         sub.active = con.use_y
-        sub.prop(con, "invert_y", text=_("Invert"))
+        sub.prop(con, "invert_y", text="Invert")
 
         col = split.column()
         col.prop(con, "use_z", text="Z")
         sub = col.column()
         sub.active = con.use_z
 
         col = split.column()
         col.prop(con, "use_z", text="Z")
         sub = col.column()
         sub.active = con.use_z
-        sub.prop(con, "invert_z", text=_("Invert"))
+        sub.prop(con, "invert_z", text="Invert")
 
         layout.prop(con, "use_offset")
 
 
         layout.prop(con, "use_offset")
 
@@ -416,7 +415,7 @@ class ConstraintButtonsPanel():
     def MAINTAIN_VOLUME(self, context, layout, con):
 
         row = layout.row()
     def MAINTAIN_VOLUME(self, context, layout, con):
 
         row = layout.row()
-        row.label(text=_("Free:"))
+        row.label(text="Free:")
         row.prop(con, "free_axis", expand=True)
 
         layout.prop(con, "volume")
         row.prop(con, "free_axis", expand=True)
 
         layout.prop(con, "volume")
@@ -440,28 +439,28 @@ class ConstraintButtonsPanel():
         split = layout.split()
 
         col = split.column(align=True)
         split = layout.split()
 
         col = split.column(align=True)
-        col.label(text=_("Action Length:"))
-        col.prop(con, "frame_start", text=_("Start"))
-        col.prop(con, "frame_end", text=_("End"))
+        col.label(text="Action Length:")
+        col.prop(con, "frame_start", text="Start")
+        col.prop(con, "frame_end", text="End")
 
         col = split.column(align=True)
 
         col = split.column(align=True)
-        col.label(text=_("Target Range:"))
-        col.prop(con, "min", text=_("Min"))
-        col.prop(con, "max", text=_("Max"))
+        col.label(text="Target Range:")
+        col.prop(con, "min", text="Min")
+        col.prop(con, "max", text="Max")
 
         row = layout.row()
 
         row = layout.row()
-        row.label(text=_("Convert:"))
+        row.label(text="Convert:")
         row.prop(con, "target_space", text="")
 
     def LOCKED_TRACK(self, context, layout, con):
         self.target_template(layout, con)
 
         row = layout.row()
         row.prop(con, "target_space", text="")
 
     def LOCKED_TRACK(self, context, layout, con):
         self.target_template(layout, con)
 
         row = layout.row()
-        row.label(text=_("To:"))
+        row.label(text="To:")
         row.prop(con, "track_axis", expand=True)
 
         row = layout.row()
         row.prop(con, "track_axis", expand=True)
 
         row = layout.row()
-        row.label(text=_("Lock:"))
+        row.label(text="Lock:")
         row.prop(con, "lock_axis", expand=True)
 
     def LIMIT_DISTANCE(self, context, layout, con):
         row.prop(con, "lock_axis", expand=True)
 
     def LIMIT_DISTANCE(self, context, layout, con):
@@ -472,7 +471,7 @@ class ConstraintButtonsPanel():
         col.operator("constraint.limitdistance_reset")
 
         row = layout.row()
         col.operator("constraint.limitdistance_reset")
 
         row = layout.row()
-        row.label(text=_("Clamp Region:"))
+        row.label(text="Clamp Region:")
         row.prop(con, "limit_mode", text="")
 
         row = layout.row()
         row.prop(con, "limit_mode", text="")
 
         row = layout.row()
@@ -483,16 +482,16 @@ class ConstraintButtonsPanel():
         self.target_template(layout, con)
 
         row = layout.row()
         self.target_template(layout, con)
 
         row = layout.row()
-        row.prop(con, "rest_length", text=_("Rest Length"))
-        row.operator("constraint.stretchto_reset", text=_("Reset"))
+        row.prop(con, "rest_length", text="Rest Length")
+        row.operator("constraint.stretchto_reset", text="Reset")
 
 
-        layout.prop(con, "bulge", text=_("Volume Variation"))
+        layout.prop(con, "bulge", text="Volume Variation")
 
         row = layout.row()
 
         row = layout.row()
-        row.label(text=_("Volume:"))
+        row.label(text="Volume:")
         row.prop(con, "volume", expand=True)
 
         row.prop(con, "volume", expand=True)
 
-        row.label(text=_("Plane:"))
+        row.label(text="Plane:")
         row.prop(con, "keep_axis", expand=True)
 
     def FLOOR(self, context, layout, con):
         row.prop(con, "keep_axis", expand=True)
 
     def FLOOR(self, context, layout, con):
@@ -505,7 +504,7 @@ class ConstraintButtonsPanel():
         layout.prop(con, "offset")
 
         row = layout.row()
         layout.prop(con, "offset")
 
         row = layout.row()
-        row.label(text=_("Min/Max:"))
+        row.label(text="Min/Max:")
         row.prop(con, "floor_location", expand=True)
 
         self.space_template(layout, con)
         row.prop(con, "floor_location", expand=True)
 
         self.space_template(layout, con)
@@ -517,113 +516,113 @@ class ConstraintButtonsPanel():
         layout.prop(con, "child")
 
         row = layout.row()
         layout.prop(con, "child")
 
         row = layout.row()
-        row.prop(con, "use_linked_collision", text=_("Linked Collision"))
-        row.prop(con, "show_pivot", text=_("Display Pivot"))
+        row.prop(con, "use_linked_collision", text="Linked Collision")
+        row.prop(con, "show_pivot", text="Display Pivot")
 
         split = layout.split()
 
         col = split.column(align=True)
 
         split = layout.split()
 
         col = split.column(align=True)
-        col.label(text=_("Pivot:"))
+        col.label(text="Pivot:")
         col.prop(con, "pivot_x", text="X")
         col.prop(con, "pivot_y", text="Y")
         col.prop(con, "pivot_z", text="Z")
 
         col = split.column(align=True)
         col.prop(con, "pivot_x", text="X")
         col.prop(con, "pivot_y", text="Y")
         col.prop(con, "pivot_z", text="Z")
 
         col = split.column(align=True)
-        col.label(text=_("Axis:"))
+        col.label(text="Axis:")
         col.prop(con, "axis_x", text="X")
         col.prop(con, "axis_y", text="Y")
         col.prop(con, "axis_z", text="Z")
 
         if con.pivot_type == 'CONE_TWIST':
         col.prop(con, "axis_x", text="X")
         col.prop(con, "axis_y", text="Y")
         col.prop(con, "axis_z", text="Z")
 
         if con.pivot_type == 'CONE_TWIST':
-            layout.label(text=_("Limits:"))
+            layout.label(text="Limits:")
             split = layout.split()
 
             col = split.column()
             split = layout.split()
 
             col = split.column()
-            col.prop(con, "use_angular_limit_x", text=_("Angle X"))
+            col.prop(con, "use_angular_limit_x", text="Angle X")
             sub = col.column()
             sub.active = con.use_angular_limit_x
             sub.prop(con, "limit_angle_max_x", text="")
 
             col = split.column()
             sub = col.column()
             sub.active = con.use_angular_limit_x
             sub.prop(con, "limit_angle_max_x", text="")
 
             col = split.column()
-            col.prop(con, "use_angular_limit_y", text=_("Angle Y"))
+            col.prop(con, "use_angular_limit_y", text="Angle Y")
             sub = col.column()
             sub.active = con.use_angular_limit_y
             sub.prop(con, "limit_angle_max_y", text="")
 
             col = split.column()
             sub = col.column()
             sub.active = con.use_angular_limit_y
             sub.prop(con, "limit_angle_max_y", text="")
 
             col = split.column()
-            col.prop(con, "use_angular_limit_z", text=_("Angle Z"))
+            col.prop(con, "use_angular_limit_z", text="Angle Z")
             sub = col.column()
             sub.active = con.use_angular_limit_z
             sub.prop(con, "limit_angle_max_z", text="")
 
         elif con.pivot_type == 'GENERIC_6_DOF':
             sub = col.column()
             sub.active = con.use_angular_limit_z
             sub.prop(con, "limit_angle_max_z", text="")
 
         elif con.pivot_type == 'GENERIC_6_DOF':
-            layout.label(text=_("Limits:"))
+            layout.label(text="Limits:")
             split = layout.split()
 
             col = split.column(align=True)
             col.prop(con, "use_limit_x", text="X")
             sub = col.column()
             sub.active = con.use_limit_x
             split = layout.split()
 
             col = split.column(align=True)
             col.prop(con, "use_limit_x", text="X")
             sub = col.column()
             sub.active = con.use_limit_x
-            sub.prop(con, "limit_min_x", text=_("Min"))
-            sub.prop(con, "limit_max_x", text=_("Max"))
+            sub.prop(con, "limit_min_x", text="Min")
+            sub.prop(con, "limit_max_x", text="Max")
 
             col = split.column(align=True)
             col.prop(con, "use_limit_y", text="Y")
             sub = col.column()
             sub.active = con.use_limit_y
 
             col = split.column(align=True)
             col.prop(con, "use_limit_y", text="Y")
             sub = col.column()
             sub.active = con.use_limit_y
-            sub.prop(con, "limit_min_y", text=_("Min"))
-            sub.prop(con, "limit_max_y", text=_("Max"))
+            sub.prop(con, "limit_min_y", text="Min")
+            sub.prop(con, "limit_max_y", text="Max")
 
             col = split.column(align=True)
             col.prop(con, "use_limit_z", text="Z")
             sub = col.column()
             sub.active = con.use_limit_z
 
             col = split.column(align=True)
             col.prop(con, "use_limit_z", text="Z")
             sub = col.column()
             sub.active = con.use_limit_z
-            sub.prop(con, "limit_min_z", text=_("Min"))
-            sub.prop(con, "limit_max_z", text=_("Max"))
+            sub.prop(con, "limit_min_z", text="Min")
+            sub.prop(con, "limit_max_z", text="Max")
 
             split = layout.split()
 
             col = split.column(align=True)
 
             split = layout.split()
 
             col = split.column(align=True)
-            col.prop(con, "use_angular_limit_x", text=_("Angle X"))
+            col.prop(con, "use_angular_limit_x", text="Angle X")
             sub = col.column()
             sub.active = con.use_angular_limit_x
             sub = col.column()
             sub.active = con.use_angular_limit_x
-            sub.prop(con, "limit_angle_min_x", text=_("Min"))
-            sub.prop(con, "limit_angle_max_x", text=_("Max"))
+            sub.prop(con, "limit_angle_min_x", text="Min")
+            sub.prop(con, "limit_angle_max_x", text="Max")
 
             col = split.column(align=True)
 
             col = split.column(align=True)
-            col.prop(con, "use_angular_limit_y", text=_("Angle Y"))
+            col.prop(con, "use_angular_limit_y", text="Angle Y")
             sub = col.column()
             sub.active = con.use_angular_limit_y
             sub = col.column()
             sub.active = con.use_angular_limit_y
-            sub.prop(con, "limit_angle_min_y", text=_("Min"))
-            sub.prop(con, "limit_angle_max_y", text=_("Max"))
+            sub.prop(con, "limit_angle_min_y", text="Min")
+            sub.prop(con, "limit_angle_max_y", text="Max")
 
             col = split.column(align=True)
 
             col = split.column(align=True)
-            col.prop(con, "use_angular_limit_z", text=_("Angle Z"))
+            col.prop(con, "use_angular_limit_z", text="Angle Z")
             sub = col.column()
             sub.active = con.use_angular_limit_z
             sub = col.column()
             sub.active = con.use_angular_limit_z
-            sub.prop(con, "limit_angle_min_z", text=_("Min"))
-            sub.prop(con, "limit_angle_max_z", text=_("Max"))
+            sub.prop(con, "limit_angle_min_z", text="Min")
+            sub.prop(con, "limit_angle_max_z", text="Max")
 
         elif con.pivot_type == 'HINGE':
 
         elif con.pivot_type == 'HINGE':
-            layout.label(text=_("Limits:"))
+            layout.label(text="Limits:")
             split = layout.split()
 
             row = split.row(align=True)
             col = row.column()
             split = layout.split()
 
             row = split.row(align=True)
             col = row.column()
-            col.prop(con, "use_angular_limit_x", text=_("Angle X"))
+            col.prop(con, "use_angular_limit_x", text="Angle X")
 
             col = row.column()
             col.active = con.use_angular_limit_x
 
             col = row.column()
             col.active = con.use_angular_limit_x
-            col.prop(con, "limit_angle_min_x", text=_("Min"))
+            col.prop(con, "limit_angle_min_x", text="Min")
             col = row.column()
             col.active = con.use_angular_limit_x
             col = row.column()
             col.active = con.use_angular_limit_x
-            col.prop(con, "limit_angle_max_x", text=_("Max"))
+            col.prop(con, "limit_angle_max_x", text="Max")
 
     def CLAMP_TO(self, context, layout, con):
         self.target_template(layout, con)
 
         row = layout.row()
 
     def CLAMP_TO(self, context, layout, con):
         self.target_template(layout, con)
 
         row = layout.row()
-        row.label(text=_("Main Axis:"))
+        row.label(text="Main Axis:")
         row.prop(con, "main_axis", expand=True)
 
         layout.prop(con, "use_cyclic")
         row.prop(con, "main_axis", expand=True)
 
         layout.prop(con, "use_cyclic")
@@ -631,32 +630,32 @@ class ConstraintButtonsPanel():
     def TRANSFORM(self, context, layout, con):
         self.target_template(layout, con)
 
     def TRANSFORM(self, context, layout, con):
         self.target_template(layout, con)
 
-        layout.prop(con, "use_motion_extrapolate", text=_("Extrapolate"))
+        layout.prop(con, "use_motion_extrapolate", text="Extrapolate")
 
         col = layout.column()
 
         col = layout.column()
-        col.row().label(text=_("Source:"))
+        col.row().label(text="Source:")
         col.row().prop(con, "map_from", expand=True)
 
         split = layout.split()
 
         sub = split.column(align=True)
         sub.label(text="X:")
         col.row().prop(con, "map_from", expand=True)
 
         split = layout.split()
 
         sub = split.column(align=True)
         sub.label(text="X:")
-        sub.prop(con, "from_min_x", text=_("Min"))
-        sub.prop(con, "from_max_x", text=_("Max"))
+        sub.prop(con, "from_min_x", text="Min")
+        sub.prop(con, "from_max_x", text="Max")
 
         sub = split.column(align=True)
         sub.label(text="Y:")
 
         sub = split.column(align=True)
         sub.label(text="Y:")
-        sub.prop(con, "from_min_y", text=_("Min"))
-        sub.prop(con, "from_max_y", text=_("Max"))
+        sub.prop(con, "from_min_y", text="Min")
+        sub.prop(con, "from_max_y", text="Max")
 
         sub = split.column(align=True)
         sub.label(text="Z:")
 
         sub = split.column(align=True)
         sub.label(text="Z:")
-        sub.prop(con, "from_min_z", text=_("Min"))
-        sub.prop(con, "from_max_z", text=_("Max"))
+        sub.prop(con, "from_min_z", text="Min")
+        sub.prop(con, "from_max_z", text="Max")
 
         col = layout.column()
         row = col.row()
 
         col = layout.column()
         row = col.row()
-        row.label(text=_("Source to Destination Mapping:"))
+        row.label(text="Source to Destination Mapping:")
 
         # note: chr(187) is the ASCII arrow ( >> ). Blender Text Editor can't
         # open it. Thus we are using the hardcoded value instead.
 
         # note: chr(187) is the ASCII arrow ( >> ). Blender Text Editor can't
         # open it. Thus we are using the hardcoded value instead.
@@ -675,7 +674,7 @@ class ConstraintButtonsPanel():
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Destination:"))
+        col.label(text="Destination:")
         col.row().prop(con, "map_to", expand=True)
 
         split = layout.split()
         col.row().prop(con, "map_to", expand=True)
 
         split = layout.split()
@@ -684,22 +683,22 @@ class ConstraintButtonsPanel():
         col.label(text="X:")
 
         sub = col.column(align=True)
         col.label(text="X:")
 
         sub = col.column(align=True)
-        sub.prop(con, "to_min_x", text=_("Min"))
-        sub.prop(con, "to_max_x", text=_("Max"))
+        sub.prop(con, "to_min_x", text="Min")
+        sub.prop(con, "to_max_x", text="Max")
 
         col = split.column()
         col.label(text="Y:")
 
         sub = col.column(align=True)
 
         col = split.column()
         col.label(text="Y:")
 
         sub = col.column(align=True)
-        sub.prop(con, "to_min_y", text=_("Min"))
-        sub.prop(con, "to_max_y", text=_("Max"))
+        sub.prop(con, "to_min_y", text="Min")
+        sub.prop(con, "to_max_y", text="Max")
 
         col = split.column()
         col.label(text="Z:")
 
         sub = col.column(align=True)
 
         col = split.column()
         col.label(text="Z:")
 
         sub = col.column(align=True)
-        sub.prop(con, "to_min_z", text=_("Min"))
-        sub.prop(con, "to_max_z", text=_("Max"))
+        sub.prop(con, "to_min_z", text="Min")
+        sub.prop(con, "to_max_z", text="Max")
 
         self.space_template(layout, con)
 
 
         self.space_template(layout, con)
 
@@ -719,20 +718,20 @@ class ConstraintButtonsPanel():
         self.target_template(layout, con)
 
         row = layout.row()
         self.target_template(layout, con)
 
         row = layout.row()
-        row.label(text=_("To:"))
+        row.label(text="To:")
         row.prop(con, "track_axis", expand=True)
 
     def SPLINE_IK(self, context, layout, con):
         self.target_template(layout, con)
 
         col = layout.column()
         row.prop(con, "track_axis", expand=True)
 
     def SPLINE_IK(self, context, layout, con):
         self.target_template(layout, con)
 
         col = layout.column()
-        col.label(text=_("Spline Fitting:"))
+        col.label(text="Spline Fitting:")
         col.prop(con, "chain_count")
         col.prop(con, "use_even_divisions")
         col.prop(con, "use_chain_offset")
 
         col = layout.column()
         col.prop(con, "chain_count")
         col.prop(con, "use_even_divisions")
         col.prop(con, "use_chain_offset")
 
         col = layout.column()
-        col.label(text=_("Chain Scaling:"))
+        col.label(text="Chain Scaling:")
         col.prop(con, "use_y_stretch")
         col.prop(con, "xz_scale_mode")
         col.prop(con, "use_curve_radius")
         col.prop(con, "use_y_stretch")
         col.prop(con, "xz_scale_mode")
         col.prop(con, "use_curve_radius")
@@ -742,20 +741,20 @@ class ConstraintButtonsPanel():
 
         if con.target:
             col = layout.column()
 
         if con.target:
             col = layout.column()
-            col.prop(con, "offset", text=_("Pivot Offset"))
+            col.prop(con, "offset", text="Pivot Offset")
         else:
             col = layout.column()
             col.prop(con, "use_relative_location")
             if con.use_relative_location:
         else:
             col = layout.column()
             col.prop(con, "use_relative_location")
             if con.use_relative_location:
-                col.prop(con, "offset", text=_("Relative Pivot Point"))
+                col.prop(con, "offset", text="Relative Pivot Point")
             else:
             else:
-                col.prop(con, "offset", text=_("Absolute Pivot Point"))
+                col.prop(con, "offset", text="Absolute Pivot Point")
 
         col = layout.column()
 
         col = layout.column()
-        col.prop(con, "rotation_range", text=_("Pivot When"))
+        col.prop(con, "rotation_range", text="Pivot When")
 
     def SCRIPT(self, context, layout, con):
 
     def SCRIPT(self, context, layout, con):
-        layout.label(_("Blender 2.5 has no py-constraints"))
+        layout.label("Blender 2.5 has no py-constraints")
 
 
 class OBJECT_PT_constraints(ConstraintButtonsPanel, Panel):
 
 
 class OBJECT_PT_constraints(ConstraintButtonsPanel, Panel):
@@ -774,7 +773,7 @@ class OBJECT_PT_constraints(ConstraintButtonsPanel, Panel):
         if ob.mode == 'POSE':
             box = layout.box()
             box.alert = True
         if ob.mode == 'POSE':
             box = layout.box()
             box.alert = True
-            box.label(icon='INFO', text=_("See Bone Constraints tab to Add Constraints to active bone"))
+            box.label(icon='INFO', text="See Bone Constraints tab to Add Constraints to active bone")
         else:
             layout.operator_menu_enum("object.constraint_add", "type")
 
         else:
             layout.operator_menu_enum("object.constraint_add", "type")
 
index 6424f6dca44ca8f294408fac7654112b6784512a..d4378b0d094cd383855112d7e53b73136d80ffa3 100644 (file)
@@ -20,7 +20,6 @@
 import bpy
 from bpy.types import Panel
 from rna_prop_ui import PropertyPanel
 import bpy
 from bpy.types import Panel
 from rna_prop_ui import PropertyPanel
-from blf import gettext as _
 
 from bl_ui.properties_physics_common import (
     point_cache_ui,
 
 from bl_ui.properties_physics_common import (
     point_cache_ui,
@@ -109,17 +108,17 @@ class PARTICLE_PT_context_particles(ParticleButtonsPanel, Panel):
             layout.template_ID(context.space_data, "pin_id")
 
             if part.is_fluid:
             layout.template_ID(context.space_data, "pin_id")
 
             if part.is_fluid:
-                layout.label(text=_("Settings used for fluid"))
+                layout.label(text="Settings used for fluid")
                 return
 
                 return
 
-            layout.prop(part, "type", text=_("Type"))
+            layout.prop(part, "type", text="Type")
 
         elif not psys.settings:
             split = layout.split(percentage=0.32)
 
             col = split.column()
 
         elif not psys.settings:
             split = layout.split(percentage=0.32)
 
             col = split.column()
-            col.label(text=_("Name:"))
-            col.label(text=_("Settings:"))
+            col.label(text="Name:")
+            col.label(text="Settings:")
 
             col = split.column()
             col.prop(psys, "name", text="")
 
             col = split.column()
             col.prop(psys, "name", text="")
@@ -129,10 +128,10 @@ class PARTICLE_PT_context_particles(ParticleButtonsPanel, Panel):
 
             split = layout.split(percentage=0.32)
             col = split.column()
 
             split = layout.split(percentage=0.32)
             col = split.column()
-            col.label(text=_("Name:"))
+            col.label(text="Name:")
             if part.is_fluid == False:
             if part.is_fluid == False:
-                col.label(text=_("Settings:"))
-                col.label(text=_("Type:"))
+                col.label(text="Settings:")
+                col.label(text="Type:")
 
             col = split.column()
             col.prop(psys, "name", text="")
 
             col = split.column()
             col.prop(psys, "name", text="")
@@ -142,8 +141,8 @@ class PARTICLE_PT_context_particles(ParticleButtonsPanel, Panel):
                 row.template_ID(psys, "settings", new="particle.new")
 
             #row = layout.row()
                 row.template_ID(psys, "settings", new="particle.new")
 
             #row = layout.row()
-            #row.label(text=_("Viewport"))
-            #row.label(text=_("Render"))
+            #row.label(text="Viewport")
+            #row.label(text="Render")
 
             if part.is_fluid:
                 layout.label(text=str(part.count) + " fluid particles for this frame")
 
             if part.is_fluid:
                 layout.label(text=str(part.count) + " fluid particles for this frame")
@@ -158,7 +157,7 @@ class PARTICLE_PT_context_particles(ParticleButtonsPanel, Panel):
             split = layout.split(percentage=0.65)
             if part.type == 'HAIR':
                 if psys is not None and psys.is_edited:
             split = layout.split(percentage=0.65)
             if part.type == 'HAIR':
                 if psys is not None and psys.is_edited:
-                    split.operator("particle.edited_clear", text=_("Free Edit"))
+                    split.operator("particle.edited_clear", text="Free Edit")
                 else:
                     row = split.row()
                     row.enabled = particle_panel_enabled(context, psys)
                 else:
                     row = split.row()
                     row.enabled = particle_panel_enabled(context, psys)
@@ -175,7 +174,7 @@ class PARTICLE_PT_context_particles(ParticleButtonsPanel, Panel):
             elif psys is not None and part.type == 'REACTOR':
                 split.enabled = particle_panel_enabled(context, psys)
                 split.prop(psys, "reactor_target_object")
             elif psys is not None and part.type == 'REACTOR':
                 split.enabled = particle_panel_enabled(context, psys)
                 split.prop(psys, "reactor_target_object")
-                split.prop(psys, "reactor_target_particle_system", text=_("Particle System"))
+                split.prop(psys, "reactor_target_particle_system", text="Particle System")
 
 
 class PARTICLE_PT_emission(ParticleButtonsPanel, Panel):
 
 
 class PARTICLE_PT_emission(ParticleButtonsPanel, Panel):
@@ -222,7 +221,7 @@ class PARTICLE_PT_emission(ParticleButtonsPanel, Panel):
             col.prop(part, "lifetime")
             col.prop(part, "lifetime_random", slider=True)
 
             col.prop(part, "lifetime")
             col.prop(part, "lifetime_random", slider=True)
 
-        layout.label(text=_("Emit From:"))
+        layout.label(text="Emit From:")
         layout.prop(part, "emit_from", expand=True)
 
         row = layout.row()
         layout.prop(part, "emit_from", expand=True)
 
         row = layout.row()
@@ -240,11 +239,11 @@ class PARTICLE_PT_emission(ParticleButtonsPanel, Panel):
 
             row = layout.row()
             if part.distribution == 'JIT':
 
             row = layout.row()
             if part.distribution == 'JIT':
-                row.prop(part, "userjit", text=_("Particles/Face"))
-                row.prop(part, "jitter_factor", text=_("Jittering Amount"), slider=True)
+                row.prop(part, "userjit", text="Particles/Face")
+                row.prop(part, "jitter_factor", text="Jittering Amount", slider=True)
             elif part.distribution == 'GRID':
                 row.prop(part, "grid_resolution")
             elif part.distribution == 'GRID':
                 row.prop(part, "grid_resolution")
-                row.prop(part, "grid_random", text=_("Random"), slider=True)
+                row.prop(part, "grid_random", text="Random", slider=True)
 
 
 class PARTICLE_PT_hair_dynamics(ParticleButtonsPanel, Panel):
 
 
 class PARTICLE_PT_hair_dynamics(ParticleButtonsPanel, Panel):
@@ -285,22 +284,22 @@ class PARTICLE_PT_hair_dynamics(ParticleButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Material:"))
+        col.label(text="Material:")
         sub = col.column(align=True)
         sub = col.column(align=True)
-        sub.prop(cloth, "pin_stiffness", text=_("Stiffness"))
+        sub.prop(cloth, "pin_stiffness", text="Stiffness")
         sub.prop(cloth, "mass")
         sub.prop(cloth, "mass")
-        sub.prop(cloth, "bending_stiffness", text=_("Bending"))
+        sub.prop(cloth, "bending_stiffness", text="Bending")
         sub.prop(cloth, "internal_friction", slider=True)
         sub.prop(cloth, "collider_friction", slider=True)
 
         col = split.column()
         sub.prop(cloth, "internal_friction", slider=True)
         sub.prop(cloth, "collider_friction", slider=True)
 
         col = split.column()
-        col.label(text=_("Damping:"))
+        col.label(text="Damping:")
         sub = col.column(align=True)
         sub = col.column(align=True)
-        sub.prop(cloth, "spring_damping", text=_("Spring"))
-        sub.prop(cloth, "air_damping", text=_("Air"))
+        sub.prop(cloth, "spring_damping", text="Spring")
+        sub.prop(cloth, "air_damping", text="Air")
 
 
-        col.label(text=_("Quality:"))
-        col.prop(cloth, "quality", text=_("Steps"), slider=True)
+        col.label(text="Quality:")
+        col.prop(cloth, "quality", text="Steps", slider=True)
 
 
 class PARTICLE_PT_cache(ParticleButtonsPanel, Panel):
 
 
 class PARTICLE_PT_cache(ParticleButtonsPanel, Panel):
@@ -356,17 +355,17 @@ class PARTICLE_PT_velocity(ParticleButtonsPanel, Panel):
         split = layout.split()
 
         col = split.column()
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Emitter Geometry:"))
+        col.label(text="Emitter Geometry:")
         col.prop(part, "normal_factor")
         sub = col.column(align=True)
         sub.prop(part, "tangent_factor")
         sub.prop(part, "tangent_phase", slider=True)
 
         col = split.column()
         col.prop(part, "normal_factor")
         sub = col.column(align=True)
         sub.prop(part, "tangent_factor")
         sub.prop(part, "tangent_phase", slider=True)
 
         col = split.column()
-        col.label(text=_("Emitter Object:"))
+        col.label(text="Emitter Object:")
         col.prop(part, "object_align_factor", text="")
 
         col.prop(part, "object_align_factor", text="")
 
-        layout.label(text=_("Other:"))
+        layout.label(text="Other:")
         row = layout.row()
         if part.emit_from == 'PARTICLE':
             row.prop(part, "particle_factor")
         row = layout.row()
         if part.emit_from == 'PARTICLE':
             row.prop(part, "particle_factor")
@@ -407,21 +406,21 @@ class PARTICLE_PT_rotation(ParticleButtonsPanel, Panel):
         layout.enabled = particle_panel_enabled(context, psys)
 
         row = layout.row()
         layout.enabled = particle_panel_enabled(context, psys)
 
         row = layout.row()
-        row.label(text=_("Initial Rotation:"))
+        row.label(text="Initial Rotation:")
         row.prop(part, "use_dynamic_rotation")
 
         split = layout.split()
 
         col = split.column(align=True)
         col.prop(part, "rotation_mode", text="")
         row.prop(part, "use_dynamic_rotation")
 
         split = layout.split()
 
         col = split.column(align=True)
         col.prop(part, "rotation_mode", text="")
-        col.prop(part, "rotation_factor_random", slider=True, text=_("Random"))
+        col.prop(part, "rotation_factor_random", slider=True, text="Random")
 
         col = split.column(align=True)
         col.prop(part, "phase_factor", slider=True)
 
         col = split.column(align=True)
         col.prop(part, "phase_factor", slider=True)
-        col.prop(part, "phase_factor_random", text=_("Random"), slider=True)
+        col.prop(part, "phase_factor_random", text="Random", slider=True)
 
         col = layout.column()
 
         col = layout.column()
-        col.label(text=_("Angular Velocity:"))
+        col.label(text="Angular Velocity:")
         col.row().prop(part, "angular_velocity_mode", expand=True)
 
         if part.angular_velocity_mode != 'NONE':
         col.row().prop(part, "angular_velocity_mode", expand=True)
 
         if part.angular_velocity_mode != 'NONE':
@@ -462,19 +461,19 @@ class PARTICLE_PT_physics(ParticleButtonsPanel, Panel):
         if part.physics_type != 'NO':
             col = row.column(align=True)
             col.prop(part, "mass")
         if part.physics_type != 'NO':
             col = row.column(align=True)
             col.prop(part, "mass")
-            col.prop(part, "use_multiply_size_mass", text=_("Multiply mass with size"))
+            col.prop(part, "use_multiply_size_mass", text="Multiply mass with size")
 
         if part.physics_type in {'NEWTON', 'FLUID'}:
             split = layout.split()
 
             col = split.column()
 
         if part.physics_type in {'NEWTON', 'FLUID'}:
             split = layout.split()
 
             col = split.column()
-            col.label(text=_("Forces:"))
+            col.label(text="Forces:")
             col.prop(part, "brownian_factor")
             col.prop(part, "drag_factor", slider=True)
             col.prop(part, "damping", slider=True)
 
             col = split.column()
             col.prop(part, "brownian_factor")
             col.prop(part, "drag_factor", slider=True)
             col.prop(part, "damping", slider=True)
 
             col = split.column()
-            col.label(text=_("Integration:"))
+            col.label(text="Integration:")
             col.prop(part, "integrator", text="")
             col.prop(part, "timestep")
             col.prop(part, "subframes")
             col.prop(part, "integrator", text="")
             col.prop(part, "timestep")
             col.prop(part, "subframes")
@@ -489,13 +488,13 @@ class PARTICLE_PT_physics(ParticleButtonsPanel, Panel):
                 split = layout.split()
 
                 col = split.column()
                 split = layout.split()
 
                 col = split.column()
-                col.label(text=_("Fluid properties:"))
-                col.prop(fluid, "stiffness", text=_("Stiffness"))
-                col.prop(fluid, "linear_viscosity", text=_("Viscosity"))
-                col.prop(fluid, "buoyancy", text=_("Buoancy"), slider=True)
+                col.label(text="Fluid properties:")
+                col.prop(fluid, "stiffness", text="Stiffness")
+                col.prop(fluid, "linear_viscosity", text="Viscosity")
+                col.prop(fluid, "buoyancy", text="Buoancy", slider=True)
 
                 col = split.column()
 
                 col = split.column()
-                col.label(text=_("Advanced:"))
+                col.label(text="Advanced:")
 
                 sub = col.row()
                 sub.prop(fluid, "repulsion", slider=fluid.factor_repulsion)
 
                 sub = col.row()
                 sub.prop(fluid, "repulsion", slider=fluid.factor_repulsion)
@@ -516,8 +515,8 @@ class PARTICLE_PT_physics(ParticleButtonsPanel, Panel):
                 split = layout.split()
 
                 col = split.column()
                 split = layout.split()
 
                 col = split.column()
-                col.label(text=_("Springs:"))
-                col.prop(fluid, "spring_force", text=_("Force"))
+                col.label(text="Springs:")
+                col.prop(fluid, "spring_force", text="Force")
                 col.prop(fluid, "use_viscoelastic_springs")
                 sub = col.column(align=True)
                 sub.active = fluid.use_viscoelastic_springs
                 col.prop(fluid, "use_viscoelastic_springs")
                 sub = col.column(align=True)
                 sub.active = fluid.use_viscoelastic_springs
@@ -525,7 +524,7 @@ class PARTICLE_PT_physics(ParticleButtonsPanel, Panel):
                 sub.prop(fluid, "plasticity", slider=True)
 
                 col = split.column()
                 sub.prop(fluid, "plasticity", slider=True)
 
                 col = split.column()
-                col.label(text=_("Advanced:"))
+                col.label(text="Advanced:")
                 sub = col.row()
                 sub.prop(fluid, "rest_length", slider=fluid.factor_rest_length)
                 sub.prop(fluid, "factor_rest_length", text="")
                 sub = col.row()
                 sub.prop(fluid, "rest_length", slider=fluid.factor_rest_length)
                 sub.prop(fluid, "factor_rest_length", text="")
@@ -533,7 +532,7 @@ class PARTICLE_PT_physics(ParticleButtonsPanel, Panel):
                 sub = col.column()
                 sub.active = fluid.use_viscoelastic_springs
                 sub.prop(fluid, "use_initial_rest_length")
                 sub = col.column()
                 sub.active = fluid.use_viscoelastic_springs
                 sub.prop(fluid, "use_initial_rest_length")
-                sub.prop(fluid, "spring_frames", text=_("Frames"))
+                sub.prop(fluid, "spring_frames", text="Frames")
 
         elif part.physics_type == 'KEYED':
             split = layout.split()
 
         elif part.physics_type == 'KEYED':
             split = layout.split()
@@ -542,11 +541,11 @@ class PARTICLE_PT_physics(ParticleButtonsPanel, Panel):
             row = layout.row()
             col = row.column()
             col.active = not psys.use_keyed_timing
             row = layout.row()
             col = row.column()
             col.active = not psys.use_keyed_timing
-            col.prop(part, "keyed_loops", text=_("Loops"))
+            col.prop(part, "keyed_loops", text="Loops")
             if psys:
             if psys:
-                row.prop(psys, "use_keyed_timing", text=_("Use Timing"))
+                row.prop(psys, "use_keyed_timing", text="Use Timing")
 
 
-            layout.label(text=_("Keys:"))
+            layout.label(text="Keys:")
         elif part.physics_type == 'BOIDS':
             boids = part.boids
 
         elif part.physics_type == 'BOIDS':
             boids = part.boids
 
@@ -582,7 +581,7 @@ class PARTICLE_PT_physics(ParticleButtonsPanel, Panel):
             row = layout.row()
 
             col = row.column(align=True)
             row = layout.row()
 
             col = row.column(align=True)
-            col.label(text=_("Battle:"))
+            col.label(text="Battle:")
             col.prop(boids, "health")
             col.prop(boids, "strength")
             col.prop(boids, "aggression")
             col.prop(boids, "health")
             col.prop(boids, "strength")
             col.prop(boids, "aggression")
@@ -590,16 +589,16 @@ class PARTICLE_PT_physics(ParticleButtonsPanel, Panel):
             col.prop(boids, "range")
 
             col = row.column()
             col.prop(boids, "range")
 
             col = row.column()
-            col.label(text=_("Misc:"))
+            col.label(text="Misc:")
             col.prop(boids, "bank", slider=True)
             col.prop(boids, "pitch", slider=True)
             col.prop(boids, "height", slider=True)
 
         if psys and part.physics_type in {'KEYED', 'BOIDS', 'FLUID'}:
             if part.physics_type == 'BOIDS':
             col.prop(boids, "bank", slider=True)
             col.prop(boids, "pitch", slider=True)
             col.prop(boids, "height", slider=True)
 
         if psys and part.physics_type in {'KEYED', 'BOIDS', 'FLUID'}:
             if part.physics_type == 'BOIDS':
-                layout.label(text=_("Relations:"))
+                layout.label(text="Relations:")
             elif part.physics_type == 'FLUID':
             elif part.physics_type == 'FLUID':
-                layout.label(text=_("Fluid interaction:"))
+                layout.label(text="Fluid interaction:")
 
             row = layout.row()
             row.template_list(psys, "targets", psys, "active_particle_target_index")
 
             row = layout.row()
             row.template_list(psys, "targets", psys, "active_particle_target_index")
@@ -622,7 +621,7 @@ class PARTICLE_PT_physics(ParticleButtonsPanel, Panel):
                     #doesn't work yet
                     #col.alert = key.valid
                     col.prop(key, "object", text="")
                     #doesn't work yet
                     #col.alert = key.valid
                     col.prop(key, "object", text="")
-                    col.prop(key, "system", text=_("System"))
+                    col.prop(key, "system", text="System")
                     col = row.column()
                     col.active = psys.use_keyed_timing
                     col.prop(key, "time")
                     col = row.column()
                     col.active = psys.use_keyed_timing
                     col.prop(key, "time")
@@ -632,7 +631,7 @@ class PARTICLE_PT_physics(ParticleButtonsPanel, Panel):
                     #doesn't work yet
                     #sub.alert = key.valid
                     sub.prop(key, "object", text="")
                     #doesn't work yet
                     #sub.alert = key.valid
                     sub.prop(key, "object", text="")
-                    sub.prop(key, "system", text=_("System"))
+                    sub.prop(key, "system", text="System")
 
                     layout.prop(key, "alliance", expand=True)
                 elif part.physics_type == 'FLUID':
 
                     layout.prop(key, "alliance", expand=True)
                 elif part.physics_type == 'FLUID':
@@ -640,7 +639,7 @@ class PARTICLE_PT_physics(ParticleButtonsPanel, Panel):
                     #doesn't work yet
                     #sub.alert = key.valid
                     sub.prop(key, "object", text="")
                     #doesn't work yet
                     #sub.alert = key.valid
                     sub.prop(key, "object", text="")
-                    sub.prop(key, "system", text=_("System"))
+                    sub.prop(key, "system", text="System")
 
 
 class PARTICLE_PT_boidbrain(ParticleButtonsPanel, Panel):
 
 
 class PARTICLE_PT_boidbrain(ParticleButtonsPanel, Panel):
@@ -679,7 +678,7 @@ class PARTICLE_PT_boidbrain(ParticleButtonsPanel, Panel):
 
         state = boids.active_boid_state
 
 
         state = boids.active_boid_state
 
-        #layout.prop(state, "name", text=_("State name"))
+        #layout.prop(state, "name", text="State name")
 
         row = layout.row()
         row.prop(state, "ruleset_type")
 
         row = layout.row()
         row.prop(state, "ruleset_type")
@@ -722,7 +721,7 @@ class PARTICLE_PT_boidbrain(ParticleButtonsPanel, Panel):
                 row.prop(rule, "use_predict")
                 row.prop(rule, "fear_factor")
             elif rule.type == 'FOLLOW_PATH':
                 row.prop(rule, "use_predict")
                 row.prop(rule, "fear_factor")
             elif rule.type == 'FOLLOW_PATH':
-                row.label(text=_("Not yet functional"))
+                row.label(text="Not yet functional")
             elif rule.type == 'AVOID_COLLISION':
                 row.prop(rule, "use_avoid")
                 row.prop(rule, "use_avoid_collision")
             elif rule.type == 'AVOID_COLLISION':
                 row.prop(rule, "use_avoid")
                 row.prop(rule, "use_avoid_collision")
@@ -801,14 +800,14 @@ class PARTICLE_PT_render(ParticleButtonsPanel, Panel):
             sub.active = (part.use_render_adaptive is True and part.use_strand_primitive is False)
             sub.prop(part, "adaptive_pixel")
             col.prop(part, "use_hair_bspline")
             sub.active = (part.use_render_adaptive is True and part.use_strand_primitive is False)
             sub.prop(part, "adaptive_pixel")
             col.prop(part, "use_hair_bspline")
-            col.prop(part, "render_step", text=_("Steps"))
+            col.prop(part, "render_step", text="Steps")
 
             col = split.column()
 
             col = split.column()
-            col.label(text=_("Timing:"))
+            col.label(text="Timing:")
             col.prop(part, "use_absolute_path_time")
             col.prop(part, "use_absolute_path_time")
-            col.prop(part, "path_start", text=_("Start"), slider=not part.use_absolute_path_time)
-            col.prop(part, "path_end", text=_("End"), slider=not part.use_absolute_path_time)
-            col.prop(part, "length_random", text=_("Random"), slider=True)
+            col.prop(part, "path_start", text="Start", slider=not part.use_absolute_path_time)
+            col.prop(part, "path_end", text="End", slider=not part.use_absolute_path_time)
+            col.prop(part, "length_random", text="Random", slider=True)
 
             row = layout.row()
             col = row.column()
 
             row = layout.row()
             col = row.column()
@@ -865,30 +864,30 @@ class PARTICLE_PT_render(ParticleButtonsPanel, Panel):
         elif part.render_type == 'BILLBOARD':
             ob = context.object
 
         elif part.render_type == 'BILLBOARD':
             ob = context.object
 
-            col.label(text=_("Align:"))
+            col.label(text="Align:")
 
             row = layout.row()
             row.prop(part, "billboard_align", expand=True)
 
             row = layout.row()
             row.prop(part, "billboard_align", expand=True)
-            row.prop(part, "lock_billboard", text=_("Lock"))
+            row.prop(part, "lock_billboard", text="Lock")
             row = layout.row()
             row.prop(part, "billboard_object")
 
             row = layout.row()
             col = row.column(align=True)
             row = layout.row()
             row.prop(part, "billboard_object")
 
             row = layout.row()
             col = row.column(align=True)
-            col.label(text=_("Tilt:"))
-            col.prop(part, "billboard_tilt", text=_("Angle"), slider=True)
-            col.prop(part, "billboard_tilt_random", text=_("Random"), slider=True)
+            col.label(text="Tilt:")
+            col.prop(part, "billboard_tilt", text="Angle", slider=True)
+            col.prop(part, "billboard_tilt_random", text="Random", slider=True)
             col = row.column()
             col.prop(part, "billboard_offset")
 
             row = layout.row()
             col = row.column()
             col = row.column()
             col.prop(part, "billboard_offset")
 
             row = layout.row()
             col = row.column()
-            col.prop(part, "billboard_size", text=_("Scale"))
+            col.prop(part, "billboard_size", text="Scale")
             if part.billboard_align == 'VEL':
                 col = row.column(align=True)
             if part.billboard_align == 'VEL':
                 col = row.column(align=True)
-                col.label(_("Velocity Scale:"))
-                col.prop(part, "billboard_velocity_head", text=_("Head"))
-                col.prop(part, "billboard_velocity_tail", text=_("Tail"))
+                col.label("Velocity Scale:")
+                col.prop(part, "billboard_velocity_head", text="Head")
+                col.prop(part, "billboard_velocity_tail", text="Tail")
 
             if psys:
                 col = layout.column()
 
             if psys:
                 col = layout.column()
@@ -896,8 +895,8 @@ class PARTICLE_PT_render(ParticleButtonsPanel, Panel):
                 col.prop_search(psys, "billboard_time_index_uv", ob.data, "uv_textures")
 
             split = layout.split(percentage=0.33)
                 col.prop_search(psys, "billboard_time_index_uv", ob.data, "uv_textures")
 
             split = layout.split(percentage=0.33)
-            split.label(text=_("Split uv's:"))
-            split.prop(part, "billboard_uv_split", text=_("Number of splits"))
+            split.label(text="Split uv's:")
+            split.prop(part, "billboard_uv_split", text="Number of splits")
 
             if psys:
                 col = layout.column()
 
             if psys:
                 col = layout.column()
@@ -905,9 +904,9 @@ class PARTICLE_PT_render(ParticleButtonsPanel, Panel):
                 col.prop_search(psys, "billboard_split_uv", ob.data, "uv_textures")
 
             row = col.row()
                 col.prop_search(psys, "billboard_split_uv", ob.data, "uv_textures")
 
             row = col.row()
-            row.label(text=_("Animate:"))
+            row.label(text="Animate:")
             row.prop(part, "billboard_animation", text="")
             row.prop(part, "billboard_animation", text="")
-            row.label(text=_("Offset:"))
+            row.label(text="Offset:")
             row.prop(part, "billboard_offset_split", text="")
 
         if part.render_type == 'HALO' or part.render_type == 'LINE' or part.render_type == 'BILLBOARD':
             row.prop(part, "billboard_offset_split", text="")
 
         if part.render_type == 'HALO' or part.render_type == 'LINE' or part.render_type == 'BILLBOARD':
@@ -915,10 +914,10 @@ class PARTICLE_PT_render(ParticleButtonsPanel, Panel):
             col = row.column()
             col.prop(part, "trail_count")
             if part.trail_count > 1:
             col = row.column()
             col.prop(part, "trail_count")
             if part.trail_count > 1:
-                col.prop(part, "use_absolute_path_time", text=_("Length in frames"))
+                col.prop(part, "use_absolute_path_time", text="Length in frames")
                 col = row.column()
                 col = row.column()
-                col.prop(part, "path_end", text=_("Length"), slider=not part.use_absolute_path_time)
-                col.prop(part, "length_random", text=_("Random"), slider=True)
+                col.prop(part, "path_end", text="Length", slider=not part.use_absolute_path_time)
+                col.prop(part, "length_random", text="Random", slider=True)
             else:
                 col = row.column()
                 col.label(text="")
             else:
                 col = row.column()
                 col.label(text="")
@@ -966,11 +965,11 @@ class PARTICLE_PT_draw(ParticleButtonsPanel, Panel):
         if part.draw_percentage != 100 and psys is not None:
             if part.type == 'HAIR':
                 if psys.use_hair_dynamics and psys.point_cache.is_baked == False:
         if part.draw_percentage != 100 and psys is not None:
             if part.type == 'HAIR':
                 if psys.use_hair_dynamics and psys.point_cache.is_baked == False:
-                    layout.row().label(text=_("Display percentage makes dynamics inaccurate without baking!"))
+                    layout.row().label(text="Display percentage makes dynamics inaccurate without baking!")
             else:
                 phystype = part.physics_type
                 if phystype != 'NO' and phystype != 'KEYED' and psys.point_cache.is_baked == False:
             else:
                 phystype = part.physics_type
                 if phystype != 'NO' and phystype != 'KEYED' and psys.point_cache.is_baked == False:
-                    layout.row().label(text=_("Display percentage makes dynamics inaccurate without baking!"))
+                    layout.row().label(text="Display percentage makes dynamics inaccurate without baking!")
 
         row = layout.row()
         col = row.column()
 
         row = layout.row()
         col = row.column()
@@ -981,11 +980,11 @@ class PARTICLE_PT_draw(ParticleButtonsPanel, Panel):
             col.prop(part, "show_health")
 
         col = row.column(align=True)
             col.prop(part, "show_health")
 
         col = row.column(align=True)
-        col.label(text=_("Color:"))
+        col.label(text="Color:")
         col.prop(part, "draw_color", text="")
         sub = col.row()
         sub.active = part.draw_color in ('VELOCITY', 'ACCELERATION')
         col.prop(part, "draw_color", text="")
         sub = col.row()
         sub.active = part.draw_color in ('VELOCITY', 'ACCELERATION')
-        sub.prop(part, "color_maximum", text=_("Max"))
+        sub.prop(part, "color_maximum", text="Max")
 
         if (path):
             col.prop(part, "draw_step")
 
         if (path):
             col.prop(part, "draw_step")
@@ -1014,24 +1013,24 @@ class PARTICLE_PT_children(ParticleButtonsPanel, Panel):
         row = layout.row()
 
         col = row.column(align=True)
         row = layout.row()
 
         col = row.column(align=True)
-        col.prop(part, "child_nbr", text=_("Display"))
-        col.prop(part, "rendered_child_count", text=_("Render"))
+        col.prop(part, "child_nbr", text="Display")
+        col.prop(part, "rendered_child_count", text="Render")
 
         if part.child_type == 'INTERPOLATED':
             col = row.column()
             if psys:
 
         if part.child_type == 'INTERPOLATED':
             col = row.column()
             if psys:
-                col.prop(psys, "child_seed", text=_("Seed"))
+                col.prop(psys, "child_seed", text="Seed")
             col.prop(part, "virtual_parents", slider=True)
             col.prop(part, "create_long_hair_children")
         else:
             col = row.column(align=True)
             col.prop(part, "virtual_parents", slider=True)
             col.prop(part, "create_long_hair_children")
         else:
             col = row.column(align=True)
-            col.prop(part, "child_size", text=_("Size"))
-            col.prop(part, "child_size_random", text=_("Random"))
+            col.prop(part, "child_size", text="Size")
+            col.prop(part, "child_size_random", text="Random")
 
         split = layout.split()
 
         col = split.column()
 
         split = layout.split()
 
         col = split.column()
-        col.label(text=_("Effects:"))
+        col.label(text="Effects:")
 
         sub = col.column(align=True)
         sub.prop(part, "clump_factor", slider=True)
 
         sub = col.column(align=True)
         sub.prop(part, "clump_factor", slider=True)
@@ -1043,38 +1042,38 @@ class PARTICLE_PT_children(ParticleButtonsPanel, Panel):
 
         if part.child_type == 'SIMPLE':
             sub = col.column(align=True)
 
         if part.child_type == 'SIMPLE':
             sub = col.column(align=True)
-            sub.prop(part, "child_radius", text=_("Radius"))
-            sub.prop(part, "child_roundness", text=_("Roundness"), slider=True)
+            sub.prop(part, "child_radius", text="Radius")
+            sub.prop(part, "child_roundness", text="Roundness", slider=True)
             if psys:
             if psys:
-                sub.prop(psys, "child_seed", text=_("Seed"))
+                sub.prop(psys, "child_seed", text="Seed")
         elif part.virtual_parents > 0.0:
             sub = col.column(align=True)
         elif part.virtual_parents > 0.0:
             sub = col.column(align=True)
-            sub.label(text=_("Parting not"))
-            sub.label(text=_("available with"))
-            sub.label(text=_("virtual parents"))
+            sub.label(text="Parting not")
+            sub.label(text="available with")
+            sub.label(text="virtual parents")
         else:
             sub = col.column(align=True)
         else:
             sub = col.column(align=True)
-            sub.prop(part, "child_parting_factor", text=_("Parting"), slider=True)
-            sub.prop(part, "child_parting_min", text=_("Min"))
-            sub.prop(part, "child_parting_max", text=_("Max"))
+            sub.prop(part, "child_parting_factor", text="Parting", slider=True)
+            sub.prop(part, "child_parting_min", text="Min")
+            sub.prop(part, "child_parting_max", text="Max")
 
         col = split.column()
 
         col = split.column()
-        col.label(text=_("Roughness:"))
+        col.label(text="Roughness:")
 
         sub = col.column(align=True)
 
         sub = col.column(align=True)
-        sub.prop(part, "roughness_1", text=_("Uniform"))
-        sub.prop(part, "roughness_1_size", text=_("Size"))
+        sub.prop(part, "roughness_1", text="Uniform")
+        sub.prop(part, "roughness_1_size", text="Size")
 
         sub = col.column(align=True)
         sub.prop(part, "roughness_endpoint", "Endpoint")
         sub.prop(part, "roughness_end_shape")
 
         sub = col.column(align=True)
 
         sub = col.column(align=True)
         sub.prop(part, "roughness_endpoint", "Endpoint")
         sub.prop(part, "roughness_end_shape")
 
         sub = col.column(align=True)
-        sub.prop(part, "roughness_2", text=_("Random"))
-        sub.prop(part, "roughness_2_size", text=_("Size"))
+        sub.prop(part, "roughness_2", text="Random")
+        sub.prop(part, "roughness_2_size", text="Size")
         sub.prop(part, "roughness_2_threshold", slider=True)
 
         sub.prop(part, "roughness_2_threshold", slider=True)
 
-        layout.row().label(text=_("Kink:"))
+        layout.row().label(text="Kink:")
         layout.row().prop(part, "kink", expand=True)
 
         split = layout.split()
         layout.row().prop(part, "kink", expand=True)
 
         split = layout.split()
@@ -1083,7 +1082,7 @@ class PARTICLE_PT_children(ParticleButtonsPanel, Panel):
         col = split.column()
         sub = col.column(align=True)
         sub.prop(part, "kink_amplitude")
         col = split.column()
         sub = col.column(align=True)