[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40432] trunk/blender/release/scripts/ startup/bl_ui: remove use of gettext: _("...") style translation now its handled by rna.
Campbell Barton
ideasman42 at gmail.com
Wed Sep 21 17:18:38 CEST 2011
Revision: 40432
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40432
Author: campbellbarton
Date: 2011-09-21 15:18:38 +0000 (Wed, 21 Sep 2011)
Log Message:
-----------
remove use of gettext: _("...") style translation now its handled by rna.
Modified Paths:
--------------
trunk/blender/release/scripts/startup/bl_ui/properties_animviz.py
trunk/blender/release/scripts/startup/bl_ui/properties_data_armature.py
trunk/blender/release/scripts/startup/bl_ui/properties_data_bone.py
trunk/blender/release/scripts/startup/bl_ui/properties_data_camera.py
trunk/blender/release/scripts/startup/bl_ui/properties_data_curve.py
trunk/blender/release/scripts/startup/bl_ui/properties_data_empty.py
trunk/blender/release/scripts/startup/bl_ui/properties_data_lamp.py
trunk/blender/release/scripts/startup/bl_ui/properties_data_mesh.py
trunk/blender/release/scripts/startup/bl_ui/properties_data_metaball.py
trunk/blender/release/scripts/startup/bl_ui/properties_data_modifier.py
trunk/blender/release/scripts/startup/bl_ui/properties_game.py
trunk/blender/release/scripts/startup/bl_ui/properties_material.py
trunk/blender/release/scripts/startup/bl_ui/properties_object.py
trunk/blender/release/scripts/startup/bl_ui/properties_object_constraint.py
trunk/blender/release/scripts/startup/bl_ui/properties_particle.py
trunk/blender/release/scripts/startup/bl_ui/properties_physics_cloth.py
trunk/blender/release/scripts/startup/bl_ui/properties_physics_common.py
trunk/blender/release/scripts/startup/bl_ui/properties_physics_field.py
trunk/blender/release/scripts/startup/bl_ui/properties_physics_fluid.py
trunk/blender/release/scripts/startup/bl_ui/properties_physics_smoke.py
trunk/blender/release/scripts/startup/bl_ui/properties_physics_softbody.py
trunk/blender/release/scripts/startup/bl_ui/properties_render.py
trunk/blender/release/scripts/startup/bl_ui/properties_scene.py
trunk/blender/release/scripts/startup/bl_ui/properties_texture.py
trunk/blender/release/scripts/startup/bl_ui/properties_world.py
trunk/blender/release/scripts/startup/bl_ui/space_console.py
trunk/blender/release/scripts/startup/bl_ui/space_dopesheet.py
trunk/blender/release/scripts/startup/bl_ui/space_graph.py
trunk/blender/release/scripts/startup/bl_ui/space_image.py
trunk/blender/release/scripts/startup/bl_ui/space_info.py
trunk/blender/release/scripts/startup/bl_ui/space_logic.py
trunk/blender/release/scripts/startup/bl_ui/space_nla.py
trunk/blender/release/scripts/startup/bl_ui/space_node.py
trunk/blender/release/scripts/startup/bl_ui/space_sequencer.py
trunk/blender/release/scripts/startup/bl_ui/space_text.py
trunk/blender/release/scripts/startup/bl_ui/space_time.py
trunk/blender/release/scripts/startup/bl_ui/space_userpref.py
trunk/blender/release/scripts/startup/bl_ui/space_userpref_keymap.py
trunk/blender/release/scripts/startup/bl_ui/space_view3d.py
trunk/blender/release/scripts/startup/bl_ui/space_view3d_toolbar.py
Modified: trunk/blender/release/scripts/startup/bl_ui/properties_animviz.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_animviz.py 2011-09-21 15:15:30 UTC (rev 40431)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_animviz.py 2011-09-21 15:18:38 UTC (rev 40432)
@@ -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.
-from blf import gettext as _
class MotionPathButtonsPanel():
@@ -44,23 +43,23 @@
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'):
- 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()
- 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:
- 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
@@ -83,16 +82,16 @@
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':
- 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.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
Modified: trunk/blender/release/scripts/startup/bl_ui/properties_data_armature.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_data_armature.py 2011-09-21 15:15:30 UTC (rev 40431)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_data_armature.py 2011-09-21 15:18:38 UTC (rev 40432)
@@ -20,7 +20,6 @@
import bpy
from bpy.types import Panel, Menu
from rna_prop_ui import PropertyPanel
-from blf import gettext as _
class ArmatureButtonsPanel():
@@ -61,16 +60,16 @@
layout.prop(arm, "pose_position", expand=True)
col = layout.column()
- col.label(text=_("Layers:"))
+ col.label(text="Layers:")
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()
- 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)
@@ -90,15 +89,15 @@
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.prop(arm, "show_group_colors", text=_("Colors"))
+ col.prop(arm, "show_group_colors", text="Colors")
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):
@@ -162,12 +161,12 @@
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.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):
@@ -231,16 +230,16 @@
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':
- 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.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):
@@ -264,7 +263,7 @@
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()
@@ -276,8 +275,8 @@
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")
@@ -287,7 +286,7 @@
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 (
@@ -315,8 +314,8 @@
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
Modified: trunk/blender/release/scripts/startup/bl_ui/properties_data_bone.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_data_bone.py 2011-09-21 15:15:30 UTC (rev 40431)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_data_bone.py 2011-09-21 15:18:38 UTC (rev 40432)
@@ -21,7 +21,6 @@
import bpy
from bpy.types import Panel
from rna_prop_ui import PropertyPanel
-from blf import gettext as _
class BoneButtonsPanel():
@@ -77,14 +76,14 @@
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':
- #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")
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list