3D view, graph editor, etc. done
authorXiao Xiangquan <xiaoxiangquan@gmail.com>
Sat, 2 Jul 2011 03:17:09 +0000 (03:17 +0000)
committerXiao Xiangquan <xiaoxiangquan@gmail.com>
Sat, 2 Jul 2011 03:17:09 +0000 (03:17 +0000)
62 files changed:
po/POTFILES.in
release/scripts/startup/bl_operators/object.py
release/scripts/startup/bl_operators/wm.py
release/scripts/startup/bl_ui/space_userpref_keymap.py
release/scripts/startup/bl_ui/space_view3d.py
source/blender/editors/animation/anim_channels_edit.c
source/blender/editors/animation/anim_markers.c
source/blender/editors/animation/anim_ops.c
source/blender/editors/animation/keyframing.c
source/blender/editors/animation/keyingsets.c
source/blender/editors/armature/armature_ops.c
source/blender/editors/armature/editarmature.c
source/blender/editors/armature/editarmature_sketch.c
source/blender/editors/armature/poseSlide.c
source/blender/editors/armature/poselib.c
source/blender/editors/armature/poseobject.c
source/blender/editors/curve/editcurve.c
source/blender/editors/curve/editfont.c
source/blender/editors/gpencil/gpencil_paint.c
source/blender/editors/interface/view2d_ops.c
source/blender/editors/mesh/editmesh.c
source/blender/editors/mesh/editmesh_add.c
source/blender/editors/mesh/editmesh_loop.c
source/blender/editors/mesh/editmesh_mods.c
source/blender/editors/mesh/editmesh_tools.c
source/blender/editors/mesh/loopcut.c
source/blender/editors/mesh/mesh_ops.c
source/blender/editors/metaball/mball_edit.c
source/blender/editors/object/object_add.c
source/blender/editors/object/object_constraint.c
source/blender/editors/object/object_edit.c
source/blender/editors/object/object_group.c
source/blender/editors/object/object_lattice.c
source/blender/editors/object/object_relations.c
source/blender/editors/object/object_select.c
source/blender/editors/object/object_transform.c
source/blender/editors/physics/particle_edit.c
source/blender/editors/render/render_view.c
source/blender/editors/screen/screen_ops.c
source/blender/editors/screen/screendump.c
source/blender/editors/sculpt_paint/paint_image.c
source/blender/editors/sculpt_paint/paint_ops.c
source/blender/editors/sculpt_paint/paint_utils.c
source/blender/editors/sculpt_paint/paint_vertex.c
source/blender/editors/sculpt_paint/sculpt.c
source/blender/editors/space_graph/graph_buttons.c
source/blender/editors/space_graph/graph_edit.c
source/blender/editors/space_graph/graph_ops.c
source/blender/editors/space_graph/graph_select.c
source/blender/editors/space_script/CMakeLists.txt
source/blender/editors/space_script/SConscript
source/blender/editors/space_script/script_edit.c
source/blender/editors/space_view3d/view3d_edit.c
source/blender/editors/space_view3d/view3d_fly.c
source/blender/editors/transform/transform.c
source/blender/editors/transform/transform_ops.c
source/blender/editors/util/undo.c
source/blender/makesrna/RNA_access.h
source/blender/makesrna/intern/rna_access.c
source/blender/makesrna/intern/rna_define.c
source/blender/makesrna/intern/rna_wm.c
source/blender/windowmanager/intern/wm_operators.c

index b5fac75541a2c2df6502d369fef6e706ee194a0e..c6fa8843ca37287039f2039f4ada115559149186 100755 (executable)
@@ -24,12 +24,14 @@ source/blender/editors/animation/drivers.c
 source/blender/editors/animation/keyframing.c
 source/blender/editors/animation/keyingsets.c
 
+source/blender/editors/armature/armature_ops.c
 source/blender/editors/armature/editarmature.c
 source/blender/editors/armature/editarmature_sketch.c
 source/blender/editors/armature/poselib.c
 source/blender/editors/armature/poseobject.c
 source/blender/editors/armature/poseSlide.c
 
+
 source/blender/editors/curve/editcurve.c
 source/blender/editors/curve/editfont.c
 
@@ -42,16 +44,21 @@ source/blender/editors/interface/interface_templates.c
 source/blender/editors/interface/interface_utils.c
 source/blender/editors/interface/view2d_ops.c
 
+source/blender/editors/mesh/editmesh.c
 source/blender/editors/mesh/editmesh_add.c
 source/blender/editors/mesh/editmesh_loop.c
 source/blender/editors/mesh/editmesh_mods.c
 source/blender/editors/mesh/editmesh_tools.c
 source/blender/editors/mesh/loopcut.c
+source/blender/editors/mesh/mesh_ops.c
+
+source/blender/editors/metaball/mball_edit.c
 
 source/blender/editors/object/object_add.c
 source/blender/editors/object/object_constraint.c
 source/blender/editors/object/object_edit.c
 source/blender/editors/object/object_group.c
+source/blender/editors/object/object_lattice.c
 source/blender/editors/object/object_ops.c
 source/blender/editors/object/object_relations.c
 source/blender/editors/object/object_select.c
@@ -70,7 +77,10 @@ source/blender/editors/screen/area.c
 source/blender/editors/screen/screendump.c
 source/blender/editors/screen/screen_ops.c
 
+source/blender/editors/sculpt_paint/paint_ops.c
+source/blender/editors/sculpt_paint/paint_image.c
 source/blender/editors/sculpt_paint/paint_utils.c
+source/blender/editors/sculpt_paint/paint_vertex.c
 source/blender/editors/sculpt_paint/sculpt.c
 
 source/blender/editors/sound/sound_ops.c
@@ -83,6 +93,7 @@ source/blender/editors/space_file/file_draw.c
 source/blender/editors/space_file/file_ops.c
 source/blender/editors/space_file/file_panels.c
 
+source/blender/editors/space_graph/graph_buttons.c
 source/blender/editors/space_graph/graph_edit.c
 source/blender/editors/space_graph/graph_ops.c
 source/blender/editors/space_graph/graph_select.c
@@ -104,6 +115,7 @@ source/blender/editors/space_node/node_select.c
 source/blender/editors/space_node/node_state.c
 
 source/blender/editors/space_outliner/outliner.c
+source/blender/editors/space_script/script_edit.c
 
 source/blender/editors/space_sequencer/sequencer_add.c
 source/blender/editors/space_sequencer/sequencer_edit.c
@@ -121,6 +133,7 @@ source/blender/editors/space_view3d/view3d_select.c
 source/blender/editors/space_view3d/view3d_view.c
 source/blender/editors/space_view3d/view3d_toolbar.c
 
+source/blender/editors/transform/transform.c
 source/blender/editors/transform/transform_ops.c
 source/blender/editors/transform/transform_orientations.c
 
index a23982e8e4e09918f228f9eb79eb1f270a3cd1ac..c5ee2488a315f9cefb782b677b4519acbac4895d 100644 (file)
@@ -26,12 +26,12 @@ from blf import gettext as _
 class SelectPattern(bpy.types.Operator):
     '''Select object matching a naming pattern'''
     bl_idname = "object.select_pattern"
-    bl_label = "Select Pattern"
+    bl_label = _("Select Pattern")
     bl_options = {'REGISTER', 'UNDO'}
 
-    pattern = StringProperty(name="Pattern", description="Name filter using '*' and '?' wildcard chars", maxlen=32, default="*")
-    case_sensitive = BoolProperty(name="Case Sensitive", description="Do a case sensitive compare", default=False)
-    extend = BoolProperty(name="Extend", description="Extend the existing selection", default=True)
+    pattern = StringProperty(name=_("Pattern"), description=_("Name filter using '*' and '?' wildcard chars"), maxlen=32, default="*")
+    case_sensitive = BoolProperty(name=_("Case Sensitive"), description=_("Do a case sensitive compare"), default=False)
+    extend = BoolProperty(name=_("Extend"), description=_("Extend the existing selection"), default=True)
 
     def execute(self, context):
 
@@ -75,7 +75,7 @@ class SelectPattern(bpy.types.Operator):
 class SelectCamera(bpy.types.Operator):
     '''Select object matching a naming pattern'''
     bl_idname = "object.select_camera"
-    bl_label = "Select Camera"
+    bl_label = _("Select Camera")
     bl_options = {'REGISTER', 'UNDO'}
 
     @classmethod
@@ -96,17 +96,17 @@ class SelectCamera(bpy.types.Operator):
 class SelectHierarchy(bpy.types.Operator):
     '''Select object relative to the active objects position in the hierarchy'''
     bl_idname = "object.select_hierarchy"
-    bl_label = "Select Hierarchy"
+    bl_label = _("Select Hierarchy")
     bl_options = {'REGISTER', 'UNDO'}
 
     direction = EnumProperty(items=(
-                        ('PARENT', "Parent", ""),
-                        ('CHILD', "Child", "")),
-                name="Direction",
-                description="Direction to select in the hierarchy",
+                        ('PARENT', _("Parent"), ""),
+                        ('CHILD', _("Child"), "")),
+                name=_("Direction"),
+                description=_("Direction to select in the hierarchy"),
                 default='PARENT')
 
-    extend = BoolProperty(name="Extend", description="Extend the existing selection", default=False)
+    extend = BoolProperty(name=_("Extend"), description=_("Extend the existing selection"), default=False)
 
     @classmethod
     def poll(cls, context):
@@ -158,13 +158,13 @@ class SubdivisionSet(bpy.types.Operator):
     '''Sets a Subdivision Surface Level (1-5)'''
 
     bl_idname = "object.subdivision_set"
-    bl_label = "Subdivision Set"
+    bl_label = _("Subdivision Set")
     bl_options = {'REGISTER', 'UNDO'}
 
-    level = IntProperty(name="Level",
+    level = IntProperty(name=_("Level"),
             default=1, min=-100, max=100, soft_min=-6, soft_max=6)
 
-    relative = BoolProperty(name="Relative", description="Apply the subsurf level as an offset relative to the current level", default=False)
+    relative = BoolProperty(name=_("Relative"), description=_("Apply the subsurf level as an offset relative to the current level"), default=False)
 
     @classmethod
     def poll(cls, context):
@@ -228,19 +228,19 @@ class ShapeTransfer(bpy.types.Operator):
     '''Copy another selected objects active shape to this one by applying the relative offsets'''
 
     bl_idname = "object.shape_key_transfer"
-    bl_label = "Transfer Shape Key"
+    bl_label = _("Transfer Shape Key")
     bl_options = {'REGISTER', 'UNDO'}
 
     mode = EnumProperty(items=(
-                        ('OFFSET', "Offset", "Apply the relative positional offset"),
-                        ('RELATIVE_FACE', "Relative Face", "Calculate the geometricly relative position (using faces)."),
-                        ('RELATIVE_EDGE', "Relative Edge", "Calculate the geometricly relative position (using edges).")),
-                name="Transformation Mode",
-                description="Method to apply relative shape positions to the new shape",
+                        ('OFFSET', "Offset", _("Apply the relative positional offset")),
+                        ('RELATIVE_FACE', _("Relative Face"), _("Calculate the geometricly relative position (using faces).")),
+                        ('RELATIVE_EDGE', _("Relative Edge"), _("Calculate the geometricly relative position (using edges)."))),
+                name=_("Transformation Mode"),
+                description=_("Method to apply relative shape positions to the new shape"),
                 default='OFFSET')
 
-    use_clamp = BoolProperty(name="Clamp Offset",
-                description="Clamp the transformation to the distance each vertex moves in the original shape.",
+    use_clamp = BoolProperty(name=_("Clamp Offset"),
+                description=_("Clamp the transformation to the distance each vertex moves in the original shape."),
                 default=False)
 
     def _main(self, ob_act, objects, mode='OFFSET', use_clamp=False):
@@ -538,7 +538,7 @@ class MakeDupliFace(bpy.types.Operator):
 class IsolateTypeRender(bpy.types.Operator):
     '''Hide unselected render objects of same type as active by setting the hide render flag'''
     bl_idname = "object.isolate_type_render"
-    bl_label = "Restrict Render Unselected"
+    bl_label = _("Restrict Render Unselected")
     bl_options = {'REGISTER', 'UNDO'}
 
     def execute(self, context):
@@ -558,7 +558,7 @@ class IsolateTypeRender(bpy.types.Operator):
 class ClearAllRestrictRender(bpy.types.Operator):
     '''Reveal all render objects by setting the hide render flag'''
     bl_idname = "object.hide_render_clear_all"
-    bl_label = "Clear All Restrict Render"
+    bl_label = _("Clear All Restrict Render")
     bl_options = {'REGISTER', 'UNDO'}
 
     def execute(self, context):
index a64396d42c0027c0d5bb19bd370e2e2bbce8400e..f2b19923e327bb52da1a0c7ed42bc9a2613a04df 100644 (file)
@@ -27,7 +27,7 @@ from blf import gettext as _
 class MESH_OT_delete_edgeloop(bpy.types.Operator):
     '''Delete an edge loop by merging the faces on each side to a single face loop'''
     bl_idname = "mesh.delete_edgeloop"
-    bl_label = "Delete Edge Loop"
+    bl_label = _("Delete Edge Loop")
 
     def execute(self, context):
         if 'FINISHED' in bpy.ops.transform.edge_slide(value=1.0):
@@ -40,11 +40,11 @@ class MESH_OT_delete_edgeloop(bpy.types.Operator):
 rna_path_prop = StringProperty(name=_("Context Attributes"),
         description=_("rna context string"), maxlen=1024, default="")
 
-rna_reverse_prop = BoolProperty(name="Reverse",
-        description="Cycle backwards", default=False)
+rna_reverse_prop = BoolProperty(name=_("Reverse"),
+        description=_("Cycle backwards"), default=False)
 
-rna_relative_prop = BoolProperty(name="Relative",
-        description="Apply relative to the current value (delta)",
+rna_relative_prop = BoolProperty(name=_("Relative"),
+        description=_("Apply relative to the current value (delta)"),
         default=False)
 
 
@@ -78,12 +78,12 @@ def execute_context_assign(self, context):
 class BRUSH_OT_active_index_set(bpy.types.Operator):
     '''Set active sculpt/paint brush from it's number'''
     bl_idname = "brush.active_index_set"
-    bl_label = "Set Brush Number"
+    bl_label = _("Set Brush Number")
 
-    mode = StringProperty(name="mode",
-            description="Paint mode to set brush for", maxlen=1024)
-    index = IntProperty(name="number",
-            description="Brush number")
+    mode = StringProperty(name=_("mode"),
+            description=_("Paint mode to set brush for"), maxlen=1024)
+    index = IntProperty(name=_("number"),
+            description=_("Brush number"))
 
     _attr_dict = {"sculpt": "use_paint_sculpt",
                   "vertex_paint": "use_paint_vertex",
@@ -106,12 +106,12 @@ class BRUSH_OT_active_index_set(bpy.types.Operator):
 class WM_OT_context_set_boolean(bpy.types.Operator):
     '''Set a context value.'''
     bl_idname = "wm.context_set_boolean"
-    bl_label = "Context Set Boolean"
+    bl_label = _("Context Set Boolean")
     bl_options = {'UNDO', 'INTERNAL'}
 
     data_path = rna_path_prop
-    value = BoolProperty(name="Value",
-            description="Assignment value", default=True)
+    value = BoolProperty(name=_("Value"),
+            description=_("Assignment value"), default=True)
 
     execute = execute_context_assign
 
@@ -119,11 +119,11 @@ class WM_OT_context_set_boolean(bpy.types.Operator):
 class WM_OT_context_set_int(bpy.types.Operator):  # same as enum
     '''Set a context value.'''
     bl_idname = "wm.context_set_int"
-    bl_label = "Context Set"
+    bl_label = _("Context Set")
     bl_options = {'UNDO', 'INTERNAL'}
 
     data_path = rna_path_prop
-    value = IntProperty(name="Value", description="Assign value", default=0)
+    value = IntProperty(name=_("Value"), description=_("Assign value"), default=0)
     relative = rna_relative_prop
 
     execute = execute_context_assign
@@ -132,13 +132,13 @@ class WM_OT_context_set_int(bpy.types.Operator):  # same as enum
 class WM_OT_context_scale_int(bpy.types.Operator):
     '''Scale an int context value.'''
     bl_idname = "wm.context_scale_int"
-    bl_label = "Context Set"
+    bl_label = _("Context Set")
     bl_options = {'UNDO', 'INTERNAL'}
 
     data_path = rna_path_prop
-    value = FloatProperty(name="Value", description="Assign value", default=1.0)
-    always_step = BoolProperty(name="Always Step",
-        description="Always adjust the value by a minimum of 1 when 'value' is not 1.0.",
+    value = FloatProperty(name=_("Value"), description=_("Assign value"), default=1.0)
+    always_step = BoolProperty(name=_("Always Step"),
+        description=_("Always adjust the value by a minimum of 1 when 'value' is not 1.0."),
         default=True)
 
     def execute(self, context):
@@ -168,12 +168,12 @@ class WM_OT_context_scale_int(bpy.types.Operator):
 class WM_OT_context_set_float(bpy.types.Operator):  # same as enum
     '''Set a context value.'''
     bl_idname = "wm.context_set_float"
-    bl_label = "Context Set Float"
+    bl_label = _("Context Set Float")
     bl_options = {'UNDO', 'INTERNAL'}
 
     data_path = rna_path_prop
-    value = FloatProperty(name="Value",
-            description="Assignment value", default=0.0)
+    value = FloatProperty(name=_("Value"),
+            description=_("Assignment value"), default=0.0)
     relative = rna_relative_prop
 
     execute = execute_context_assign
@@ -182,12 +182,12 @@ class WM_OT_context_set_float(bpy.types.Operator):  # same as enum
 class WM_OT_context_set_string(bpy.types.Operator):  # same as enum
     '''Set a context value.'''
     bl_idname = "wm.context_set_string"
-    bl_label = "Context Set String"
+    bl_label = _("Context Set String")
     bl_options = {'UNDO', 'INTERNAL'}
 
     data_path = rna_path_prop
-    value = StringProperty(name="Value",
-            description="Assign value", maxlen=1024, default="")
+    value = StringProperty(name=_("Value"),
+            description=_("Assign value"), maxlen=1024, default="")
 
     execute = execute_context_assign
 
@@ -209,12 +209,12 @@ class WM_OT_context_set_enum(bpy.types.Operator):
 class WM_OT_context_set_value(bpy.types.Operator):
     '''Set a context value.'''
     bl_idname = "wm.context_set_value"
-    bl_label = "Context Set Value"
+    bl_label = _("Context Set Value")
     bl_options = {'UNDO', 'INTERNAL'}
 
     data_path = rna_path_prop
-    value = StringProperty(name="Value",
-            description="Assignment value (as a string)",
+    value = StringProperty(name=_("Value"),
+            description=_("Assignment value (as a string)"),
             maxlen=1024, default="")
 
     def execute(self, context):
@@ -227,7 +227,7 @@ class WM_OT_context_set_value(bpy.types.Operator):
 class WM_OT_context_toggle(bpy.types.Operator):
     '''Toggle a context value.'''
     bl_idname = "wm.context_toggle"
-    bl_label = "Context Toggle"
+    bl_label = _("Context Toggle")
     bl_options = {'UNDO', 'INTERNAL'}
 
     data_path = rna_path_prop
@@ -246,15 +246,15 @@ class WM_OT_context_toggle(bpy.types.Operator):
 class WM_OT_context_toggle_enum(bpy.types.Operator):
     '''Toggle a context value.'''
     bl_idname = "wm.context_toggle_enum"
-    bl_label = "Context Toggle Values"
+    bl_label = _("Context Toggle Values")
     bl_options = {'UNDO', 'INTERNAL'}
 
     data_path = rna_path_prop
-    value_1 = StringProperty(name="Value", \
-                description="Toggle enum", maxlen=1024, default="")
+    value_1 = StringProperty(name=_("Value"), \
+                description=_("Toggle enum"), maxlen=1024, default="")
 
-    value_2 = StringProperty(name="Value", \
-                description="Toggle enum", maxlen=1024, default="")
+    value_2 = StringProperty(name=_("Value"), \
+                description=_("Toggle enum"), maxlen=1024, default="")
 
     def execute(self, context):
 
@@ -273,7 +273,7 @@ class WM_OT_context_cycle_int(bpy.types.Operator):
     '''Set a context value. Useful for cycling active material, '''
     '''vertex keys, groups' etc.'''
     bl_idname = "wm.context_cycle_int"
-    bl_label = "Context Int Cycle"
+    bl_label = _("Context Int Cycle")
     bl_options = {'UNDO', 'INTERNAL'}
 
     data_path = rna_path_prop
@@ -307,7 +307,7 @@ class WM_OT_context_cycle_int(bpy.types.Operator):
 class WM_OT_context_cycle_enum(bpy.types.Operator):
     '''Toggle a context value.'''
     bl_idname = "wm.context_cycle_enum"
-    bl_label = "Context Enum Cycle"
+    bl_label = _("Context Enum Cycle")
     bl_options = {'UNDO', 'INTERNAL'}
 
     data_path = rna_path_prop
@@ -360,7 +360,7 @@ class WM_OT_context_cycle_array(bpy.types.Operator):
     '''Set a context array value.
     Useful for cycling the active mesh edit mode.'''
     bl_idname = "wm.context_cycle_array"
-    bl_label = "Context Array Cycle"
+    bl_label = _("Context Array Cycle")
     bl_options = {'UNDO', 'INTERNAL'}
 
     data_path = rna_path_prop
@@ -406,7 +406,7 @@ class WM_MT_context_menu_enum(bpy.types.Menu):
 
 class WM_OT_context_menu_enum(bpy.types.Operator):
     bl_idname = "wm.context_menu_enum"
-    bl_label = "Context Enum Menu"
+    bl_label = _("Context Enum Menu")
     bl_options = {'UNDO', 'INTERNAL'}
     data_path = rna_path_prop
 
@@ -420,12 +420,12 @@ class WM_OT_context_menu_enum(bpy.types.Operator):
 class WM_OT_context_set_id(bpy.types.Operator):
     '''Toggle a context value.'''
     bl_idname = "wm.context_set_id"
-    bl_label = "Set Library ID"
+    bl_label = _("Set Library ID")
     bl_options = {'UNDO', 'INTERNAL'}
 
     data_path = rna_path_prop
-    value = StringProperty(name="Value",
-            description="Assign value", maxlen=1024, default="")
+    value = StringProperty(name=_("Value"),
+            description=_("Assign value"), maxlen=1024, default="")
 
     def execute(self, context):
         value = self.value
@@ -452,23 +452,23 @@ class WM_OT_context_set_id(bpy.types.Operator):
         return {'FINISHED'}
 
 
-doc_id = StringProperty(name="Doc ID",
+doc_id = StringProperty(name=_("Doc ID"),
         description="", maxlen=1024, default="", options={'HIDDEN'})
 
-doc_new = StringProperty(name="Edit Description",
+doc_new = StringProperty(name=_("Edit Description"),
         description="", maxlen=1024, default="")
 
 
 class WM_OT_context_modal_mouse(bpy.types.Operator):
     '''Adjust arbitrary values with mouse input'''
     bl_idname = "wm.context_modal_mouse"
-    bl_label = "Context Modal Mouse"
+    bl_label = _("Context Modal Mouse")
     bl_options = {'INTERNAL'}
 
-    data_path_iter = StringProperty(description="The data path relative to the context, must point to an iterable.")
-    data_path_item = StringProperty(description="The data path from each iterable to the value (int or float)")
-    input_scale = FloatProperty(default=0.01, description="Scale the mouse movement by this value before applying the delta")
-    invert = BoolProperty(default=False, description="Invert the mouse input")
+    data_path_iter = StringProperty(description=_("The data path relative to the context, must point to an iterable."))
+    data_path_item = StringProperty(description=_("The data path from each iterable to the value (int or float)"))
+    input_scale = FloatProperty(default=0.01, description=_("Scale the mouse movement by this value before applying the delta"))
+    invert = BoolProperty(default=False, description=_("Invert the mouse input"))
     initial_x = IntProperty(options={'HIDDEN'})
 
     def _values_store(self, context):
@@ -551,7 +551,7 @@ class WM_OT_url_open(bpy.types.Operator):
     bl_idname = "wm.url_open"
     bl_label = ""
 
-    url = StringProperty(name="URL", description="URL to open")
+    url = StringProperty(name="URL", description=_("URL to open"))
 
     def execute(self, context):
         import webbrowser
@@ -565,7 +565,7 @@ class WM_OT_path_open(bpy.types.Operator):
     bl_idname = "wm.path_open"
     bl_label = ""
 
-    filepath = StringProperty(name="File Path", maxlen=1024, subtype='FILE_PATH')
+    filepath = StringProperty(name=_("File Path"), maxlen=1024, subtype='FILE_PATH')
 
     def execute(self, context):
         import sys
@@ -596,7 +596,7 @@ class WM_OT_path_open(bpy.types.Operator):
 class WM_OT_doc_view(bpy.types.Operator):
     '''Load online reference docs'''
     bl_idname = "wm.doc_view"
-    bl_label = "View Documentation"
+    bl_label = _("View Documentation")
 
     doc_id = doc_id
     if bpy.app.version_cycle == "release":
@@ -650,7 +650,7 @@ class WM_OT_doc_view(bpy.types.Operator):
 class WM_OT_doc_edit(bpy.types.Operator):
     '''Load online reference docs'''
     bl_idname = "wm.doc_edit"
-    bl_label = "Edit Documentation"
+    bl_label = _("Edit Documentation")
 
     doc_id = doc_id
     doc_new = doc_new
@@ -710,7 +710,7 @@ class WM_OT_doc_edit(bpy.types.Operator):
 
     def draw(self, context):
         layout = self.layout
-        layout.label(text="Descriptor ID: '%s'" % self.doc_id)
+        layout.label(text=_("Descriptor ID: '%s'") % self.doc_id)
         layout.prop(self, "doc_new", text="")
 
     def invoke(self, context, event):
@@ -718,23 +718,23 @@ class WM_OT_doc_edit(bpy.types.Operator):
         return wm.invoke_props_dialog(self, width=600)
 
 
-rna_path = StringProperty(name="Property Edit",
-    description="Property data_path edit", maxlen=1024, default="", options={'HIDDEN'})
+rna_path = StringProperty(name=_("Property Edit"),
+    description=_("Property data_path edit"), maxlen=1024, default="", options={'HIDDEN'})
 
-rna_value = StringProperty(name="Property Value",
-    description="Property value edit", maxlen=1024, default="")
+rna_value = StringProperty(name=_("Property Value"),
+    description=_("Property value edit"), maxlen=1024, default="")
 
-rna_property = StringProperty(name="Property Name",
-    description="Property name edit", maxlen=1024, default="")
+rna_property = StringProperty(name=_("Property Name"),
+    description=_("Property name edit"), maxlen=1024, default="")
 
-rna_min = FloatProperty(name="Min", default=0.0, precision=3)
-rna_max = FloatProperty(name="Max", default=1.0, precision=3)
+rna_min = FloatProperty(name=_("Min"), default=0.0, precision=3)
+rna_max = FloatProperty(name=_("Max"), default=1.0, precision=3)
 
 
 class WM_OT_properties_edit(bpy.types.Operator):
     '''Internal use (edit a property data_path)'''
     bl_idname = "wm.properties_edit"
-    bl_label = "Edit Property"
+    bl_label = _("Edit Property")
     bl_options = {'REGISTER'}  # only because invoke_props_popup requires.
 
     data_path = rna_path
@@ -742,7 +742,7 @@ class WM_OT_properties_edit(bpy.types.Operator):
     value = rna_value
     min = rna_min
     max = rna_max
-    description = StringProperty(name="Tip", default="")
+    description = StringProperty(name=_("Tip"), default="")
 
     def execute(self, context):
         data_path = self.data_path
@@ -818,7 +818,7 @@ class WM_OT_properties_edit(bpy.types.Operator):
 class WM_OT_properties_add(bpy.types.Operator):
     '''Internal use (edit a property data_path)'''
     bl_idname = "wm.properties_add"
-    bl_label = "Add Property"
+    bl_label = _("Add Property")
 
     data_path = rna_path
 
@@ -846,7 +846,7 @@ class WM_OT_properties_context_change(bpy.types.Operator):
     bl_idname = "wm.properties_context_change"
     bl_label = ""
 
-    context = StringProperty(name="Context", maxlen=32)
+    context = StringProperty(name=_("Context"), maxlen=32)
 
     def execute(self, context):
         context.space_data.context = (self.context)
@@ -856,7 +856,7 @@ class WM_OT_properties_context_change(bpy.types.Operator):
 class WM_OT_properties_remove(bpy.types.Operator):
     '''Internal use (edit a property data_path)'''
     bl_idname = "wm.properties_remove"
-    bl_label = "Remove Property"
+    bl_label = _("Remove Property")
 
     data_path = rna_path
     property = rna_property
@@ -869,9 +869,9 @@ class WM_OT_properties_remove(bpy.types.Operator):
 
 class WM_OT_keyconfig_activate(bpy.types.Operator):
     bl_idname = "wm.keyconfig_activate"
-    bl_label = "Activate Keyconfig"
+    bl_label = _("Activate Keyconfig")
 
-    filepath = StringProperty(name="File Path", maxlen=1024)
+    filepath = StringProperty(name=_("File Path"), maxlen=1024)
 
     def execute(self, context):
         bpy.utils.keyconfig_set(self.filepath)
@@ -880,7 +880,7 @@ class WM_OT_keyconfig_activate(bpy.types.Operator):
 
 class WM_OT_appconfig_default(bpy.types.Operator):
     bl_idname = "wm.appconfig_default"
-    bl_label = "Default Application Configuration"
+    bl_label = _("Default Application Configuration")
 
     def execute(self, context):
         import os
@@ -897,7 +897,7 @@ class WM_OT_appconfig_default(bpy.types.Operator):
 
 class WM_OT_appconfig_activate(bpy.types.Operator):
     bl_idname = "wm.appconfig_activate"
-    bl_label = "Activate Application Configuration"
+    bl_label = _("Activate Application Configuration")
 
     filepath = StringProperty(name="File Path", maxlen=1024)
 
@@ -928,7 +928,7 @@ class WM_OT_sysinfo(bpy.types.Operator):
 class WM_OT_copy_prev_settings(bpy.types.Operator):
     '''Copy settings from previous version'''
     bl_idname = "wm.copy_prev_settings"
-    bl_label = "Copy Previous Settings"
+    bl_label = _("Copy Previous Settings")
 
     def execute(self, context):
         import os
index 9bea4730511c86e2576b31aa217bc693e1cd3918..749c506a78a8ef8c0ec930d4018e9a8aa5a1db27 100644 (file)
@@ -201,7 +201,7 @@ class InputKeyMapPanel:
                 subcol = self.indented_layout(col, level + 1)
                 subrow = subcol.row()
                 subrow.prop(km, "show_expanded_items", text="", emboss=False)
-                subrow.label(text="%s (Global)" % km.name)
+                subrow.label(text=_("%s (Global)") % _(km.name) )
             else:
                 km.show_expanded_items = True
 
index 6a518e15f95b584863aeb5f13c248f19106174b2..209ef13a3120347ef89eaf3b3cc9fbd308661fc6 100644 (file)
@@ -242,7 +242,7 @@ class VIEW3D_MT_snap(bpy.types.Menu):
 
 
 class VIEW3D_MT_uv_map(bpy.types.Menu):
-    bl_label = "UV Mapping"
+    bl_label = _("UV Mapping")
 
     def draw(self, context):
         layout = self.layout
@@ -264,7 +264,7 @@ class VIEW3D_MT_uv_map(bpy.types.Menu):
         layout.separator()
 
         layout.operator("uv.project_from_view")
-        layout.operator("uv.project_from_view", text="Project from View (Bounds)").scale_to_bounds = True
+        layout.operator("uv.project_from_view", text=_("Project from View (Bounds)")).scale_to_bounds = True
 
         layout.separator()
 
@@ -398,7 +398,7 @@ class VIEW3D_MT_view_align_selected(bpy.types.Menu):
 
 
 class VIEW3D_MT_view_cameras(bpy.types.Menu):
-    bl_label = "Cameras"
+    bl_label = _("Cameras")
 
     def draw(self, context):
         layout = self.layout
@@ -436,7 +436,7 @@ class VIEW3D_MT_select_object(bpy.types.Menu):
 
 
 class VIEW3D_MT_select_pose(bpy.types.Menu):
-    bl_label = "Select"
+    bl_label = _("Select")
 
     def draw(self, context):
         layout = self.layout
@@ -445,35 +445,35 @@ class VIEW3D_MT_select_pose(bpy.types.Menu):
 
         layout.separator()
 
-        layout.operator("pose.select_all", text="Select/Deselect All")
-        layout.operator("pose.select_inverse", text="Inverse")
-        layout.operator("pose.select_flip_active", text="Flip Active")
-        layout.operator("pose.select_constraint_target", text="Constraint Target")
-        layout.operator("pose.select_linked", text="Linked")
+        layout.operator("pose.select_all", text=_("Select/Deselect All"))
+        layout.operator("pose.select_inverse", text=_("Inverse"))
+        layout.operator("pose.select_flip_active", text=_("Flip Active"))
+        layout.operator("pose.select_constraint_target", text=_("Constraint Target"))
+        layout.operator("pose.select_linked", text=_("Linked"))
 
         layout.separator()
 
-        layout.operator("pose.select_hierarchy", text="Parent").direction = 'PARENT'
-        layout.operator("pose.select_hierarchy", text="Child").direction = 'CHILD'
+        layout.operator("pose.select_hierarchy", text=_("Parent")).direction = 'PARENT'
+        layout.operator("pose.select_hierarchy", text=_("Child")).direction = 'CHILD'
 
         layout.separator()
 
-        props = layout.operator("pose.select_hierarchy", text="Extend Parent")
+        props = layout.operator("pose.select_hierarchy", text=_("Extend Parent"))
         props.extend = True
         props.direction = 'PARENT'
 
-        props = layout.operator("pose.select_hierarchy", text="Extend Child")
+        props = layout.operator("pose.select_hierarchy", text=_("Extend Child"))
         props.extend = True
         props.direction = 'CHILD'
 
         layout.separator()
 
-        layout.operator_menu_enum("pose.select_grouped", "type", text="Grouped")
-        layout.operator("object.select_pattern", text="Select Pattern...")
+        layout.operator_menu_enum("pose.select_grouped", "type", text=_("Grouped"))
+        layout.operator("object.select_pattern", text=_("Select Pattern..."))
 
 
 class VIEW3D_MT_select_particle(bpy.types.Menu):
-    bl_label = "Select"
+    bl_label = _("Select")
 
     def draw(self, context):
         layout = self.layout
@@ -482,7 +482,7 @@ class VIEW3D_MT_select_particle(bpy.types.Menu):
 
         layout.separator()
 
-        layout.operator("particle.select_all", text="Select/Deselect All")
+        layout.operator("particle.select_all", text=_("Select/Deselect All"))
         layout.operator("particle.select_linked")
         layout.operator("particle.select_inverse")
 
@@ -493,12 +493,12 @@ class VIEW3D_MT_select_particle(bpy.types.Menu):
 
         layout.separator()
 
-        layout.operator("particle.select_roots", text="Roots")
-        layout.operator("particle.select_tips", text="Tips")
+        layout.operator("particle.select_roots", text=_("Roots"))
+        layout.operator("particle.select_tips", text=_("Tips"))
 
 
 class VIEW3D_MT_select_edit_mesh(bpy.types.Menu):
-    bl_label = "Select"
+    bl_label = _("Select")
 
     def draw(self, context):
         layout = self.layout
@@ -508,40 +508,40 @@ class VIEW3D_MT_select_edit_mesh(bpy.types.Menu):
 
         layout.separator()
 
-        layout.operator("mesh.select_all", text="Select/Deselect All")
-        layout.operator("mesh.select_inverse", text="Inverse")
+        layout.operator("mesh.select_all", text=_("Select/Deselect All"))
+        layout.operator("mesh.select_inverse", text=_("Inverse"))
 
         layout.separator()
 
-        layout.operator("mesh.select_random", text="Random")
-        layout.operator("mesh.select_nth", text="Every N Number of Verts")
-        layout.operator("mesh.edges_select_sharp", text="Sharp Edges")
-        layout.operator("mesh.faces_select_linked_flat", text="Linked Flat Faces")
-        layout.operator("mesh.faces_select_interior", text="Interior Faces")
-        layout.operator("mesh.select_axis", text="Side of Active")
+        layout.operator("mesh.select_random", text=_("Random"))
+        layout.operator("mesh.select_nth", text=_("Every N Number of Verts"))
+        layout.operator("mesh.edges_select_sharp", text=_("Sharp Edges"))
+        layout.operator("mesh.faces_select_linked_flat", text=_("Linked Flat Faces"))
+        layout.operator("mesh.faces_select_interior", text=_("Interior Faces"))
+        layout.operator("mesh.select_axis", text=_("Side of Active"))
 
         layout.separator()
 
-        layout.operator("mesh.select_by_number_vertices", text="Triangles").type = 'TRIANGLES'
-        layout.operator("mesh.select_by_number_vertices", text="Quads").type = 'QUADS'
+        layout.operator("mesh.select_by_number_vertices", text=_("Triangles")).type = 'TRIANGLES'
+        layout.operator("mesh.select_by_number_vertices", text=_("Quads")).type = 'QUADS'
         if context.scene.tool_settings.mesh_select_mode[2] == False:
-                layout.operator("mesh.select_non_manifold", text="Non Manifold")
-        layout.operator("mesh.select_by_number_vertices", text="Loose Verts/Edges").type = 'OTHER'
-        layout.operator("mesh.select_similar", text="Similar")
+                layout.operator("mesh.select_non_manifold", text=_("Non Manifold"))
+        layout.operator("mesh.select_by_number_vertices", text=_("Loose Verts/Edges")).type = 'OTHER'
+        layout.operator("mesh.select_similar", text=_("Similar"))
 
         layout.separator()
 
-        layout.operator("mesh.select_less", text="Less")
-        layout.operator("mesh.select_more", text="More")
+        layout.operator("mesh.select_less", text=_("Less"))
+        layout.operator("mesh.select_more", text=_("More"))
 
         layout.separator()
 
-        layout.operator("mesh.select_mirror", text="Mirror")
+        layout.operator("mesh.select_mirror", text=_("Mirror"))
 
-        layout.operator("mesh.select_linked", text="Linked")
-        layout.operator("mesh.select_vertex_path", text="Vertex Path")
-        layout.operator("mesh.loop_multi_select", text="Edge Loop")
-        layout.operator("mesh.loop_multi_select", text="Edge Ring").ring = True
+        layout.operator("mesh.select_linked", text=_("Linked"))
+        layout.operator("mesh.select_vertex_path", text=_("Vertex Path"))
+        layout.operator("mesh.loop_multi_select", text=_("Edge Loop"))
+        layout.operator("mesh.loop_multi_select", text=_("Edge Ring")).ring = True
 
         layout.separator()
 
@@ -550,7 +550,7 @@ class VIEW3D_MT_select_edit_mesh(bpy.types.Menu):
 
 
 class VIEW3D_MT_select_edit_curve(bpy.types.Menu):
-    bl_label = "Select"
+    bl_label = _("Select")
 
     def draw(self, context):
         layout = self.layout
@@ -560,10 +560,10 @@ class VIEW3D_MT_select_edit_curve(bpy.types.Menu):
 
         layout.separator()
 
-        layout.operator("curve.select_all", text="Select/Deselect All")
+        layout.operator("curve.select_all", text=_("Select/Deselect All"))
         layout.operator("curve.select_inverse")
         layout.operator("curve.select_random")
-        layout.operator("curve.select_nth", text="Every Nth Number of Points")
+        layout.operator("curve.select_nth", text=_("Every Nth Number of Points"))
 
         layout.separator()
 
@@ -579,7 +579,7 @@ class VIEW3D_MT_select_edit_curve(bpy.types.Menu):
 
 
 class VIEW3D_MT_select_edit_surface(bpy.types.Menu):
-    bl_label = "Select"
+    bl_label = _("Select")
 
     def draw(self, context):
         layout = self.layout
@@ -589,10 +589,10 @@ class VIEW3D_MT_select_edit_surface(bpy.types.Menu):
 
         layout.separator()
 
-        layout.operator("curve.select_all", text="Select/Deselect All")
+        layout.operator("curve.select_all", text=_("Select/Deselect All"))
         layout.operator("curve.select_inverse")
         layout.operator("curve.select_random")
-        layout.operator("curve.select_nth", text="Every Nth Number of Points")
+        layout.operator("curve.select_nth", text=_("Every Nth Number of Points"))
 
         layout.separator()
 
@@ -605,7 +605,7 @@ class VIEW3D_MT_select_edit_surface(bpy.types.Menu):
 
 
 class VIEW3D_MT_select_edit_metaball(bpy.types.Menu):
-    bl_label = "Select"
+    bl_label = _("Select")
 
     def draw(self, context):
         layout = self.layout
@@ -623,7 +623,7 @@ class VIEW3D_MT_select_edit_metaball(bpy.types.Menu):
 
 
 class VIEW3D_MT_select_edit_lattice(bpy.types.Menu):
-    bl_label = "Select"
+    bl_label = _("Select")
 
     def draw(self, context):
         layout = self.layout
@@ -632,11 +632,11 @@ class VIEW3D_MT_select_edit_lattice(bpy.types.Menu):
 
         layout.separator()
 
-        layout.operator("lattice.select_all", text="Select/Deselect All")
+        layout.operator("lattice.select_all", text=_("Select/Deselect All"))
 
 
 class VIEW3D_MT_select_edit_armature(bpy.types.Menu):
-    bl_label = "Select"
+    bl_label = _("Select")
 
     def draw(self, context):
         layout = self.layout
@@ -645,29 +645,29 @@ class VIEW3D_MT_select_edit_armature(bpy.types.Menu):
 
         layout.separator()
 
-        layout.operator("armature.select_all", text="Select/Deselect All")
-        layout.operator("armature.select_inverse", text="Inverse")
+        layout.operator("armature.select_all", text=_("Select/Deselect All"))
+        layout.operator("armature.select_inverse", text=_("Inverse"))
 
         layout.separator()
 
-        layout.operator("armature.select_hierarchy", text="Parent").direction = 'PARENT'
-        layout.operator("armature.select_hierarchy", text="Child").direction = 'CHILD'
+        layout.operator("armature.select_hierarchy", text=_("Parent")).direction = 'PARENT'
+        layout.operator("armature.select_hierarchy", text=_("Child")).direction = 'CHILD'
 
         layout.separator()
 
-        props = layout.operator("armature.select_hierarchy", text="Extend Parent")
+        props = layout.operator("armature.select_hierarchy", text=_("Extend Parent"))
         props.extend = True
         props.direction = 'PARENT'
 
-        props = layout.operator("armature.select_hierarchy", text="Extend Child")
+        props = layout.operator("armature.select_hierarchy", text=_("Extend Child"))
         props.extend = True
         props.direction = 'CHILD'
 
-        layout.operator("object.select_pattern", text="Select Pattern...")
+        layout.operator("object.select_pattern", text=_("Select Pattern..."))
 
 
 class VIEW3D_MT_select_face(bpy.types.Menu):  # XXX no matching enum
-    bl_label = "Select"
+    bl_label = _("Select")
 
     def draw(self, context):
         # layout = self.layout
@@ -761,7 +761,7 @@ class VIEW3D_MT_object_clear(bpy.types.Menu):
 
 
 class VIEW3D_MT_object_specials(bpy.types.Menu):
-    bl_label = "Specials"
+    bl_label = _("Specials")
 
     @classmethod
     def poll(cls, context):
@@ -775,14 +775,14 @@ class VIEW3D_MT_object_specials(bpy.types.Menu):
         if obj.type == 'CAMERA':
             layout.operator_context = 'INVOKE_REGION_WIN'
 
-            props = layout.operator("wm.context_modal_mouse", text="Camera Lens Angle")
+            props = layout.operator("wm.context_modal_mouse", text=_("Camera Lens Angle"))
             props.data_path_iter = "selected_editable_objects"
             props.data_path_item = "data.lens"
             props.input_scale = 0.1
 
             if not obj.data.dof_object:
                 #layout.label(text="Test Has DOF obj");
-                props = layout.operator("wm.context_modal_mouse", text="DOF Distance")
+                props = layout.operator("wm.context_modal_mouse", text=_("DOF Distance"))
                 props.data_path_iter = "selected_editable_objects"
                 props.data_path_item = "data.dof_distance"
                 props.input_scale = 0.02
@@ -790,12 +790,12 @@ class VIEW3D_MT_object_specials(bpy.types.Menu):
         if obj.type in {'CURVE', 'FONT'}:
             layout.operator_context = 'INVOKE_REGION_WIN'
 
-            props = layout.operator("wm.context_modal_mouse", text="Extrude Size")
+            props = layout.operator("wm.context_modal_mouse", text=_("Extrude Size"))
             props.data_path_iter = "selected_editable_objects"
             props.data_path_item = "data.extrude"
             props.input_scale = 0.01
 
-            props = layout.operator("wm.context_modal_mouse", text="Width Size")
+            props = layout.operator("wm.context_modal_mouse", text=_("Width Size"))
             props.data_path_iter = "selected_editable_objects"
             props.data_path_item = "data.offset"
             props.input_scale = 0.01
@@ -803,7 +803,7 @@ class VIEW3D_MT_object_specials(bpy.types.Menu):
         if obj.type == 'EMPTY':
             layout.operator_context = 'INVOKE_REGION_WIN'
 
-            props = layout.operator("wm.context_modal_mouse", text="Empty Draw Size")
+            props = layout.operator("wm.context_modal_mouse", text=_("Empty Draw Size"))
             props.data_path_iter = "selected_editable_objects"
             props.data_path_item = "empty_draw_size"
             props.input_scale = 0.01
@@ -811,34 +811,34 @@ class VIEW3D_MT_object_specials(bpy.types.Menu):
         if obj.type == 'LAMP':
             layout.operator_context = 'INVOKE_REGION_WIN'
 
-            props = layout.operator("wm.context_modal_mouse", text="Energy")
+            props = layout.operator("wm.context_modal_mouse", text=_("Energy"))
             props.data_path_iter = "selected_editable_objects"
             props.data_path_item = "data.energy"
 
             if obj.data.type in {'SPOT', 'AREA', 'POINT'}:
-                props = layout.operator("wm.context_modal_mouse", text="Falloff Distance")
+                props = layout.operator("wm.context_modal_mouse", text=_("Falloff Distance"))
                 props.data_path_iter = "selected_editable_objects"
                 props.data_path_item = "data.distance"
                 props.input_scale = 0.1
 
             if obj.data.type == 'SPOT':
                 layout.separator()
-                props = layout.operator("wm.context_modal_mouse", text="Spot Size")
+                props = layout.operator("wm.context_modal_mouse", text=_("Spot Size"))
                 props.data_path_iter = "selected_editable_objects"
                 props.data_path_item = "data.spot_size"
                 props.input_scale = 0.01
 
-                props = layout.operator("wm.context_modal_mouse", text="Spot Blend")
+                props = layout.operator("wm.context_modal_mouse", text=_("Spot Blend"))
                 props.data_path_iter = "selected_editable_objects"
                 props.data_path_item = "data.spot_blend"
                 props.input_scale = -0.01
 
-                props = layout.operator("wm.context_modal_mouse", text="Clip Start")
+                props = layout.operator("wm.context_modal_mouse", text=_("Clip Start"))
                 props.data_path_iter = "selected_editable_objects"
                 props.data_path_item = "data.shadow_buffer_clip_start"
                 props.input_scale = 0.05
 
-                props = layout.operator("wm.context_modal_mouse", text="Clip End")
+                props = layout.operator("wm.context_modal_mouse", text=_("Clip End"))
                 props.data_path_iter = "selected_editable_objects"
                 props.data_path_item = "data.shadow_buffer_clip_end"
                 props.input_scale = 0.05
@@ -987,7 +987,7 @@ class VIEW3D_MT_object_game(bpy.types.Menu):
 
 
 class VIEW3D_MT_paint_vertex(bpy.types.Menu):
-    bl_label = "Paint"
+    bl_label = _("Paint")
 
     def draw(self, context):
         layout = self.layout
@@ -1002,7 +1002,7 @@ class VIEW3D_MT_paint_vertex(bpy.types.Menu):
 
 
 class VIEW3D_MT_hook(bpy.types.Menu):
-    bl_label = "Hooks"
+    bl_label = _("Hooks")
 
     def draw(self, context):
         layout = self.layout
@@ -1021,32 +1021,32 @@ class VIEW3D_MT_hook(bpy.types.Menu):
 
 
 class VIEW3D_MT_vertex_group(bpy.types.Menu):
-    bl_label = "Vertex Groups"
+    bl_label = _("Vertex Groups")
 
     def draw(self, context):
         layout = self.layout
         layout.operator_context = 'EXEC_AREA'
-        layout.operator("object.vertex_group_assign", text="Assign to New Group").new = True
+        layout.operator("object.vertex_group_assign", text=_("Assign to New Group")).new = True
 
         ob = context.active_object
         if ob.mode == 'EDIT':
             if ob.vertex_groups.active:
                 layout.separator()
-                layout.operator("object.vertex_group_assign", text="Assign to Active Group")
-                layout.operator("object.vertex_group_remove_from", text="Remove from Active Group")
-                layout.operator("object.vertex_group_remove_from", text="Remove from All").all = True
+                layout.operator("object.vertex_group_assign", text=_("Assign to Active Group"))
+                layout.operator("object.vertex_group_remove_from", text=_("Remove from Active Group"))
+                layout.operator("object.vertex_group_remove_from", text=_("Remove from All")).all = True
                 layout.separator()
 
         if ob.vertex_groups.active:
-            layout.operator_menu_enum("object.vertex_group_set_active", "group", text="Set Active Group")
-            layout.operator("object.vertex_group_remove", text="Remove Active Group")
-            layout.operator("object.vertex_group_remove", text="Remove All Groups").all = True
+            layout.operator_menu_enum("object.vertex_group_set_active", "group", text=_("Set Active Group"))
+            layout.operator("object.vertex_group_remove", text=_("Remove Active Group"))
+            layout.operator("object.vertex_group_remove", text=_("Remove All Groups")).all = True
 
 # ********** Weight paint menu **********
 
 
 class VIEW3D_MT_paint_weight(bpy.types.Menu):
-    bl_label = "Weights"
+    bl_label = _("Weights")
 
     def draw(self, context):
         layout = self.layout
@@ -1057,16 +1057,16 @@ class VIEW3D_MT_paint_weight(bpy.types.Menu):
 
         layout.separator()
 
-        layout.operator("paint.weight_from_bones", text="Assign Automatic From Bones").type = 'AUTOMATIC'
-        layout.operator("paint.weight_from_bones", text="Assign From Bone Envelopes").type = 'ENVELOPES'
+        layout.operator("paint.weight_from_bones", text=_("Assign Automatic From Bones")).type = 'AUTOMATIC'
+        layout.operator("paint.weight_from_bones", text=_("Assign From Bone Envelopes")).type = 'ENVELOPES'
 
         layout.separator()
 
-        layout.operator("object.vertex_group_normalize_all", text="Normalize All")
-        layout.operator("object.vertex_group_normalize", text="Normalize")
-        layout.operator("object.vertex_group_invert", text="Invert")
-        layout.operator("object.vertex_group_clean", text="Clean")
-        layout.operator("object.vertex_group_levels", text="Levels")
+        layout.operator("object.vertex_group_normalize_all", text=_("Normalize All"))
+        layout.operator("object.vertex_group_normalize", text=_("Normalize"))
+        layout.operator("object.vertex_group_invert", text=_("Invert"))
+        layout.operator("object.vertex_group_clean", text=_("Clean"))
+        layout.operator("object.vertex_group_levels", text=_("Levels"))
 
         layout.separator()
 
@@ -1076,7 +1076,7 @@ class VIEW3D_MT_paint_weight(bpy.types.Menu):
 
 
 class VIEW3D_MT_sculpt(bpy.types.Menu):
-    bl_label = "Sculpt"
+    bl_label = _("Sculpt")
 
     def draw(self, context):
         layout = self.layout
@@ -1114,18 +1114,18 @@ class VIEW3D_MT_sculpt(bpy.types.Menu):
                 layout.operator("sculpt.set_persistent_base")
 
         layout.separator()
-        layout.prop(sculpt, "use_threaded", text="Threaded Sculpt")
+        layout.prop(sculpt, "use_threaded", text=_("Threaded Sculpt"))
         layout.prop(sculpt, "show_brush")
 
         # TODO, make availabel from paint menu!
-        layout.prop(tool_settings, "sculpt_paint_use_unified_size", text="Unify Size")
-        layout.prop(tool_settings, "sculpt_paint_use_unified_strength", text="Unify Strength")
+        layout.prop(tool_settings, "sculpt_paint_use_unified_size", text=_("Unify Size"))
+        layout.prop(tool_settings, "sculpt_paint_use_unified_strength", text=_("Unify Strength"))
 
 # ********** Particle menu **********
 
 
 class VIEW3D_MT_particle(bpy.types.Menu):
-    bl_label = "Particle"
+    bl_label = _("Particle")
 
     def draw(self, context):
         layout = self.layout
@@ -1157,7 +1157,7 @@ class VIEW3D_MT_particle(bpy.types.Menu):
 
 
 class VIEW3D_MT_particle_specials(bpy.types.Menu):
-    bl_label = "Specials"
+    bl_label = _("Specials")
 
     def draw(self, context):
         layout = self.layout
@@ -1181,7 +1181,7 @@ class VIEW3D_MT_particle_showhide(ShowHideMenu, bpy.types.Menu):
 
 
 class VIEW3D_MT_pose(bpy.types.Menu):
-    bl_label = "Pose"
+    bl_label = _("Pose")
 
     def draw(self, context):
         layout = self.layout
@@ -1212,7 +1212,7 @@ class VIEW3D_MT_pose(bpy.types.Menu):
 
         layout.operator("pose.copy")
         layout.operator("pose.paste")
-        layout.operator("pose.paste", text="Paste X-Flipped Pose").flipped = True
+        layout.operator("pose.paste", text=_("Paste X-Flipped Pose")).flipped = True
 
         layout.separator()
 
@@ -1229,9 +1229,9 @@ class VIEW3D_MT_pose(bpy.types.Menu):
         layout.separator()
 
         layout.operator_context = 'EXEC_AREA'
-        layout.operator("pose.autoside_names", text="AutoName Left/Right").axis = 'XAXIS'
-        layout.operator("pose.autoside_names", text="AutoName Front/Back").axis = 'YAXIS'
-        layout.operator("pose.autoside_names", text="AutoName Top/Bottom").axis = 'ZAXIS'
+        layout.operator("pose.autoside_names", text=_("AutoName Left/Right")).axis = 'XAXIS'
+        layout.operator("pose.autoside_names", text=_("AutoName Front/Back")).axis = 'YAXIS'
+        layout.operator("pose.autoside_names", text=_("AutoName Top/Bottom")).axis = 'ZAXIS'
 
         layout.operator("pose.flip_names")
 
@@ -1240,32 +1240,32 @@ class VIEW3D_MT_pose(bpy.types.Menu):
         layout.separator()
 
         layout.operator_context = 'INVOKE_AREA'
-        layout.operator("pose.armature_layers", text="Change Armature Layers...")
-        layout.operator("pose.bone_layers", text="Change Bone Layers...")
+        layout.operator("pose.armature_layers", text=_("Change Armature Layers..."))
+        layout.operator("pose.bone_layers", text=_("Change Bone Layers..."))
 
         layout.separator()
 
         layout.menu("VIEW3D_MT_pose_showhide")
-        layout.operator_menu_enum("pose.flags_set", 'mode', text="Bone Settings")
+        layout.operator_menu_enum("pose.flags_set", 'mode', text=_("Bone Settings"))
 
 
 class VIEW3D_MT_pose_transform(bpy.types.Menu):
-    bl_label = "Clear Transform"
+    bl_label = _("Clear Transform")
 
     def draw(self, context):
         layout = self.layout
 
-        layout.operator("pose.transforms_clear", text="All")
+        layout.operator("pose.transforms_clear", text=_("All"))
 
-        layout.operator("pose.loc_clear", text="Location")
-        layout.operator("pose.rot_clear", text="Rotation")
-        layout.operator("pose.scale_clear", text="Scale")
+        layout.operator("pose.loc_clear", text=_("Location"))
+        layout.operator("pose.rot_clear", text=_("Rotation"))
+        layout.operator("pose.scale_clear", text=_("Scale"))
 
-        layout.label(text="Origin")
+        layout.label(text=_("Origin"))
 
 
 class VIEW3D_MT_pose_slide(bpy.types.Menu):
-    bl_label = "In-Betweens"
+    bl_label = _("In-Betweens")
 
     def draw(self, context):
         layout = self.layout
@@ -1276,7 +1276,7 @@ class VIEW3D_MT_pose_slide(bpy.types.Menu):
 
 
 class VIEW3D_MT_pose_propagate(bpy.types.Menu):
-    bl_label = "Propagate"
+    bl_label = _("Propagate")
 
     def draw(self, context):
         layout = self.layout
@@ -1285,41 +1285,41 @@ class VIEW3D_MT_pose_propagate(bpy.types.Menu):
 
         layout.separator()
 
-        layout.operator("pose.propagate", text="To Next Keyframe").mode = 'NEXT_KEY'
-        layout.operator("pose.propagate", text="To Last Keyframe (Make Cyclic)").mode = 'LAST_KEY'
+        layout.operator("pose.propagate", text=_("To Next Keyframe")).mode = 'NEXT_KEY'
+        layout.operator("pose.propagate", text=_("To Last Keyframe (Make Cyclic)")).mode = 'LAST_KEY'
 
         layout.separator()
 
-        layout.operator("pose.propagate", text="On Selected Markers").mode = 'SELECTED_MARKERS'
+        layout.operator("pose.propagate", text=_("On Selected Markers")).mode = 'SELECTED_MARKERS'
 
 
 class VIEW3D_MT_pose_library(bpy.types.Menu):
-    bl_label = "Pose Library"
+    bl_label = _("Pose Library")
 
     def draw(self, context):
         layout = self.layout
 
-        layout.operator("poselib.browse_interactive", text="Browse Poses...")
+        layout.operator("poselib.browse_interactive", text=_("Browse Poses..."))
 
         layout.separator()
 
-        layout.operator("poselib.pose_add", text="Add Pose...")
-        layout.operator("poselib.pose_rename", text="Rename Pose...")
-        layout.operator("poselib.pose_remove", text="Remove Pose...")
+        layout.operator("poselib.pose_add", text=_("Add Pose..."))
+        layout.operator("poselib.pose_rename", text=_("Rename Pose..."))
+        layout.operator("poselib.pose_remove", text=_("Remove Pose..."))
 
 
 class VIEW3D_MT_pose_motion(bpy.types.Menu):
-    bl_label = "Motion Paths"
+    bl_label = _("Motion Paths")
 
     def draw(self, context):
         layout = self.layout
 
-        layout.operator("pose.paths_calculate", text="Calculate")
-        layout.operator("pose.paths_clear", text="Clear")
+        layout.operator("pose.paths_calculate", text=_("Calculate"))
+        layout.operator("pose.paths_clear", text=_("Clear"))
 
 
 class VIEW3D_MT_pose_group(bpy.types.Menu):
-    bl_label = "Bone Groups"
+    bl_label = _("Bone Groups")
 
     def draw(self, context):
         layout = self.layout
@@ -1333,7 +1333,7 @@ class VIEW3D_MT_pose_group(bpy.types.Menu):
 
 
 class VIEW3D_MT_pose_ik(bpy.types.Menu):
-    bl_label = "Inverse Kinematics"
+    bl_label = _("Inverse Kinematics")
 
     def draw(self, context):
         layout = self.layout
@@ -1343,12 +1343,12 @@ class VIEW3D_MT_pose_ik(bpy.types.Menu):
 
 
 class VIEW3D_MT_pose_constraints(bpy.types.Menu):
-    bl_label = "Constraints"
+    bl_label = _("Constraints")
 
     def draw(self, context):
         layout = self.layout
 
-        layout.operator("pose.constraint_add_with_targets", text="Add (With Targets)...")
+        layout.operator("pose.constraint_add_with_targets", text=_("Add (With Targets)..."))
         layout.operator("pose.constraints_copy")
         layout.operator("pose.constraints_clear")
 
@@ -1358,7 +1358,7 @@ class VIEW3D_MT_pose_showhide(ShowHideMenu, bpy.types.Menu):
 
 
 class VIEW3D_MT_pose_apply(bpy.types.Menu):
-    bl_label = "Apply"
+    bl_label = _("Apply")
 
     def draw(self, context):
         layout = self.layout
@@ -1371,7 +1371,7 @@ class VIEW3D_MT_pose_apply(bpy.types.Menu):
 
 
 class VIEW3D_MT_edit_mesh(bpy.types.Menu):
-    bl_label = "Mesh"
+    bl_label = _("Mesh")
 
     def draw(self, context):
         layout = self.layout
@@ -1390,14 +1390,14 @@ class VIEW3D_MT_edit_mesh(bpy.types.Menu):
 
         layout.separator()
 
-        layout.menu("VIEW3D_MT_uv_map", text="UV Unwrap...")
+        layout.menu("VIEW3D_MT_uv_map", text=_("UV Unwrap..."))
 
         layout.separator()
 
-        layout.operator("view3d.edit_mesh_extrude_move_normal", text="Extrude Region")
-        layout.operator("view3d.edit_mesh_extrude_individual_move", text="Extrude Individual")
+        layout.operator("view3d.edit_mesh_extrude_move_normal", text=_("Extrude Region"))
+        layout.operator("view3d.edit_mesh_extrude_individual_move", text=_("Extrude Individual"))
         layout.operator("mesh.duplicate_move")
-        layout.operator("mesh.delete", text="Delete...")
+        layout.operator("mesh.delete", text=_("Delete..."))
 
         layout.separator()
 
@@ -1418,22 +1418,22 @@ class VIEW3D_MT_edit_mesh(bpy.types.Menu):
 
 
 class VIEW3D_MT_edit_mesh_specials(bpy.types.Menu):
-    bl_label = "Specials"
+    bl_label = _("Specials")
 
     def draw(self, context):
         layout = self.layout
 
         layout.operator_context = 'INVOKE_REGION_WIN'
 
-        layout.operator("mesh.subdivide", text="Subdivide")
-        layout.operator("mesh.subdivide", text="Subdivide Smooth").smoothness = 1.0
-        layout.operator("mesh.merge", text="Merge...")
+        layout.operator("mesh.subdivide", text=_("Subdivide"))
+        layout.operator("mesh.subdivide", text=_("Subdivide Smooth")).smoothness = 1.0
+        layout.operator("mesh.merge", text=_("Merge..."))
         layout.operator("mesh.remove_doubles")
-        layout.operator("mesh.hide", text="Hide")
-        layout.operator("mesh.reveal", text="Reveal")
+        layout.operator("mesh.hide", text=_("Hide"))
+        layout.operator("mesh.reveal", text=_("Reveal"))
         layout.operator("mesh.select_inverse")
         layout.operator("mesh.flip_normals")
-        layout.operator("mesh.vertices_smooth", text="Smooth")
+        layout.operator("mesh.vertices_smooth", text=_("Smooth"))
         # layout.operator("mesh.bevel", text="Bevel")
         layout.operator("mesh.faces_shade_smooth")
         layout.operator("mesh.faces_shade_flat")
@@ -1443,34 +1443,34 @@ class VIEW3D_MT_edit_mesh_specials(bpy.types.Menu):
 
 
 class VIEW3D_MT_edit_mesh_select_mode(bpy.types.Menu):
-    bl_label = "Mesh Select Mode"
+    bl_label = _("Mesh Select Mode")
 
     def draw(self, context):
         layout = self.layout
 
         layout.operator_context = 'INVOKE_REGION_WIN'
 
-        prop = layout.operator("wm.context_set_value", text="Vertex", icon='VERTEXSEL')
+        prop = layout.operator("wm.context_set_value", text=_("Vertex"), icon='VERTEXSEL')
         prop.value = "(True, False, False)"
         prop.data_path = "tool_settings.mesh_select_mode"
 
-        prop = layout.operator("wm.context_set_value", text="Edge", icon='EDGESEL')
+        prop = layout.operator("wm.context_set_value", text=_("Edge"), icon='EDGESEL')
         prop.value = "(False, True, False)"
         prop.data_path = "tool_settings.mesh_select_mode"
 
-        prop = layout.operator("wm.context_set_value", text="Face", icon='FACESEL')
+        prop = layout.operator("wm.context_set_value", text=_("Face"), icon='FACESEL')
         prop.value = "(False, False, True)"
         prop.data_path = "tool_settings.mesh_select_mode"
 
 
 class VIEW3D_MT_edit_mesh_extrude(bpy.types.Menu):
-    bl_label = "Extrude"
+    bl_label = _("Extrude")
 
     _extrude_funcs = { \
-        "VERT": lambda layout: layout.operator("mesh.extrude_vertices_move", text="Vertices Only"),
-        "EDGE": lambda layout: layout.operator("mesh.extrude_edges_move", text="Edges Only"),
-        "FACE": lambda layout: layout.operator("mesh.extrude_faces_move", text="Individual Faces"),
-        "REGION": lambda layout: layout.operator("view3d.edit_mesh_extrude_move_normal", text="Region"),
+        "VERT": lambda layout: layout.operator("mesh.extrude_vertices_move", text=_("Vertices Only")),
+        "EDGE": lambda layout: layout.operator("mesh.extrude_edges_move", text=_("Edges Only")),
+        "FACE": lambda layout: layout.operator("mesh.extrude_faces_move", text=_("Individual Faces")),
+        "REGION": lambda layout: layout.operator("view3d.edit_mesh_extrude_move_normal", text=_("Region")),
     }
 
     @staticmethod
@@ -1499,7 +1499,7 @@ class VIEW3D_MT_edit_mesh_extrude(bpy.types.Menu):
 
 class VIEW3D_OT_edit_mesh_extrude_individual_move(bpy.types.Operator):
     "Extrude individual elements and move"
-    bl_label = "Extrude Individual and Move"
+    bl_label = _("Extrude Individual and Move")
     bl_idname = "view3d.edit_mesh_extrude_individual_move"
 
     def execute(self, context):
@@ -1528,7 +1528,7 @@ class VIEW3D_OT_edit_mesh_extrude_individual_move(bpy.types.Operator):
 
 class VIEW3D_OT_edit_mesh_extrude_move(bpy.types.Operator):
     "Extrude and move along normals"
-    bl_label = "Extrude and Move on Normals"
+    bl_label = _("Extrude and Move on Normals")
     bl_idname = "view3d.edit_mesh_extrude_move_normal"
 
     def execute(self, context):
@@ -1553,7 +1553,7 @@ class VIEW3D_OT_edit_mesh_extrude_move(bpy.types.Operator):
 
 
 class VIEW3D_MT_edit_mesh_vertices(bpy.types.Menu):
-    bl_label = "Vertices"
+    bl_label = _("Vertices")
 
     def draw(self, context):
         layout = self.layout
@@ -1585,7 +1585,7 @@ class VIEW3D_MT_edit_mesh_vertices(bpy.types.Menu):
 
 
 class VIEW3D_MT_edit_mesh_edges(bpy.types.Menu):
-    bl_label = "Edges"
+    bl_label = _("Edges")
 
     def draw(self, context):
         layout = self.layout
@@ -1597,35 +1597,35 @@ class VIEW3D_MT_edit_mesh_edges(bpy.types.Menu):
         layout.separator()
 
         layout.operator("mesh.mark_seam")
-        layout.operator("mesh.mark_seam", text="Clear Seam").clear = True
+        layout.operator("mesh.mark_seam", text=_("Clear Seam")).clear = True
 
         layout.separator()
 
         layout.operator("mesh.mark_sharp")
-        layout.operator("mesh.mark_sharp", text="Clear Sharp").clear = True
+        layout.operator("mesh.mark_sharp", text=_("Clear Sharp")).clear = True
 
         layout.separator()
 
-        layout.operator("mesh.edge_rotate", text="Rotate Edge CW").direction = 'CW'
-        layout.operator("mesh.edge_rotate", text="Rotate Edge CCW").direction = 'CCW'
+        layout.operator("mesh.edge_rotate", text=_("Rotate Edge CW")).direction = 'CW'
+        layout.operator("mesh.edge_rotate", text=_("Rotate Edge CCW")).direction = 'CCW'
 
         layout.separator()
 
         layout.operator("TRANSFORM_OT_edge_slide")
         layout.operator("TRANSFORM_OT_edge_crease")
-        layout.operator("mesh.loop_multi_select", text="Edge Loop")
+        layout.operator("mesh.loop_multi_select", text=_("Edge Loop"))
 
         # uiItemO(layout, "Loopcut", 0, "mesh.loop_cut"); // CutEdgeloop(em, 1);
         # uiItemO(layout, "Edge Slide", 0, "mesh.edge_slide"); // EdgeSlide(em, 0,0.0);
 
-        layout.operator("mesh.loop_multi_select", text="Edge Ring").ring = True
+        layout.operator("mesh.loop_multi_select", text=_("Edge Ring")).ring = True
 
         layout.operator("mesh.loop_to_region")
         layout.operator("mesh.region_to_loop")
 
 
 class VIEW3D_MT_edit_mesh_faces(bpy.types.Menu):
-    bl_label = "Faces"
+    bl_label = _("Faces")
     bl_idname = "VIEW3D_MT_edit_mesh_faces"
 
     def draw(self, context):
@@ -1662,7 +1662,7 @@ class VIEW3D_MT_edit_mesh_faces(bpy.types.Menu):
         # uiItemO(layout, NULL, 0, "mesh.face_mode"); // mesh_set_face_flags(em, 1);
         # uiItemBooleanO(layout, NULL, 0, "mesh.face_mode", "clear", 1); // mesh_set_face_flags(em, 0);
 
-        layout.operator("mesh.edge_rotate", text="Rotate Edge CW").direction = 'CW'
+        layout.operator("mesh.edge_rotate", text=_("Rotate Edge CW")).direction = 'CW'
 
         layout.separator()
 
@@ -1673,13 +1673,13 @@ class VIEW3D_MT_edit_mesh_faces(bpy.types.Menu):
 
 
 class VIEW3D_MT_edit_mesh_normals(bpy.types.Menu):
-    bl_label = "Normals"
+    bl_label = _("Normals")
 
     def draw(self, context):
         layout = self.layout
 
-        layout.operator("mesh.normals_make_consistent", text="Recalculate Outside")
-        layout.operator("mesh.normals_make_consistent", text="Recalculate Inside").inside = True
+        layout.operator("mesh.normals_make_consistent", text=_("Recalculate Outside"))
+        layout.operator("mesh.normals_make_consistent", text=_("Recalculate Inside")).inside = True
 
         layout.separator()
 
@@ -1709,7 +1709,7 @@ def draw_curve(self, context):
     layout.operator("curve.separate")
     layout.operator("curve.make_segment")
     layout.operator("curve.cyclic_toggle")
-    layout.operator("curve.delete", text="Delete...")
+    layout.operator("curve.delete", text=_("Delete..."))
 
     layout.separator()
 
@@ -1727,13 +1727,13 @@ def draw_curve(self, context):
 
 
 class VIEW3D_MT_edit_curve(bpy.types.Menu):
-    bl_label = "Curve"
+    bl_label = _("Curve")
 
     draw = draw_curve
 
 
 class VIEW3D_MT_edit_curve_ctrlpoints(bpy.types.Menu):
-    bl_label = "Control Points"
+    bl_label = _("Control Points")
 
     def draw(self, context):
         layout = self.layout
@@ -1741,7 +1741,7 @@ class VIEW3D_MT_edit_curve_ctrlpoints(bpy.types.Menu):
         edit_object = context.edit_object
 
         if edit_object.type == 'CURVE':
-            layout.operator("transform.transform", text="Tilt").mode = 'TILT'
+            layout.operator("transform.transform", text=_("Tilt")).mode = 'TILT'
             layout.operator("curve.tilt_clear")
             layout.operator("curve.separate")
 
@@ -1755,7 +1755,7 @@ class VIEW3D_MT_edit_curve_ctrlpoints(bpy.types.Menu):
 
 
 class VIEW3D_MT_edit_curve_segments(bpy.types.Menu):
-    bl_label = "Segments"
+    bl_label = _("Segments")
 
     def draw(self, context):
         layout = self.layout
@@ -1765,7 +1765,7 @@ class VIEW3D_MT_edit_curve_segments(bpy.types.Menu):
 
 
 class VIEW3D_MT_edit_curve_specials(bpy.types.Menu):
-    bl_label = "Specials"
+    bl_label = _("Specials")
 
     def draw(self, context):
         layout = self.layout
@@ -1783,13 +1783,13 @@ class VIEW3D_MT_edit_curve_showhide(ShowHideMenu, bpy.types.Menu):
 
 
 class VIEW3D_MT_edit_surface(bpy.types.Menu):
-    bl_label = "Surface"
+    bl_label = _("Surface")
 
     draw = draw_curve
 
 
 class VIEW3D_MT_edit_font(bpy.types.Menu):
-    bl_label = "Text"
+    bl_label = _("Text")
 
     def draw(self, context):
         layout = self.layout
@@ -1802,14 +1802,14 @@ class VIEW3D_MT_edit_font(bpy.types.Menu):
 
         layout.separator()
 
-        layout.operator("font.style_toggle", text="Toggle Bold").style = 'BOLD'
-        layout.operator("font.style_toggle", text="Toggle Italic").style = 'ITALIC'
-        layout.operator("font.style_toggle", text="Toggle Underline").style = 'UNDERLINE'
-        layout.operator("font.style_toggle", text="Toggle Small Caps").style = 'SMALL_CAPS'
+        layout.operator("font.style_toggle", text=_("Toggle Bold")).style = 'BOLD'
+        layout.operator("font.style_toggle", text=_("Toggle Italic")).style = 'ITALIC'
+        layout.operator("font.style_toggle", text=_("Toggle Underline")).style = 'UNDERLINE'
+        layout.operator("font.style_toggle", text=_("Toggle Small Caps")).style = 'SMALL_CAPS'
 
 
 class VIEW3D_MT_edit_text_chars(bpy.types.Menu):
-    bl_label = "Special Characters"
+    bl_label = _("Special Characters")
 
     def draw(self, context):
         layout = self.layout
@@ -1843,7 +1843,7 @@ class VIEW3D_MT_edit_text_chars(bpy.types.Menu):
 
 
 class VIEW3D_MT_edit_meta(bpy.types.Menu):
-    bl_label = "Metaball"
+    bl_label = _("Metaball")
 
     def draw(self, context):
         layout = self.layout
@@ -1862,7 +1862,7 @@ class VIEW3D_MT_edit_meta(bpy.types.Menu):
 
         layout.separator()
 
-        layout.operator("mball.delete_metaelems", text="Delete...")
+        layout.operator("mball.delete_metaelems", text=_("Delete..."))
         layout.operator("mball.duplicate_metaelems")
 
         layout.separator()
@@ -1887,7 +1887,7 @@ class VIEW3D_MT_edit_meta_showhide(bpy.types.Menu):
 
 
 class VIEW3D_MT_edit_lattice(bpy.types.Menu):
-    bl_label = "Lattice"
+    bl_label = _("Lattice")
 
     def draw(self, context):
         layout = self.layout
@@ -1909,7 +1909,7 @@ class VIEW3D_MT_edit_lattice(bpy.types.Menu):
 
 
 class VIEW3D_MT_edit_armature(bpy.types.Menu):
-    bl_label = "Armature"
+    bl_label = _("Armature")
 
     def draw(self, context):
         layout = self.layout
@@ -1937,15 +1937,15 @@ class VIEW3D_MT_edit_armature(bpy.types.Menu):
 
         layout.separator()
 
-        layout.operator("armature.subdivide", text="Subdivide")
-        layout.operator("armature.switch_direction", text="Switch Direction")
+        layout.operator("armature.subdivide", text=_("Subdivide"))
+        layout.operator("armature.switch_direction", text=_("Switch Direction"))
 
         layout.separator()
 
         layout.operator_context = 'EXEC_AREA'
-        layout.operator("armature.autoside_names", text="AutoName Left/Right").type = 'XAXIS'
-        layout.operator("armature.autoside_names", text="AutoName Front/Back").type = 'YAXIS'
-        layout.operator("armature.autoside_names", text="AutoName Top/Bottom").type = 'ZAXIS'
+        layout.operator("armature.autoside_names", text=_("AutoName Left/Right")).type = 'XAXIS'
+        layout.operator("armature.autoside_names", text=_("AutoName Front/Back")).type = 'YAXIS'
+        layout.operator("armature.autoside_names", text=_("AutoName Top/Bottom")).type = 'ZAXIS'
         layout.operator("armature.flip_names")
 
         layout.separator()
@@ -1960,41 +1960,41 @@ class VIEW3D_MT_edit_armature(bpy.types.Menu):
 
         layout.separator()
 
-        layout.operator_menu_enum("armature.flags_set", "mode", text="Bone Settings")
+        layout.operator_menu_enum("armature.flags_set", "mode", text=_("Bone Settings"))
 
 
 class VIEW3D_MT_armature_specials(bpy.types.Menu):
-    bl_label = "Specials"
+    bl_label = _("Specials")
 
     def draw(self, context):
         layout = self.layout
 
         layout.operator_context = 'INVOKE_REGION_WIN'
 
-        layout.operator("armature.subdivide", text="Subdivide")
-        layout.operator("armature.switch_direction", text="Switch Direction")
+        layout.operator("armature.subdivide", text=_("Subdivide"))
+        layout.operator("armature.switch_direction", text=_("Switch Direction"))
 
         layout.separator()
 
         layout.operator_context = 'EXEC_REGION_WIN'
-        layout.operator("armature.autoside_names", text="AutoName Left/Right").type = 'XAXIS'
-        layout.operator("armature.autoside_names", text="AutoName Front/Back").type = 'YAXIS'
-        layout.operator("armature.autoside_names", text="AutoName Top/Bottom").type = 'ZAXIS'
-        layout.operator("armature.flip_names", text="Flip Names")
+        layout.operator("armature.autoside_names", text=_("AutoName Left/Right")).type = 'XAXIS'
+        layout.operator("armature.autoside_names", text=_("AutoName Front/Back")).type = 'YAXIS'
+        layout.operator("armature.autoside_names", text=_("AutoName Top/Bottom")).type = 'ZAXIS'
+        layout.operator("armature.flip_names", text=_("Flip Names"))
 
 
 class VIEW3D_MT_edit_armature_parent(bpy.types.Menu):
-    bl_label = "Parent"
+    bl_label = _("Parent")
 
     def draw(self, context):
         layout = self.layout
 
-        layout.operator("armature.parent_set", text="Make")
-        layout.operator("armature.parent_clear", text="Clear")
+        layout.operator("armature.parent_set", text=_("Make"))
+        layout.operator("armature.parent_clear", text=_("Clear"))
 
 
 class VIEW3D_MT_edit_armature_roll(bpy.types.Menu):
-    bl_label = "Bone Roll"
+    bl_label = _("Bone Roll")
 
     def draw(self, context):
         layout = self.layout
@@ -2003,7 +2003,7 @@ class VIEW3D_MT_edit_armature_roll(bpy.types.Menu):
 
         layout.separator()
 
-        layout.operator("transform.transform", text="Set Roll").mode = 'BONE_ROLL'
+        layout.operator("transform.transform", text=_("Set Roll")).mode = 'BONE_ROLL'
 
 # ********** Panel **********
 
@@ -2011,7 +2011,7 @@ class VIEW3D_MT_edit_armature_roll(bpy.types.Menu):
 class VIEW3D_PT_view3d_properties(bpy.types.Panel):
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'UI'
-    bl_label = "View"
+    bl_label = _("View")
 
     @classmethod
     def poll(cls, context):
@@ -2026,24 +2026,24 @@ class VIEW3D_PT_view3d_properties(bpy.types.Panel):
         col = layout.column()
         col.active = view.region_3d.view_perspective != 'CAMERA'
         col.prop(view, "lens")
-        col.label(text="Lock to Object:")
+        col.label(text=_("Lock to Object:"))
         col.prop(view, "lock_object", text="")
         if view.lock_object and view.lock_object.type == 'ARMATURE':
             col.prop_search(view, "lock_bone", view.lock_object.data, "bones", text="")
         elif not view.lock_object:
-            col.prop(view, "lock_cursor", text="Lock to Cursor")
+            col.prop(view, "lock_cursor", text=_("Lock to Cursor"))
 
         col = layout.column()
         col.prop(view, "lock_camera")
 
         col = layout.column(align=True)
-        col.label(text="Clip:")
-        col.prop(view, "clip_start", text="Start")
-        col.prop(view, "clip_end", text="End")
+        col.label(text=_("Clip:"))
+        col.prop(view, "clip_start", text=_("Start"))
+        col.prop(view, "clip_end", text=_("End"))
 
         subcol = col.column()
         subcol.enabled = not view.lock_camera_and_layers
-        subcol.label(text="Local Camera:")
+        subcol.label(text=_("Local Camera:"))
         subcol.prop(view, "camera", text="")
 
         layout.column().prop(view, "cursor_location")
@@ -2052,7 +2052,7 @@ class VIEW3D_PT_view3d_properties(bpy.types.Panel):
 class VIEW3D_PT_view3d_name(bpy.types.Panel):
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'UI'
-    bl_label = "Item"
+    bl_label = _("Item")
 
     @classmethod
     def poll(cls, context):
@@ -2077,7 +2077,7 @@ class VIEW3D_PT_view3d_name(bpy.types.Panel):
 class VIEW3D_PT_view3d_display(bpy.types.Panel):
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'UI'
-    bl_label = "Display"
+    bl_label = _("Display")
     bl_options = {'DEFAULT_CLOSED'}
 
     @classmethod
@@ -2109,7 +2109,7 @@ class VIEW3D_PT_view3d_display(bpy.types.Panel):
         col = layout.column()
         col.active = display_all
         split = col.split(percentage=0.55)
-        split.prop(view, "show_floor", text="Grid Floor")
+        split.prop(view, "show_floor", text=_("Grid Floor"))
 
         row = split.row(align=True)
         row.prop(view, "show_axis_x", text="X", toggle=True)
@@ -2118,14 +2118,14 @@ class VIEW3D_PT_view3d_display(bpy.types.Panel):
 
         sub = col.column(align=True)
         sub.active = (display_all and view.show_floor)
-        sub.prop(view, "grid_lines", text="Lines")
-        sub.prop(view, "grid_scale", text="Scale")
+        sub.prop(view, "grid_lines", text=_("Lines"))
+        sub.prop(view, "grid_scale", text=_("Scale"))
         subsub = sub.column(align=True)
         subsub.active = scene.unit_settings.system == 'NONE'
-        subsub.prop(view, "grid_subdivisions", text="Subdivisions")
+        subsub.prop(view, "grid_subdivisions", text=_("Subdivisions"))
 
         col = layout.column()
-        col.label(text="Shading:")
+        col.label(text=_("Shading:"))
         col.prop(gs, "material_mode", text="")
         col.prop(view, "show_textured_solid")
 
@@ -2133,7 +2133,7 @@ class VIEW3D_PT_view3d_display(bpy.types.Panel):
 
         region = view.region_quadview
 
-        layout.operator("screen.region_quadview", text="Toggle Quad View")
+        layout.operator("screen.region_quadview", text=_("Toggle Quad View"))
 
         if region:
             col = layout.column()
@@ -2149,7 +2149,7 @@ class VIEW3D_PT_view3d_display(bpy.types.Panel):
 class VIEW3D_PT_view3d_meshdisplay(bpy.types.Panel):
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'UI'
-    bl_label = "Mesh Display"
+    bl_label = _("Mesh Display")
 
     @classmethod
     def poll(cls, context):
@@ -2162,22 +2162,22 @@ class VIEW3D_PT_view3d_meshdisplay(bpy.types.Panel):
         mesh = context.active_object.data
 
         col = layout.column()
-        col.label(text="Overlays:")
-        col.prop(mesh, "show_edges", text="Edges")
-        col.prop(mesh, "show_faces", text="Faces")
-        col.prop(mesh, "show_edge_crease", text="Creases")
-        col.prop(mesh, "show_edge_bevel_weight", text="Bevel Weights")
-        col.prop(mesh, "show_edge_seams", text="Seams")
-        col.prop(mesh, "show_edge_sharp", text="Sharp")
+        col.label(text=_("Overlays:"))
+        col.prop(mesh, "show_edges", text=_("Edges"))
+        col.prop(mesh, "show_faces", text=_("Faces"))
+        col.prop(mesh, "show_edge_crease", text=_("Creases"))
+        col.prop(mesh, "show_edge_bevel_weight", text=_("Bevel Weights"))
+        col.prop(mesh, "show_edge_seams", text=_("Seams"))
+        col.prop(mesh, "show_edge_sharp", text=_("Sharp"))
 
         col.separator()
-        col.label(text="Normals:")
-        col.prop(mesh, "show_normal_face", text="Face")
-        col.prop(mesh, "show_normal_vertex", text="Vertex")
-        col.prop(context.scene.tool_settings, "normal_size", text="Normal Size")
+        col.label(text=_("Normals:"))
+        col.prop(mesh, "show_normal_face", text=_("Face"))
+        col.prop(mesh, "show_normal_vertex", text=_("Vertex"))
+        col.prop(context.scene.tool_settings, "normal_size", text=_("Normal Size"))
 
         col.separator()
-        col.label(text="Numerics:")
+        col.label(text=_("Numerics:"))
         col.prop(mesh, "show_extra_edge_length")
         col.prop(mesh, "show_extra_face_angle")
         col.prop(mesh, "show_extra_face_area")
@@ -2186,7 +2186,7 @@ class VIEW3D_PT_view3d_meshdisplay(bpy.types.Panel):
 class VIEW3D_PT_view3d_curvedisplay(bpy.types.Panel):
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'UI'
-    bl_label = "Curve Display"
+    bl_label = _("Curve Display")
 
     @classmethod
     def poll(cls, context):
@@ -2199,16 +2199,16 @@ class VIEW3D_PT_view3d_curvedisplay(bpy.types.Panel):
         curve = context.active_object.data
 
         col = layout.column()
-        col.label(text="Overlays:")
-        col.prop(curve, "show_handles", text="Handles")
-        col.prop(curve, "show_normal_face", text="Normals")
-        col.prop(context.scene.tool_settings, "normal_size", text="Normal Size")
+        col.label(text=_("Overlays:"))
+        col.prop(curve, "show_handles", text=_("Handles"))
+        col.prop(curve, "show_normal_face", text=_("Normals"))
+        col.prop(context.scene.tool_settings, "normal_size", text=_("Normal Size"))
 
 
 class VIEW3D_PT_background_image(bpy.types.Panel):
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'UI'
-    bl_label = "Background Images"
+    bl_label = _("Background Images")
     bl_options = {'DEFAULT_CLOSED'}
 
     @classmethod
@@ -2229,7 +2229,7 @@ class VIEW3D_PT_background_image(bpy.types.Panel):
         view = context.space_data
 
         col = layout.column()
-        col.operator("view3d.background_image_add", text="Add Image")
+        col.operator("view3d.background_image_add", text=_("Add Image"))
 
         for i, bg in enumerate(view.background_images):
             layout.active = view.show_background_images
@@ -2239,10 +2239,10 @@ class VIEW3D_PT_background_image(bpy.types.Panel):
             if bg.image:
                 row.prop(bg.image, "name", text="", emboss=False)
             else:
-                row.label(text="Not Set")
+                row.label(text=_("Not Set"))
             row.operator("view3d.background_image_remove", text="", emboss=False, icon='X').index = i
 
-            box.prop(bg, "view_axis", text="Axis")
+            box.prop(bg, "view_axis", text=_("Axis"))
 
             if bg.show_expanded:
                 row = box.row()
@@ -2261,7 +2261,7 @@ class VIEW3D_PT_background_image(bpy.types.Panel):
 class VIEW3D_PT_transform_orientations(bpy.types.Panel):
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'UI'
-    bl_label = "Transform Orientations"
+    bl_label = _("Transform Orientations")
     bl_options = {'DEFAULT_CLOSED'}
 
     @classmethod
@@ -2277,19 +2277,19 @@ class VIEW3D_PT_transform_orientations(bpy.types.Panel):
         col = layout.column()
 
         col.prop(view, "transform_orientation")
-        col.operator("transform.create_orientation", text="Create")
+        col.operator("transform.create_orientation", text=_("Create"))
 
         orientation = view.current_orientation
 
         if orientation:
             col.prop(orientation, "name")
-            col.operator("transform.delete_orientation", text="Delete")
+            col.operator("transform.delete_orientation", text=_("Delete"))
 
 
 class VIEW3D_PT_etch_a_ton(bpy.types.Panel):
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'UI'
-    bl_label = "Skeleton Sketching"
+    bl_label = _("Skeleton Sketching")
     bl_options = {'DEFAULT_CLOSED'}
 
     @classmethod
@@ -2328,7 +2328,7 @@ class VIEW3D_PT_etch_a_ton(bpy.types.Panel):
             col.prop(toolsettings, "etch_number")
             col.prop(toolsettings, "etch_side")
 
-        col.operator("sketch.convert", text="Convert")
+        col.operator("sketch.convert", text=_("Convert"))
 
 
 class VIEW3D_PT_context_properties(bpy.types.Panel):
index 8efa4847452a6a8588e50ba4407e100b59d97713..67f2bdf452acad27cd94a52b5c01e00586eb4241 100644 (file)
@@ -1076,9 +1076,9 @@ static int animchannels_rearrange_exec(bContext *C, wmOperator *op)
 static void ANIM_OT_channels_move (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Move Channels";
+       ot->name= _("Move Channels");
        ot->idname= "ANIM_OT_channels_move";
-       ot->description = "Rearrange selected animation channels";
+       ot->description = _("Rearrange selected animation channels");
        
        /* api callbacks */
        ot->exec= animchannels_rearrange_exec;
@@ -1088,7 +1088,7 @@ static void ANIM_OT_channels_move (wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
-       ot->prop= RNA_def_enum(ot->srna, "direction", prop_animchannel_rearrange_types, REARRANGE_ANIMCHAN_DOWN, "Direction", "");
+       ot->prop= RNA_def_enum(ot->srna, "direction", prop_animchannel_rearrange_types, REARRANGE_ANIMCHAN_DOWN, _("Direction"), "");
 }
 
 /* ******************** Delete Channel Operator *********************** */
@@ -1179,9 +1179,9 @@ static int animchannels_delete_exec(bContext *C, wmOperator *UNUSED(op))
 static void ANIM_OT_channels_delete (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Delete Channels";
+       ot->name= _("Delete Channels");
        ot->idname= "ANIM_OT_channels_delete";
-       ot->description= "Delete all selected animation channels";
+       ot->description= _("Delete all selected animation channels");
        
        /* api callbacks */
        ot->exec= animchannels_delete_exec;
@@ -1256,9 +1256,9 @@ static int animchannels_visibility_set_exec(bContext *C, wmOperator *UNUSED(op))
 static void ANIM_OT_channels_visibility_set (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Set Visibility";
+       ot->name= _("Set Visibility");
        ot->idname= "ANIM_OT_channels_visibility_set";
-       ot->description= "Make only the selected animation channels visible in the Graph Editor";
+       ot->description= _("Make only the selected animation channels visible in the Graph Editor");
        
        /* api callbacks */
        ot->exec= animchannels_visibility_set_exec;
@@ -1329,9 +1329,9 @@ static int animchannels_visibility_toggle_exec(bContext *C, wmOperator *UNUSED(o
 static void ANIM_OT_channels_visibility_toggle (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Toggle Visibility";
+       ot->name= _("Toggle Visibility");
        ot->idname= "ANIM_OT_channels_visibility_toggle";
-       ot->description= "Toggle visibility in Graph Editor of all selected animation channels";
+       ot->description= _("Toggle visibility in Graph Editor of all selected animation channels");
        
        /* api callbacks */
        ot->exec= animchannels_visibility_toggle_exec;
@@ -1345,18 +1345,18 @@ static void ANIM_OT_channels_visibility_toggle (wmOperatorType *ot)
 
 /* defines for setting animation-channel flags */
 static EnumPropertyItem prop_animchannel_setflag_types[] = {
-       {ACHANNEL_SETFLAG_TOGGLE, "TOGGLE", 0, "Toggle", ""},
-       {ACHANNEL_SETFLAG_CLEAR, "DISABLE", 0, "Disable", ""},
-       {ACHANNEL_SETFLAG_ADD, "ENABLE", 0, "Enable", ""},
-       {ACHANNEL_SETFLAG_INVERT, "INVERT", 0, "Invert", ""},
+       {ACHANNEL_SETFLAG_TOGGLE, "TOGGLE", 0, N_("Toggle"), ""},
+       {ACHANNEL_SETFLAG_CLEAR, "DISABLE", 0, N_("Disable"), ""},
+       {ACHANNEL_SETFLAG_ADD, "ENABLE", 0, N_("Enable"), ""},
+       {ACHANNEL_SETFLAG_INVERT, "INVERT", 0, N_("Invert"), ""},
        {0, NULL, 0, NULL, NULL}
 };
 
 /* defines for set animation-channel settings */
 // TODO: could add some more types, but those are really quite dependent on the mode...
 static EnumPropertyItem prop_animchannel_settings_types[] = {
-       {ACHANNEL_SETTING_PROTECT, "PROTECT", 0, "Protect", ""},
-       {ACHANNEL_SETTING_MUTE, "MUTE", 0, "Mute", ""},
+       {ACHANNEL_SETTING_PROTECT, "PROTECT", 0, N_("Protect"), ""},
+       {ACHANNEL_SETTING_MUTE, "MUTE", 0, N_("Mute"), ""},
        {0, NULL, 0, NULL, NULL}
 };
 
@@ -1461,9 +1461,9 @@ static int animchannels_setflag_exec(bContext *C, wmOperator *op)
 static void ANIM_OT_channels_setting_enable (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Enable Channel Setting";
+       ot->name= _("Enable Channel Setting");
        ot->idname= "ANIM_OT_channels_setting_enable";
-       ot->description= "Enable specified setting on all selected animation channels";
+       ot->description= _("Enable specified setting on all selected animation channels");
        
        /* api callbacks */
        ot->invoke= WM_menu_invoke;
@@ -1475,17 +1475,17 @@ static void ANIM_OT_channels_setting_enable (wmOperatorType *ot)
        
        /* props */
                /* flag-setting mode */
-       RNA_def_enum(ot->srna, "mode", prop_animchannel_setflag_types, ACHANNEL_SETFLAG_ADD, "Mode", "");
+       RNA_def_enum(ot->srna, "mode", RNA_enum_items_gettexted(prop_animchannel_setflag_types), ACHANNEL_SETFLAG_ADD, _("Mode"), "");
                /* setting to set */
-       ot->prop= RNA_def_enum(ot->srna, "type", prop_animchannel_settings_types, 0, "Type", "");
+       ot->prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(prop_animchannel_settings_types), 0, _("Type"), "");
 }
 
 static void ANIM_OT_channels_setting_disable (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Disable Channel Setting";
+       ot->name= _("Disable Channel Setting");
        ot->idname= "ANIM_OT_channels_setting_disable";
-       ot->description= "Disable specified setting on all selected animation channels";
+       ot->description= _("Disable specified setting on all selected animation channels");
        
        /* api callbacks */
        ot->invoke= WM_menu_invoke;
@@ -1497,17 +1497,17 @@ static void ANIM_OT_channels_setting_disable (wmOperatorType *ot)
        
        /* props */
                /* flag-setting mode */
-       RNA_def_enum(ot->srna, "mode", prop_animchannel_setflag_types, ACHANNEL_SETFLAG_CLEAR, "Mode", "");
+       RNA_def_enum(ot->srna, "mode", prop_animchannel_setflag_types, ACHANNEL_SETFLAG_CLEAR, _("Mode"), "");
                /* setting to set */
-       ot->prop= RNA_def_enum(ot->srna, "type", prop_animchannel_settings_types, 0, "Type", "");
+       ot->prop= RNA_def_enum(ot->srna, "type", prop_animchannel_settings_types, 0, _("Type"), "");
 }
 
 static void ANIM_OT_channels_setting_invert (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Invert Channel Setting";
+       ot->name= _("Invert Channel Setting");
        ot->idname= "ANIM_OT_channels_setting_toggle";
-       ot->description= "Invert specified setting on all selected animation channels";
+       ot->description= _("Invert specified setting on all selected animation channels");
        
        /* api callbacks */
        ot->invoke= WM_menu_invoke;
@@ -1519,17 +1519,17 @@ static void ANIM_OT_channels_setting_invert (wmOperatorType *ot)
        
        /* props */
                /* flag-setting mode */
-       RNA_def_enum(ot->srna, "mode", prop_animchannel_setflag_types, ACHANNEL_SETFLAG_INVERT, "Mode", "");
+       RNA_def_enum(ot->srna, "mode", prop_animchannel_setflag_types, ACHANNEL_SETFLAG_INVERT, _("Mode"), "");
                /* setting to set */
-       ot->prop= RNA_def_enum(ot->srna, "type", prop_animchannel_settings_types, 0, "Type", "");
+       ot->prop= RNA_def_enum(ot->srna, "type", prop_animchannel_settings_types, 0, _("Type"), "");
 }
 
 static void ANIM_OT_channels_setting_toggle (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Toggle Channel Setting";
+       ot->name= _("Toggle Channel Setting");
        ot->idname= "ANIM_OT_channels_setting_toggle";
-       ot->description= "Toggle specified setting on all selected animation channels";
+       ot->description= _("Toggle specified setting on all selected animation channels");
        
        /* api callbacks */
        ot->invoke= WM_menu_invoke;
@@ -1541,17 +1541,17 @@ static void ANIM_OT_channels_setting_toggle (wmOperatorType *ot)
        
        /* props */
                /* flag-setting mode */
-       RNA_def_enum(ot->srna, "mode", prop_animchannel_setflag_types, ACHANNEL_SETFLAG_TOGGLE, "Mode", "");
+       RNA_def_enum(ot->srna, "mode", prop_animchannel_setflag_types, ACHANNEL_SETFLAG_TOGGLE, _("Mode"), "");
                /* setting to set */
-       ot->prop= RNA_def_enum(ot->srna, "type", prop_animchannel_settings_types, 0, "Type", "");
+       ot->prop= RNA_def_enum(ot->srna, "type", prop_animchannel_settings_types, 0, _("Type"), "");
 }
 
 static void ANIM_OT_channels_editable_toggle (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Toggle Channel Editability";
+       ot->name= _("Toggle Channel Editability");
        ot->idname= "ANIM_OT_channels_editable_toggle";
-       ot->description= "Toggle editability of selected channels";
+       ot->description= _("Toggle editability of selected channels");
        
        /* api callbacks */
        ot->exec= animchannels_setflag_exec;
@@ -1562,9 +1562,9 @@ static void ANIM_OT_channels_editable_toggle (wmOperatorType *ot)
        
        /* props */
                /* flag-setting mode */
-       RNA_def_enum(ot->srna, "mode", prop_animchannel_setflag_types, ACHANNEL_SETFLAG_TOGGLE, "Mode", "");
+       RNA_def_enum(ot->srna, "mode", prop_animchannel_setflag_types, ACHANNEL_SETFLAG_TOGGLE, _("Mode"), "");
                /* setting to set */
-       RNA_def_enum(ot->srna, "type", prop_animchannel_settings_types, ACHANNEL_SETTING_PROTECT, "Type", "");
+       RNA_def_enum(ot->srna, "type", prop_animchannel_settings_types, ACHANNEL_SETTING_PROTECT, _("Type"), "");
 }
 
 /* ********************** Expand Channels Operator *********************** */
@@ -1594,9 +1594,9 @@ static int animchannels_expand_exec (bContext *C, wmOperator *op)
 static void ANIM_OT_channels_expand (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Expand Channels";
+       ot->name= _("Expand Channels");
        ot->idname= "ANIM_OT_channels_expand";
-       ot->description= "Expand (i.e. open) all selected expandable animation channels";
+       ot->description= _("Expand (i.e. open) all selected expandable animation channels");
        
        /* api callbacks */
        ot->exec= animchannels_expand_exec;
@@ -1636,9 +1636,9 @@ static int animchannels_collapse_exec (bContext *C, wmOperator *op)
 static void ANIM_OT_channels_collapse (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Collapse Channels";
+       ot->name= _("Collapse Channels");
        ot->idname= "ANIM_OT_channels_collapse";
-       ot->description= "Collapse (i.e. close) all selected expandable animation channels";
+       ot->description= _("Collapse (i.e. close) all selected expandable animation channels");
        
        /* api callbacks */
        ot->exec= animchannels_collapse_exec;
@@ -1712,9 +1712,9 @@ static int animchannels_enable_exec (bContext *C, wmOperator *UNUSED(op))
 static void ANIM_OT_channels_fcurves_enable (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Revive Disabled F-Curves";
+       ot->name= _("Revive Disabled F-Curves");
        ot->idname= "ANIM_OT_channels_fcurves_enable";
-       ot->description= "Clears 'disabled' tag from all F-Curves to get broken F-Curves working again";
+       ot->description= _("Clears 'disabled' tag from all F-Curves to get broken F-Curves working again");
        
        /* api callbacks */
        ot->exec= animchannels_enable_exec;
@@ -1749,9 +1749,9 @@ static int animchannels_deselectall_exec (bContext *C, wmOperator *op)
 static void ANIM_OT_channels_select_all_toggle (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select All";
+       ot->name= _("Select All");
        ot->idname= "ANIM_OT_channels_select_all_toggle";
-       ot->description= "Toggle selection of all animation channels";
+       ot->description= _("Toggle selection of all animation channels");
        
        /* api callbacks */
        ot->exec= animchannels_deselectall_exec;
@@ -1874,9 +1874,9 @@ static int animchannels_borderselect_exec(bContext *C, wmOperator *op)
 static void ANIM_OT_channels_select_border(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Border Select";
+       ot->name= _("Border Select");
        ot->idname= "ANIM_OT_channels_select_border";
-       ot->description= "Select all animation channels within the specified region";
+       ot->description= _("Select all animation channels within the specified region");
        
        /* api callbacks */
        ot->invoke= WM_border_select_invoke;
@@ -2192,9 +2192,9 @@ static int animchannels_mouseclick_invoke(bContext *C, wmOperator *op, wmEvent *
 static void ANIM_OT_channels_click (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Mouse Click on Channels";
+       ot->name= _("Mouse Click on Channels");
        ot->idname= "ANIM_OT_channels_click";
-       ot->description= "Handle mouse-clicks over animation channels";
+       ot->description= _("Handle mouse-clicks over animation channels");
        
        /* api callbacks */
        ot->invoke= animchannels_mouseclick_invoke;
index ce3110dab3d044690444a0169c22491878c54e87..2fd481b9d86c35a26cb57bd786fc780586576a00 100644 (file)
@@ -578,8 +578,8 @@ static int ed_marker_add(bContext *C, wmOperator *UNUSED(op))
 static void MARKER_OT_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Time Marker";
-       ot->description= "Add a new time marker";
+       ot->name= _("Add Time Marker");
+       ot->description= _("Add a new time marker");
        ot->idname= "MARKER_OT_add";
        
        /* api callbacks */
@@ -881,8 +881,8 @@ static int ed_marker_move_exec(bContext *C, wmOperator *op)
 static void MARKER_OT_move(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Move Time Marker";
-       ot->description= "Move selected time marker(s)";
+       ot->name= _("Move Time Marker");
+       ot->description= _("Move selected time marker(s)");
        ot->idname= "MARKER_OT_move";
        
        /* api callbacks */
@@ -976,8 +976,8 @@ static int ed_marker_duplicate_invoke_wrapper(bContext *C, wmOperator *op, wmEve
 static void MARKER_OT_duplicate(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Duplicate Time Marker";
-       ot->description= "Duplicate selected time marker(s)";
+       ot->name= _("Duplicate Time Marker");
+       ot->description= _("Duplicate selected time marker(s)");
        ot->idname= "MARKER_OT_duplicate";
        
        /* api callbacks */
@@ -1099,8 +1099,8 @@ static int ed_marker_select_invoke_wrapper(bContext *C, wmOperator *op, wmEvent
 static void MARKER_OT_select(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Time Marker";
-       ot->description= "Select time marker(s)";
+       ot->name= _("Select Time Marker");
+       ot->description= _("Select time marker(s)");
        ot->idname= "MARKER_OT_select";
        
        /* api callbacks */
@@ -1183,8 +1183,8 @@ static int ed_marker_select_border_invoke_wrapper(bContext *C, wmOperator *op, w
 static void MARKER_OT_select_border(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Marker Border select";
-       ot->description= "Select all time markers using border selection";
+       ot->name= _("Marker Border select");
+       ot->description= _("Select all time markers using border selection");
        ot->idname= "MARKER_OT_select_border";
        
        /* api callbacks */
@@ -1240,8 +1240,8 @@ static int ed_marker_select_all_exec(bContext *C, wmOperator *op)
 static void MARKER_OT_select_all(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "(De)select all markers";
-       ot->description= "Change selection of all time markers";
+       ot->name= _("(De)select all markers");
+       ot->description= _("Change selection of all time markers");
        ot->idname= "MARKER_OT_select_all";
        
        /* api callbacks */
@@ -1293,8 +1293,8 @@ static int ed_marker_delete_invoke_wrapper(bContext *C, wmOperator *op, wmEvent
 static void MARKER_OT_delete(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Delete Markers";
-       ot->description= "Delete selected time marker(s)";
+       ot->name= _("Delete Markers");
+       ot->description= _("Delete selected time marker(s)");
        ot->idname= "MARKER_OT_delete";
        
        /* api callbacks */
@@ -1341,8 +1341,8 @@ static int ed_marker_rename_invoke_wrapper(bContext *C, wmOperator *op, wmEvent
 static void MARKER_OT_rename(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Rename Marker";
-       ot->description= "Rename first selected time marker";
+       ot->name= _("Rename Marker");
+       ot->description= _("Rename first selected time marker");
        ot->idname= "MARKER_OT_rename";
        
        /* api callbacks */
@@ -1354,7 +1354,7 @@ static void MARKER_OT_rename(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;  
        
        /* properties */
-       ot->prop = RNA_def_string(ot->srna, "name", "RenamedMarker", sizeof(((TimeMarker *)NULL)->name), "Name", "New name for marker");
+       ot->prop = RNA_def_string(ot->srna, "name", "RenamedMarker", sizeof(((TimeMarker *)NULL)->name), _("Name"), _("New name for marker"));
        //RNA_def_boolean(ot->srna, "ensure_unique", 0, "Ensure Unique", "Ensure that new name is unique within collection of markers");
 }
 
@@ -1394,8 +1394,8 @@ static void MARKER_OT_make_links_scene(wmOperatorType *ot)
        PropertyRNA *prop;
 
        /* identifiers */
-       ot->name= "Make Links to Scene";
-       ot->description= "Copy selected markers to another scene";
+       ot->name= _("Make Links to Scene");
+       ot->description= _("Copy selected markers to another scene");
        ot->idname= "MARKER_OT_make_links_scene";
 
        /* api callbacks */
@@ -1407,7 +1407,7 @@ static void MARKER_OT_make_links_scene(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       prop= RNA_def_enum(ot->srna, "scene", DummyRNA_NULL_items, 0, "Scene", "");
+       prop= RNA_def_enum(ot->srna, "scene", DummyRNA_NULL_items, 0, _("Scene"), "");
        RNA_def_enum_funcs(prop, RNA_scene_itemf);
        ot->prop= prop;
 
index 1a69f88b382a575b86e665e29b27e1f9c9ce4f54..e3438032fec732e16791480ca76fb7b0f6100d72 100644 (file)
@@ -162,9 +162,9 @@ static int change_frame_modal(bContext *C, wmOperator *op, wmEvent *event)
 static void ANIM_OT_change_frame(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Change frame";
+       ot->name= _("Change frame");
        ot->idname= "ANIM_OT_change_frame";
-       ot->description= "Interactively change the current frame number";
+       ot->description= _("Interactively change the current frame number");
        
        /* api callbacks */
        ot->exec= change_frame_exec;
@@ -217,9 +217,9 @@ static int previewrange_define_exec(bContext *C, wmOperator *op)
 static void ANIM_OT_previewrange_set(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Set Preview Range";
+       ot->name= _("Set Preview Range");
        ot->idname= "ANIM_OT_previewrange_set";
-       ot->description= "Interactively define frame range used for playback";
+       ot->description= _("Interactively define frame range used for playback");
        
        /* api callbacks */
        ot->invoke= WM_border_select_invoke;
@@ -265,9 +265,9 @@ static int previewrange_clear_exec(bContext *C, wmOperator *UNUSED(op))
 static void ANIM_OT_previewrange_clear(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Clear Preview Range";
+       ot->name= _("Clear Preview Range");
        ot->idname= "ANIM_OT_previewrange_clear";
-       ot->description= "Clear Preview Range";
+       ot->description= _("Clear Preview Range");
        
        /* api callbacks */
        ot->exec= previewrange_clear_exec;
index 5c4a79217c21b3426301bc8fdff0835cc906a2a6..deb217193690836751a638862c4b0f929d00efa6 100644 (file)
@@ -1142,9 +1142,9 @@ void ANIM_OT_keyframe_insert (wmOperatorType *ot)
        PropertyRNA *prop;
        
        /* identifiers */
-       ot->name= "Insert Keyframe";
+       ot->name= _("Insert Keyframe");
        ot->idname= "ANIM_OT_keyframe_insert";
-       ot->description= "Insert keyframes on the current frame for all properties in the specified Keying Set";
+       ot->description= _("Insert keyframes on the current frame for all properties in the specified Keying Set");
        
        /* callbacks */
        ot->exec= insert_key_exec; 
@@ -1154,7 +1154,7 @@ void ANIM_OT_keyframe_insert (wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* keyingset to use (dynamic enum) */
-       prop= RNA_def_enum(ot->srna, "type", DummyRNA_DEFAULT_items, 0, "Keying Set", "The Keying Set to use");
+       prop= RNA_def_enum(ot->srna, "type", DummyRNA_DEFAULT_items, 0, _("Keying Set"), _("The Keying Set to use"));
        RNA_def_enum_funcs(prop, ANIM_keying_sets_enum_itemf);
        RNA_def_property_flag(prop, PROP_HIDDEN);
        ot->prop= prop;
@@ -1195,7 +1195,7 @@ void ANIM_OT_keyframe_insert_menu (wmOperatorType *ot)
        PropertyRNA *prop;
        
        /* identifiers */
-       ot->name= "Insert Keyframe Menu";
+       ot->name= _("Insert Keyframe Menu");
        ot->idname= "ANIM_OT_keyframe_insert_menu";
        ot->description= _("Insert Keyframes for specified Keying Set, with menu of available Keying Sets if undefined");
        
@@ -1208,7 +1208,7 @@ void ANIM_OT_keyframe_insert_menu (wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* keyingset to use (dynamic enum) */
-       prop= RNA_def_enum(ot->srna, "type", DummyRNA_DEFAULT_items, 0, "Keying Set", "The Keying Set to use");
+       prop= RNA_def_enum(ot->srna, "type", DummyRNA_DEFAULT_items, 0, _("Keying Set"), _("The Keying Set to use"));
        RNA_def_enum_funcs(prop, ANIM_keying_sets_enum_itemf);
        RNA_def_property_flag(prop, PROP_HIDDEN);
        ot->prop= prop;
@@ -1224,7 +1224,7 @@ void ANIM_OT_keyframe_insert_menu (wmOperatorType *ot)
         *      - by default, the menu should only be shown when there is no active Keying Set (2.5 behaviour),
         *        although in some cases it might be useful to always shown (pre 2.5 behaviour)
         */
-       prop= RNA_def_boolean(ot->srna, "always_prompt", 0, "Always Show Menu", "");
+       prop= RNA_def_boolean(ot->srna, "always_prompt", 0, _("Always Show Menu"), "");
        RNA_def_property_flag(prop, PROP_HIDDEN);
 }
 
@@ -1289,9 +1289,9 @@ void ANIM_OT_keyframe_delete (wmOperatorType *ot)
        PropertyRNA *prop;
        
        /* identifiers */
-       ot->name= "Delete Keying-Set Keyframe";
+       ot->name= _("Delete Keying-Set Keyframe");
        ot->idname= "ANIM_OT_keyframe_delete";
-       ot->description= "Delete keyframes on the current frame for all properties in the specified Keying Set";
+       ot->description= _("Delete keyframes on the current frame for all properties in the specified Keying Set");
        
        /* callbacks */
        ot->exec= delete_key_exec; 
@@ -1301,7 +1301,7 @@ void ANIM_OT_keyframe_delete (wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* keyingset to use (dynamic enum) */
-       prop= RNA_def_enum(ot->srna, "type", DummyRNA_DEFAULT_items, 0, "Keying Set", "The Keying Set to use");
+       prop= RNA_def_enum(ot->srna, "type", DummyRNA_DEFAULT_items, 0, _("Keying Set"), _("The Keying Set to use"));
        RNA_def_enum_funcs(prop, ANIM_keying_sets_enum_itemf);
        RNA_def_property_flag(prop, PROP_HIDDEN);
        ot->prop= prop;
@@ -1361,7 +1361,7 @@ static int delete_key_v3d_exec (bContext *C, wmOperator *op)
 void ANIM_OT_keyframe_delete_v3d (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Delete Keyframe";
+       ot->name= _("Delete Keyframe");
        ot->description= _("Remove keyframes on current frame for selected object");
        ot->idname= "ANIM_OT_keyframe_delete_v3d";
        
@@ -1451,7 +1451,7 @@ static int insert_key_button_exec (bContext *C, wmOperator *op)
 void ANIM_OT_keyframe_insert_button (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Insert Keyframe (Buttons)";
+       ot->name= _("Insert Keyframe (Buttons)");
        ot->idname= "ANIM_OT_keyframe_insert_button";
        
        /* callbacks */
@@ -1523,7 +1523,7 @@ static int delete_key_button_exec (bContext *C, wmOperator *op)
 void ANIM_OT_keyframe_delete_button (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Delete Keyframe (Buttons)";
+       ot->name= _("Delete Keyframe (Buttons)");
        ot->idname= "ANIM_OT_keyframe_delete_button";
        
        /* callbacks */
index c04fdc3f82c439ec72bb8f244a6afff10bcddf6c..2a64894ca2a227ff0e1d1824603a094c1e46e462 100644 (file)
@@ -144,9 +144,9 @@ static int add_default_keyingset_exec (bContext *C, wmOperator *UNUSED(op))
 void ANIM_OT_keying_set_add (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Empty Keying Set";
+       ot->name= _("Add Empty Keying Set");
        ot->idname= "ANIM_OT_keying_set_add";
-       ot->description= "Add a new (empty) Keying Set to the active Scene";
+       ot->description= _("Add a new (empty) Keying Set to the active Scene");
        
        /* callbacks */
        ot->exec= add_default_keyingset_exec;
@@ -191,9 +191,9 @@ static int remove_active_keyingset_exec (bContext *C, wmOperator *op)
 void ANIM_OT_keying_set_remove (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Removed Active Keying Set";
+       ot->name= _("Removed Active Keying Set");
        ot->idname= "ANIM_OT_keying_set_remove";
-       ot->description= "Remove the active Keying Set";
+       ot->description= _("Remove the active Keying Set");
        
        /* callbacks */
        ot->exec= remove_active_keyingset_exec;
@@ -233,9 +233,9 @@ static int add_empty_ks_path_exec (bContext *C, wmOperator *op)
 void ANIM_OT_keying_set_path_add (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Empty Keying Set Path";
+       ot->name= _("Add Empty Keying Set Path");
        ot->idname= "ANIM_OT_keying_set_path_add";
-       ot->description= "Add empty path to active Keying Set";
+       ot->description= _("Add empty path to active Keying Set");
        
        /* callbacks */
        ot->exec= add_empty_ks_path_exec;
@@ -276,9 +276,9 @@ static int remove_active_ks_path_exec (bContext *C, wmOperator *op)
 void ANIM_OT_keying_set_path_remove (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Remove Active Keying Set Path";
+       ot->name= _("Remove Active Keying Set Path");
        ot->idname= "ANIM_OT_keying_set_path_remove";
-       ot->description= "Remove active Path from active Keying Set";
+       ot->description= _("Remove active Path from active Keying Set");
        
        /* callbacks */
        ot->exec= remove_active_ks_path_exec;
@@ -374,7 +374,7 @@ static int add_keyingset_button_exec (bContext *C, wmOperator *op)
 void ANIM_OT_keyingset_button_add (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add to Keying Set";
+       ot->name= _("Add to Keying Set");
        ot->idname= "ANIM_OT_keyingset_button_add";
        
        /* callbacks */
@@ -453,7 +453,7 @@ static int remove_keyingset_button_exec (bContext *C, wmOperator *op)
 void ANIM_OT_keyingset_button_remove (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Remove from Keying Set";
+       ot->name= _("Remove from Keying Set");
        ot->idname= "ANIM_OT_keyingset_button_remove";
        
        /* callbacks */
@@ -496,7 +496,7 @@ static int keyingset_active_menu_exec (bContext *C, wmOperator *op)
 void ANIM_OT_keying_set_active_set (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Set Active Keying Set";
+       ot->name= _("Set Active Keying Set");
        ot->idname= "ANIM_OT_keying_set_active_set";
        
        /* callbacks */
index 545cff824833123b7d539cbdc8439afbc8fa76d5..0ea21c83c2356b5dac122d15e3d5327f7de5e841 100644 (file)
@@ -39,6 +39,7 @@
 #include "BLI_math.h"
 #include "BLI_blenlib.h"
 
+#include "BLF_api.h"
 
 #include "RNA_access.h"
 
@@ -172,14 +173,14 @@ void ED_operatormacros_armature(void)
        wmOperatorType *ot;
        wmOperatorTypeMacro *otmacro;
        
-       ot= WM_operatortype_append_macro("ARMATURE_OT_duplicate_move", "Duplicate", OPTYPE_UNDO|OPTYPE_REGISTER);
+       ot= WM_operatortype_append_macro("ARMATURE_OT_duplicate_move", _("Duplicate"), OPTYPE_UNDO|OPTYPE_REGISTER);
        if(ot) {
                WM_operatortype_macro_define(ot, "ARMATURE_OT_duplicate");
                otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
                RNA_enum_set(otmacro->ptr, "proportional", 0);
        }
 
-       ot= WM_operatortype_append_macro("ARMATURE_OT_extrude_move", "Extrude", OPTYPE_UNDO|OPTYPE_REGISTER);
+       ot= WM_operatortype_append_macro("ARMATURE_OT_extrude_move", _("Extrude"), OPTYPE_UNDO|OPTYPE_REGISTER);
        if(ot) {
                otmacro=WM_operatortype_macro_define(ot, "ARMATURE_OT_extrude");
                RNA_boolean_set(otmacro->ptr, "forked", 0);
@@ -189,7 +190,7 @@ void ED_operatormacros_armature(void)
        
        // XXX would it be nicer to just be able to have standard extrude_move, but set the forked property separate?
        // that would require fixing a properties bug 19733
-       ot= WM_operatortype_append_macro("ARMATURE_OT_extrude_forked", "Extrude Forked", OPTYPE_UNDO|OPTYPE_REGISTER);
+       ot= WM_operatortype_append_macro("ARMATURE_OT_extrude_forked", _("Extrude Forked"), OPTYPE_UNDO|OPTYPE_REGISTER);
        if(ot) {
                otmacro=WM_operatortype_macro_define(ot, "ARMATURE_OT_extrude");
                RNA_boolean_set(otmacro->ptr, "forked", 1);
index 1144de4c355b6b2293a4e5c93561074df83113ba..8c1f2fae8991fb24691ca698081ae9a3c235789a 100644 (file)
@@ -716,9 +716,9 @@ static int apply_armature_pose2bones_exec (bContext *C, wmOperator *op)
 void POSE_OT_armature_apply (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Apply Pose as Rest Pose";
+       ot->name= _("Apply Pose as Rest Pose");
        ot->idname= "POSE_OT_armature_apply";
-       ot->description= "Apply the current pose as the new rest pose";
+       ot->description= _("Apply the current pose as the new rest pose");
        
        /* callbacks */
        ot->exec= apply_armature_pose2bones_exec;
@@ -767,9 +767,9 @@ static int pose_visual_transform_apply_exec (bContext *C, wmOperator *UNUSED(op)
 void POSE_OT_visual_transform_apply (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Apply Visual Transform to Pose";
+       ot->name= _("Apply Visual Transform to Pose");
        ot->idname= "POSE_OT_visual_transform_apply";
-       ot->description= "Apply final constrained position of pose bones to their transform.";
+       ot->description= _("Apply final constrained position of pose bones to their transform.");
        
        /* callbacks */
        ot->exec= pose_visual_transform_apply_exec;
@@ -1230,9 +1230,9 @@ static int separate_armature_exec (bContext *C, wmOperator *UNUSED(op))
 void ARMATURE_OT_separate (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Separate Bones";
+       ot->name= _("Separate Bones");
        ot->idname= "ARMATURE_OT_separate";
-       ot->description= "Isolate selected bones into a separate armature";
+       ot->description= _("Isolate selected bones into a separate armature");
        
        /* callbacks */
        ot->invoke= WM_operator_confirm;
@@ -1459,9 +1459,9 @@ static EnumPropertyItem prop_bone_setting_modes[] = {
 void ARMATURE_OT_flags_set (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Set Bone Flags";
+       ot->name= _("Set Bone Flags");
        ot->idname= "ARMATURE_OT_flags_set";
-       ot->description= "Set flags for armature bones";
+       ot->description= _("Set flags for armature bones");
        
        /* callbacks */
        ot->invoke= WM_menu_invoke;
@@ -1472,16 +1472,16 @@ void ARMATURE_OT_flags_set (wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
-       ot->prop= RNA_def_enum(ot->srna, "type", prop_bone_setting_types, 0, "Type", "");
-       RNA_def_enum(ot->srna, "mode", prop_bone_setting_modes, 0, "Mode", "");
+       ot->prop= RNA_def_enum(ot->srna, "type", prop_bone_setting_types, 0, _("Type"), "");
+       RNA_def_enum(ot->srna, "mode", prop_bone_setting_modes, 0, _("Mode"), "");
 }
 
 void POSE_OT_flags_set (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Set Bone Flags";
+       ot->name= _("Set Bone Flags");
        ot->idname= "POSE_OT_flags_set";
-       ot->description= "Set flags for armature bones";
+       ot->description= _("Set flags for armature bones");
        
        /* callbacks */
        ot->invoke= WM_menu_invoke;
@@ -1492,8 +1492,8 @@ void POSE_OT_flags_set (wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
-       ot->prop= RNA_def_enum(ot->srna, "type", prop_bone_setting_types, 0, "Type", "");
-       RNA_def_enum(ot->srna, "mode", prop_bone_setting_modes, 0, "Mode", "");
+       ot->prop= RNA_def_enum(ot->srna, "type", prop_bone_setting_types, 0, _("Type"), "");
+       RNA_def_enum(ot->srna, "mode", prop_bone_setting_modes, 0, _("Mode"), "");
 }
 
 
@@ -1673,9 +1673,9 @@ static int armature_select_linked_poll(bContext *C)
 void ARMATURE_OT_select_linked(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Connected";
+       ot->name= _("Select Connected");
        ot->idname= "ARMATURE_OT_select_linked";
-       ot->description= "Select bones related to selected ones by parent/child relationships";
+       ot->description= _("Select bones related to selected ones by parent/child relationships");
        
        /* api callbacks */
        ot->exec= NULL;
@@ -1858,9 +1858,9 @@ static int armature_delete_selected_exec(bContext *C, wmOperator *UNUSED(op))
 void ARMATURE_OT_delete(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Delete Selected Bone(s)";
+       ot->name= _("Delete Selected Bone(s)");
        ot->idname= "ARMATURE_OT_delete";
-       ot->description= "Remove selected bones from the armature";
+       ot->description= _("Remove selected bones from the armature");
        
        /* api callbacks */
        ot->invoke = WM_operator_confirm;
@@ -2107,12 +2107,12 @@ float ED_rollBoneToVector(EditBone *bone, const float align_axis[3], const short
 
 
 static EnumPropertyItem prop_calc_roll_types[] = {
-       {0, "X", 0, "X Axis", ""},
-       {1, "Y", 0, "Y Axis", ""},
-       {2, "Z", 0, "Z Axis", ""},
-       {5, "ACTIVE", 0, "Active Bone", ""},
-       {6, "VIEW", 0, "View Axis", ""},
-       {7, "CURSOR", 0, "Cursor", ""},
+       {0, "X", 0, N_("X Axis"), ""},
+       {1, "Y", 0, N_("Y Axis"), ""},
+       {2, "Z", 0, N_("Z Axis"), ""},
+       {5, "ACTIVE", 0, N_("Active Bone"), ""},
+       {6, "VIEW", 0, N_("View Axis"), ""},
+       {7, "CURSOR", 0, N_("Cursor"), ""},
        {0, NULL, 0, NULL, NULL}
 };
 
@@ -2213,9 +2213,9 @@ static int armature_calc_roll_exec(bContext *C, wmOperator *op)
 void ARMATURE_OT_calculate_roll(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Recalculate Roll";
+       ot->name= _("Recalculate Roll");
        ot->idname= "ARMATURE_OT_calculate_roll";
-       ot->description= "Automatically fix alignment of select bones' axes";
+       ot->description= _("Automatically fix alignment of select bones' axes");
        
        /* api callbacks */
        ot->invoke = WM_menu_invoke;
@@ -2226,7 +2226,7 @@ void ARMATURE_OT_calculate_roll(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       ot->prop= RNA_def_enum(ot->srna, "type", prop_calc_roll_types, 0, "Type", "");
+       ot->prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(prop_calc_roll_types), 0, _("Type"), "");
        RNA_def_boolean(ot->srna, "axis_flip", 0, _("Flip Axis"), _("Negate the alignment axis."));
        RNA_def_boolean(ot->srna, "axis_only", 0, _("Shortest Rotation"), _("Ignore the axis direction, use the shortest rotation to align."));
 }
@@ -2520,9 +2520,9 @@ static int armature_click_extrude_invoke(bContext *C, wmOperator *op, wmEvent *e
 void ARMATURE_OT_click_extrude(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Click-Extrude";
+       ot->name= _("Click-Extrude");
        ot->idname= "ARMATURE_OT_click_extrude";
-       ot->description= "Create a new bone going from the last selected joint to the mouse position";
+       ot->description= _("Create a new bone going from the last selected joint to the mouse position");
        
        /* api callbacks */
        ot->invoke = armature_click_extrude_invoke;
@@ -2789,9 +2789,9 @@ static int armature_duplicate_selected_exec(bContext *C, wmOperator *UNUSED(op))
 void ARMATURE_OT_duplicate(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Duplicate Selected Bone(s)";
+       ot->name= _("Duplicate Selected Bone(s)");
        ot->idname= "ARMATURE_OT_duplicate";
-       ot->description= "Make copies of the selected bones within the same armature";
+       ot->description= _("Make copies of the selected bones within the same armature");
        
        /* api callbacks */
        ot->exec = armature_duplicate_selected_exec;
@@ -3063,9 +3063,9 @@ static int armature_fill_bones_exec (bContext *C, wmOperator *op)
 void ARMATURE_OT_fill (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Fill Between Joints";
+       ot->name= _("Fill Between Joints");
        ot->idname= "ARMATURE_OT_fill";
-       ot->description= "Add bone between selected joint(s) and/or 3D-Cursor";
+       ot->description= _("Add bone between selected joint(s) and/or 3D-Cursor");
        
        /* callbacks */
        ot->exec= armature_fill_bones_exec;
@@ -3239,14 +3239,14 @@ static int armature_merge_exec (bContext *C, wmOperator *op)
 void ARMATURE_OT_merge (wmOperatorType *ot)
 {
        static EnumPropertyItem merge_types[] = {
-               {1, "WITHIN_CHAIN", 0, "Within Chains", ""},
+               {1, "WITHIN_CHAIN", 0, N_("Within Chains"), ""},
                {0, NULL, 0, NULL, NULL}
        };
 
        /* identifiers */
-       ot->name= "Merge Bones";
+       ot->name= _("Merge Bones");
        ot->idname= "ARMATURE_OT_merge";
-       ot->description= "Merge continuous chains of selected bones";
+       ot->description= _("Merge continuous chains of selected bones");
        
        /* callbacks */
        ot->invoke= WM_menu_invoke;
@@ -3257,7 +3257,7 @@ void ARMATURE_OT_merge (wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
-       ot->prop= RNA_def_enum(ot->srna, "type", merge_types, 0, "Type", "");
+       ot->prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(merge_types), 0, _("Type"), "");
 }
 
 /* ************** END Add/Remove stuff in editmode ************ */
@@ -3293,9 +3293,9 @@ static int armature_hide_exec(bContext *C, wmOperator *op)
 void ARMATURE_OT_hide(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Hide Selected Bones";
+       ot->name= _("Hide Selected Bones");
        ot->idname= "ARMATURE_OT_hide";
-       ot->description= "Tag selected bones to not be visible in Edit Mode";
+       ot->description= _("Tag selected bones to not be visible in Edit Mode");
        
        /* api callbacks */
        ot->exec= armature_hide_exec;
@@ -3333,9 +3333,9 @@ static int armature_reveal_exec(bContext *C, wmOperator *UNUSED(op))
 void ARMATURE_OT_reveal(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Reveal Bones";
+       ot->name= _("Reveal Bones");
        ot->idname= "ARMATURE_OT_reveal";
-       ot->description= "Unhide all bones that have been tagged to be hidden in Edit Mode";
+       ot->description= _("Unhide all bones that have been tagged to be hidden in Edit Mode");
        
        /* api callbacks */
        ot->exec= armature_reveal_exec;
@@ -3542,9 +3542,9 @@ static int armature_extrude_exec(bContext *C, wmOperator *op)
 void ARMATURE_OT_extrude(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Extrude";
+       ot->name= _("Extrude");
        ot->idname= "ARMATURE_OT_extrude";
-       ot->description= "Create new bones from the selected joints";
+       ot->description= _("Create new bones from the selected joints");
        
        /* api callbacks */
        ot->exec= armature_extrude_exec;
@@ -3605,9 +3605,9 @@ static int armature_bone_primitive_add_exec(bContext *C, wmOperator *op)
 void ARMATURE_OT_bone_primitive_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Bone";
+       ot->name= _("Add Bone");
        ot->idname= "ARMATURE_OT_bone_primitive_add";
-       ot->description= "Add a new bone located at the 3D-Cursor";
+       ot->description= _("Add a new bone located at the 3D-Cursor");
        
        /* api callbacks */
        ot->exec = armature_bone_primitive_add_exec;
@@ -3616,7 +3616,7 @@ void ARMATURE_OT_bone_primitive_add(wmOperatorType *ot)
        /* flags */
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
-       RNA_def_string(ot->srna, "name", "Bone", 32, "Name", "Name of the newly created bone");
+       RNA_def_string(ot->srna, "name", "Bone", 32, _("Name"), _("Name of the newly created bone"));
        
 }
 
@@ -3695,9 +3695,9 @@ static int armature_subdivide_exec(bContext *C, wmOperator *op)
 void ARMATURE_OT_subdivide(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Subdivide Multi";
+       ot->name= _("Subdivide Multi");
        ot->idname= "ARMATURE_OT_subdivide";
-       ot->description= "Break selected bones into chains of smaller bones";
+       ot->description= _("Break selected bones into chains of smaller bones");
        
        /* api callbacks */
        ot->exec = armature_subdivide_exec;
@@ -3707,7 +3707,7 @@ void ARMATURE_OT_subdivide(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* Properties */
-       RNA_def_int(ot->srna, "number_cuts", 1, 1, INT_MAX, "Number of Cuts", "", 1, 10);
+       RNA_def_int(ot->srna, "number_cuts", 1, 1, INT_MAX, _("Number of Cuts"), "", 1, 10);
 }
 
 /* ----------- */
@@ -3797,9 +3797,9 @@ static int armature_switch_direction_exec(bContext *C, wmOperator *UNUSED(op))
 void ARMATURE_OT_switch_direction(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Switch Direction";
+       ot->name= _("Switch Direction");
        ot->idname= "ARMATURE_OT_switch_direction";
-       ot->description= "Change the direction that a chain of bones points in (head <-> tail swap)";
+       ot->description= _("Change the direction that a chain of bones points in (head <-> tail swap)");
        
        /* api callbacks */
        ot->exec = armature_switch_direction_exec;
@@ -3871,8 +3871,8 @@ static void bone_connect_to_new_parent(ListBase *edbo, EditBone *selbone, EditBo
 }
 
 static EnumPropertyItem prop_editarm_make_parent_types[] = {
-       {ARM_PAR_CONNECT, "CONNECTED", 0, "Connected", ""},
-       {ARM_PAR_OFFSET, "OFFSET", 0, "Keep Offset", ""},
+       {ARM_PAR_CONNECT, "CONNECTED", 0, N_("Connected"), ""},
+       {ARM_PAR_OFFSET, "OFFSET", 0, N_("Keep Offset"), ""},
        {0, NULL, 0, NULL, NULL}
 };
 
@@ -3972,9 +3972,9 @@ static int armature_parent_set_invoke(bContext *C, wmOperator *UNUSED(op), wmEve
 void ARMATURE_OT_parent_set(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Make Parent";
+       ot->name= _("Make Parent");
        ot->idname= "ARMATURE_OT_parent_set";
-       ot->description= "Set the active bone as the parent of the selected bones";
+       ot->description= _("Set the active bone as the parent of the selected bones");
        
        /* api callbacks */
        ot->invoke = armature_parent_set_invoke;
@@ -3984,12 +3984,12 @@ void ARMATURE_OT_parent_set(wmOperatorType *ot)
        /* flags */
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
-       RNA_def_enum(ot->srna, "type", prop_editarm_make_parent_types, 0, "ParentType", "Type of parenting");
+       RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(prop_editarm_make_parent_types), 0, _("ParentType"), _("Type of parenting"));
 }
 
 static EnumPropertyItem prop_editarm_clear_parent_types[] = {
-       {1, "CLEAR", 0, "Clear Parent", ""},
-       {2, "DISCONNECT", 0, "Disconnect Bone", ""},
+       {1, "CLEAR", 0, N_("Clear Parent"), ""},
+       {2, "DISCONNECT", 0, N_("Disconnect Bone"), ""},
        {0, NULL, 0, NULL, NULL}
 };
 
@@ -4026,9 +4026,9 @@ static int armature_parent_clear_exec(bContext *C, wmOperator *op)
 void ARMATURE_OT_parent_clear(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Clear Parent";
+       ot->name= _("Clear Parent");
        ot->idname= "ARMATURE_OT_parent_clear";
-       ot->description= "Remove the parent-child relationship between selected bones and their parents";
+       ot->description= _("Remove the parent-child relationship between selected bones and their parents");
        
        /* api callbacks */
        ot->invoke = WM_menu_invoke;
@@ -4038,7 +4038,7 @@ void ARMATURE_OT_parent_clear(wmOperatorType *ot)
        /* flags */
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
-       ot->prop= RNA_def_enum(ot->srna, "type", prop_editarm_clear_parent_types, 0, "ClearType", "What way to clear parenting");
+       ot->prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(prop_editarm_clear_parent_types), 0, _("ClearType"), _("What way to clear parenting"));
 }
 
 /* ****************  Selections  ******************/
@@ -4063,9 +4063,9 @@ static int armature_select_inverse_exec(bContext *C, wmOperator *UNUSED(op))
 void ARMATURE_OT_select_inverse(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Inverse";
+       ot->name= _("Select Inverse");
        ot->idname= "ARMATURE_OT_select_inverse";
-       ot->description= "Flip the selection status of bones (selected -> unselected, unselected -> selected)";
+       ot->description= _("Flip the selection status of bones (selected -> unselected, unselected -> selected)");
        
        /* api callbacks */
        ot->exec= armature_select_inverse_exec;
@@ -4123,9 +4123,9 @@ static int armature_de_select_all_exec(bContext *C, wmOperator *op)
 void ARMATURE_OT_select_all(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select or Deselect All";
+       ot->name= _("Select or Deselect All");
        ot->idname= "ARMATURE_OT_select_all";
-       ot->description= "Toggle selection status of all bones";
+       ot->description= _("Toggle selection status of all bones");
        
        /* api callbacks */
        ot->exec= armature_de_select_all_exec;
@@ -4198,15 +4198,15 @@ static int armature_select_hierarchy_exec(bContext *C, wmOperator *op)
 void ARMATURE_OT_select_hierarchy(wmOperatorType *ot)
 {
        static EnumPropertyItem direction_items[]= {
-       {BONE_SELECT_PARENT, "PARENT", 0, "Select Parent", ""},
-       {BONE_SELECT_CHILD, "CHILD", 0, "Select Child", ""},
+       {BONE_SELECT_PARENT, "PARENT", 0, N_("Select Parent"), ""},
+       {BONE_SELECT_CHILD, "CHILD", 0, N_("Select Child"), ""},
        {0, NULL, 0, NULL, NULL}
        };
        
        /* identifiers */
-       ot->name= "Select Hierarchy";
+       ot->name= _("Select Hierarchy");
        ot->idname= "ARMATURE_OT_select_hierarchy";
-       ot->description= "Select immediate parent/children of selected bones";
+       ot->description= _("Select immediate parent/children of selected bones");
        
        /* api callbacks */
        ot->exec= armature_select_hierarchy_exec;
@@ -4216,8 +4216,8 @@ void ARMATURE_OT_select_hierarchy(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* props */
-       RNA_def_enum(ot->srna, "direction", direction_items,
-                        BONE_SELECT_PARENT, "Direction", "");
+       RNA_def_enum(ot->srna, "direction", RNA_enum_items_gettexted(direction_items),
+                        BONE_SELECT_PARENT, _("Direction"), "");
        RNA_def_boolean(ot->srna, "extend", 0, _("Add to Selection"), "");
 }
 
@@ -4343,9 +4343,9 @@ static int armature_align_bones_exec(bContext *C, wmOperator *op)
 void ARMATURE_OT_align(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Align Bones";
+       ot->name= _("Align Bones");
        ot->idname= "ARMATURE_OT_align";
-       ot->description= "Align selected bones to the active bone (or to their parent)";
+       ot->description= _("Align selected bones to the active bone (or to their parent)");
        
        /* api callbacks */
        ot->invoke = WM_operator_confirm;
@@ -5058,9 +5058,9 @@ static int pose_clear_scale_exec(bContext *C, wmOperator *op)
 void POSE_OT_scale_clear(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Clear Pose Scale";
+       ot->name= _("Clear Pose Scale");
        ot->idname= "POSE_OT_scale_clear";
-       ot->description = "Reset scaling of selected bones to their default values";
+       ot->description = _("Reset scaling of selected bones to their default values");
        
        /* api callbacks */
        ot->exec = pose_clear_scale_exec;
@@ -5079,9 +5079,9 @@ static int pose_clear_rot_exec(bContext *C, wmOperator *op)
 void POSE_OT_rot_clear(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Clear Pose Rotation";
+       ot->name= _("Clear Pose Rotation");
        ot->idname= "POSE_OT_rot_clear";
-       ot->description = "Reset rotations of selected bones to their default values";
+       ot->description = _("Reset rotations of selected bones to their default values");
        
        /* api callbacks */
        ot->exec = pose_clear_rot_exec;
@@ -5100,9 +5100,9 @@ static int pose_clear_loc_exec(bContext *C, wmOperator *op)
 void POSE_OT_loc_clear(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Clear Pose Location";
+       ot->name= _("Clear Pose Location");
        ot->idname= "POSE_OT_loc_clear";
-       ot->description = "Reset locations of selected bones to their default values";
+       ot->description = _("Reset locations of selected bones to their default values");
        
        /* api callbacks */
        ot->exec = pose_clear_loc_exec;
@@ -5121,9 +5121,9 @@ static int pose_clear_transforms_exec(bContext *C, wmOperator *op)
 void POSE_OT_transforms_clear(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Clear Pose Transforms";
+       ot->name= _("Clear Pose Transforms");
        ot->idname= "POSE_OT_transforms_clear";
-       ot->description = "Reset location, rotation, and scaling of selected bones to their default values";
+       ot->description = _("Reset location, rotation, and scaling of selected bones to their default values");
        
        /* api callbacks */
        ot->exec = pose_clear_transforms_exec;
@@ -5155,9 +5155,9 @@ static int pose_select_inverse_exec(bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_select_inverse(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Inverse";
+       ot->name= _("Select Inverse");
        ot->idname= "POSE_OT_select_inverse";
-       ot->description= "Flip the selection status of bones (selected -> unselected, unselected -> selected)";
+       ot->description= _("Flip the selection status of bones (selected -> unselected, unselected -> selected)");
        
        /* api callbacks */
        ot->exec= pose_select_inverse_exec;
@@ -5206,9 +5206,9 @@ static int pose_de_select_all_exec(bContext *C, wmOperator *op)
 void POSE_OT_select_all(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select or Deselect All";
+       ot->name= _("Select or Deselect All");
        ot->idname= "POSE_OT_select_all";
-       ot->description= "Toggle selection status of all bones";
+       ot->description= _("Toggle selection status of all bones");
        
        /* api callbacks */
        ot->exec= pose_de_select_all_exec;
@@ -5250,9 +5250,9 @@ static int pose_select_parent_exec(bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_select_parent(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Parent Bone";
+       ot->name= _("Select Parent Bone");
        ot->idname= "POSE_OT_select_parent";
-       ot->description= "Select bones that are parents of the currently selected bones";
+       ot->description= _("Select bones that are parents of the currently selected bones");
 
        /* api callbacks */
        ot->exec= pose_select_parent_exec;
@@ -5361,9 +5361,9 @@ static int pose_reveal_exec(bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_reveal(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Reveal Selected";
+       ot->name= _("Reveal Selected");
        ot->idname= "POSE_OT_reveal";
-       ot->description= "Unhide all bones that have been tagged to be hidden in Pose Mode";
+       ot->description= _("Unhide all bones that have been tagged to be hidden in Pose Mode");
        
        /* api callbacks */
        ot->exec= pose_reveal_exec;
@@ -5576,9 +5576,9 @@ static int armature_flip_names_exec (bContext *C, wmOperator *UNUSED(op))
 void ARMATURE_OT_flip_names (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Flip Names";
+       ot->name= _("Flip Names");
        ot->idname= "ARMATURE_OT_flip_names";
-       ot->description= "Flips (and corrects) the axis suffixes of the names of selected bones";
+       ot->description= _("Flips (and corrects) the axis suffixes of the names of selected bones");
        
        /* api callbacks */
        ot->exec= armature_flip_names_exec;
@@ -5622,15 +5622,15 @@ static int armature_autoside_names_exec (bContext *C, wmOperator *op)
 void ARMATURE_OT_autoside_names (wmOperatorType *ot)
 {
        static EnumPropertyItem axis_items[]= {
-                {0, "XAXIS", 0, "X-Axis", "Left/Right"},
-               {1, "YAXIS", 0, "Y-Axis", "Front/Back"},
-               {2, "ZAXIS", 0, "Z-Axis", "Top/Bottom"},
+                {0, "XAXIS", 0, N_("X-Axis"), N_("Left/Right")},
+               {1, "YAXIS", 0, N_("Y-Axis"), N_("Front/Back")},
+               {2, "ZAXIS", 0, N_("Z-Axis"), N_("Top/Bottom")},
                {0, NULL, 0, NULL, NULL}};
        
        /* identifiers */
-       ot->name= "AutoName by Axis";
+       ot->name= _("AutoName by Axis");
        ot->idname= "ARMATURE_OT_autoside_names";
-       ot->description= "Automatically renames the selected bones according to which side of the target axis they fall on";
+       ot->description= _("Automatically renames the selected bones according to which side of the target axis they fall on");
        
        /* api callbacks */
        ot->invoke= WM_menu_invoke;
@@ -5641,7 +5641,7 @@ void ARMATURE_OT_autoside_names (wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* settings */
-       ot->prop= RNA_def_enum(ot->srna, "type", axis_items, 0, "Axis", "Axis tag names with.");
+       ot->prop= RNA_def_enum(ot->srna, "type", axis_items, 0, _("Axis"), _("Axis tag names with."));
 }
 
 
index e3a6ded34100d350f320bca5b4fcd3e67e8c8fde..20f1c72ed9e852405ea9f269d63fa97c117799d4 100644 (file)
@@ -2843,7 +2843,7 @@ int ED_operator_sketch_mode(const bContext *C)
 void SKETCH_OT_delete(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "delete";
+       ot->name= _("delete");
        ot->idname= "SKETCH_OT_delete";
 
        /* api callbacks */
@@ -2858,7 +2858,7 @@ void SKETCH_OT_delete(wmOperatorType *ot)
 void SKETCH_OT_select(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "select";
+       ot->name= _("select");
        ot->idname= "SKETCH_OT_select";
 
        /* api callbacks */
@@ -2873,7 +2873,7 @@ void SKETCH_OT_select(wmOperatorType *ot)
 void SKETCH_OT_cancel_stroke(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "cancel stroke";
+       ot->name= _("cancel stroke");
        ot->idname= "SKETCH_OT_cancel_stroke";
 
        /* api callbacks */
@@ -2888,7 +2888,7 @@ void SKETCH_OT_cancel_stroke(wmOperatorType *ot)
 void SKETCH_OT_convert(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "convert";
+       ot->name= _("convert");
        ot->idname= "SKETCH_OT_convert";
 
        /* api callbacks */
@@ -2903,7 +2903,7 @@ void SKETCH_OT_convert(wmOperatorType *ot)
 void SKETCH_OT_finish_stroke(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "end stroke";
+       ot->name= _("end stroke");
        ot->idname= "SKETCH_OT_finish_stroke";
 
        /* api callbacks */
@@ -2935,7 +2935,7 @@ void SKETCH_OT_draw_preview(wmOperatorType *ot)
 void SKETCH_OT_draw_stroke(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "draw stroke";
+       ot->name= _("draw stroke");
        ot->idname= "SKETCH_OT_draw_stroke";
 
        /* api callbacks */
@@ -2954,7 +2954,7 @@ void SKETCH_OT_draw_stroke(wmOperatorType *ot)
 void SKETCH_OT_gesture(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "gesture";
+       ot->name= _("gesture");
        ot->idname= "SKETCH_OT_gesture";
 
        /* api callbacks */
index d5ad8346be2fe9fb09fdb2ca7c4caed14a00fbc6..2ec91cca250b1e3e71fb27f2f1da41004f55a8ee 100644 (file)
@@ -728,9 +728,9 @@ static int pose_slide_push_exec (bContext *C, wmOperator *op)
 void POSE_OT_push (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Push Pose";
+       ot->name= _("Push Pose");
        ot->idname= "POSE_OT_push";
-       ot->description= "Exaggerate the current pose";
+       ot->description= _("Exaggerate the current pose");
        
        /* callbacks */
        ot->exec= pose_slide_push_exec;
@@ -785,9 +785,9 @@ static int pose_slide_relax_exec (bContext *C, wmOperator *op)
 void POSE_OT_relax (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Relax Pose";
+       ot->name= _("Relax Pose");
        ot->idname= "POSE_OT_relax";
-       ot->description= "Make the current pose more similar to its surrounding ones";
+       ot->description= _("Make the current pose more similar to its surrounding ones");
        
        /* callbacks */
        ot->exec= pose_slide_relax_exec;
@@ -842,9 +842,9 @@ static int pose_slide_breakdown_exec (bContext *C, wmOperator *op)
 void POSE_OT_breakdown (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Pose Breakdowner";
+       ot->name= _("Pose Breakdowner");
        ot->idname= "POSE_OT_breakdown";
-       ot->description= "Create a suitable breakdown pose on the current frame";
+       ot->description= _("Create a suitable breakdown pose on the current frame");
        
        /* callbacks */
        ot->exec= pose_slide_breakdown_exec;
@@ -1197,18 +1197,18 @@ static int pose_propagate_exec (bContext *C, wmOperator *op)
 void POSE_OT_propagate (wmOperatorType *ot)
 {
        static EnumPropertyItem terminate_items[]= {
-               {POSE_PROPAGATE_SMART_HOLDS, "WHILE_HELD", 0, "While Held", "Propagate pose to all keyframes after current frame that don't change (Default behaviour)"},
-               {POSE_PROPAGATE_NEXT_KEY, "NEXT_KEY", 0, "To Next Keyframe", "Propagate pose to first keyframe following the current frame only"},
-               {POSE_PROPAGATE_LAST_KEY, "LAST_KEY", 0, "To Last Keyframe", "Propagate pose to the last keyframe only (i.e. making action cyclic)"},
-               {POSE_PROPAGATE_BEFORE_FRAME, "BEFORE_FRAME", 0, "Before Frame", "Propagate pose to all keyframes between current frame and 'Frame' property"},
-               {POSE_PROPAGATE_BEFORE_END, "BEFORE_END", 0, "Before Last Keyframe", "Propagate pose to all keyframes from current frame until no more are found"},
-               {POSE_PROPAGATE_SELECTED_MARKERS, "SELECTED_MARKERS", 0, "On Selected Markers", "Propagate pose to all keyframes occurring on frames with Scene Markers after the current frame"},
+               {POSE_PROPAGATE_SMART_HOLDS, "WHILE_HELD", 0, N_("While Held"), N_("Propagate pose to all keyframes after current frame that don't change (Default behaviour)")},
+               {POSE_PROPAGATE_NEXT_KEY, "NEXT_KEY", 0, N_("To Next Keyframe"), N_("Propagate pose to first keyframe following the current frame only")},
+               {POSE_PROPAGATE_LAST_KEY, "LAST_KEY", 0, N_("To Last Keyframe"), N_("Propagate pose to the last keyframe only (i.e. making action cyclic)")},
+               {POSE_PROPAGATE_BEFORE_FRAME, "BEFORE_FRAME", 0, N_("Before Frame"), N_("Propagate pose to all keyframes between current frame and 'Frame' property")},
+               {POSE_PROPAGATE_BEFORE_END, "BEFORE_END", 0, N_("Before Last Keyframe"), N_("Propagate pose to all keyframes from current frame until no more are found")},
+               {POSE_PROPAGATE_SELECTED_MARKERS, "SELECTED_MARKERS", 0, N_("On Selected Markers"), N_("Propagate pose to all keyframes occurring on frames with Scene Markers after the current frame")},
                {0, NULL, 0, NULL, NULL}};
                
        /* identifiers */
-       ot->name= "Propagate Pose";
+       ot->name= _("Propagate Pose");
        ot->idname= "POSE_OT_propagate";
-       ot->description= "Copy selected aspects of the current pose to subsequent poses already keyframed";
+       ot->description= _("Copy selected aspects of the current pose to subsequent poses already keyframed");
        
        /* callbacks */
        ot->exec= pose_propagate_exec;
@@ -1219,8 +1219,8 @@ void POSE_OT_propagate (wmOperatorType *ot)
        
        /* properties */
        // TODO: add "fade out" control for tapering off amount of propagation as time goes by?
-       ot->prop= RNA_def_enum(ot->srna, "mode", terminate_items, POSE_PROPAGATE_SMART_HOLDS, "Terminate Mode", "Method used to determine when to stop propagating pose to keyframes");
-       RNA_def_float(ot->srna, "end_frame", 250.0, FLT_MIN, FLT_MAX, "End Frame", "Frame to stop propagating frames to (for 'Before Frame' mode)", 1.0, 250.0);
+       ot->prop= RNA_def_enum(ot->srna, "mode", RNA_enum_items_gettexted(terminate_items), POSE_PROPAGATE_SMART_HOLDS, _("Terminate Mode"), _("Method used to determine when to stop propagating pose to keyframes"));
+       RNA_def_float(ot->srna, "end_frame", 250.0, FLT_MIN, FLT_MAX, _("End Frame"), _("Frame to stop propagating frames to (for 'Before Frame' mode)"), 1.0, 250.0);
 }
 
 /* **************************************************** */
index effe4ee5f76962357d156886913db3e0774ae700..dc47ad1a1e101f285584a7f95f81caddf262c656 100644 (file)
@@ -223,9 +223,9 @@ static int poselib_new_exec (bContext *C, wmOperator *UNUSED(op))
 void POSELIB_OT_new (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name = "New Pose Library";
+       ot->name = _("New Pose Library");
        ot->idname = "POSELIB_OT_new";
-       ot->description = "Add New Pose Library to active Object";
+       ot->description = _("Add New Pose Library to active Object");
        
        /* callbacks */
        ot->exec = poselib_new_exec;
@@ -258,9 +258,9 @@ static int poselib_unlink_exec (bContext *C, wmOperator *UNUSED(op))
 void POSELIB_OT_unlink (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name = "Unlink Pose Library";
+       ot->name = _("Unlink Pose Library");
        ot->idname = "POSELIB_OT_unlink";
-       ot->description = "Remove Pose Library from active Object";
+       ot->description = _("Remove Pose Library from active Object");
        
        /* callbacks */
        ot->exec = poselib_unlink_exec;
@@ -339,9 +339,9 @@ static int poselib_sanitise_exec (bContext *C, wmOperator *op)
 void POSELIB_OT_action_sanitise (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name = "Sanitise Pose Library Action";
+       ot->name = _("Sanitise Pose Library Action");
        ot->idname = "POSELIB_OT_action_sanitise";
-       ot->description = "Make action suitable for use as a Pose Library";
+       ot->description = _("Make action suitable for use as a Pose Library");
        
        /* callbacks */
        ot->exec = poselib_sanitise_exec;
@@ -393,15 +393,15 @@ static int poselib_add_menu_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED
        uiLayoutSetOperatorContext(layout, WM_OP_EXEC_DEFAULT);
        
        /* add new (adds to the first unoccupied frame) */
-       uiItemIntO(layout, "Add New", ICON_NONE, "POSELIB_OT_pose_add", "frame", poselib_get_free_index(ob->poselib));
+       uiItemIntO(layout, _("Add New"), ICON_NONE, "POSELIB_OT_pose_add", "frame", poselib_get_free_index(ob->poselib));
        
        /* check if we have any choices to add a new pose in any other way */
        if ((ob->poselib) && (ob->poselib->markers.first)) {
                /* add new (on current frame) */
-               uiItemIntO(layout, "Add New (Current Frame)", ICON_NONE, "POSELIB_OT_pose_add", "frame", CFRA);
+               uiItemIntO(layout, _("Add New (Current Frame)"), ICON_NONE, "POSELIB_OT_pose_add", "frame", CFRA);
                
                /* replace existing - submenu */
-               uiItemMenuF(layout, "Replace Existing...", 0, poselib_add_menu_invoke__replacemenu, NULL);
+               uiItemMenuF(layout, _("Replace Existing..."), 0, poselib_add_menu_invoke__replacemenu, NULL);
        }
        
        uiPupMenuEnd(C, pup);
@@ -465,9 +465,9 @@ static int poselib_add_exec (bContext *C, wmOperator *op)
 void POSELIB_OT_pose_add (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "PoseLib Add Pose";
+       ot->name= _("PoseLib Add Pose");
        ot->idname= "POSELIB_OT_pose_add";
-       ot->description= "Add the current Pose to the active Pose Library";
+       ot->description= _("Add the current Pose to the active Pose Library");
        
        /* api callbacks */
        ot->invoke= poselib_add_menu_invoke;
@@ -566,9 +566,9 @@ void POSELIB_OT_pose_remove (wmOperatorType *ot)
        PropertyRNA *prop;
        
        /* identifiers */
-       ot->name= "PoseLib Remove Pose";
+       ot->name= _("PoseLib Remove Pose");
        ot->idname= "POSELIB_OT_pose_remove";
-       ot->description= "Remove nth pose from the active Pose Library";
+       ot->description= _("Remove nth pose from the active Pose Library");
        
        /* api callbacks */
        ot->invoke= WM_menu_invoke;
@@ -579,7 +579,7 @@ void POSELIB_OT_pose_remove (wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
-       prop= RNA_def_enum(ot->srna, "pose", DummyRNA_DEFAULT_items, 0, "Pose", "The pose to remove");
+       prop= RNA_def_enum(ot->srna, "pose", DummyRNA_DEFAULT_items, 0, _("Pose"), _("The pose to remove"));
                RNA_def_enum_funcs(prop, poselib_stored_pose_itemf);
        ot->prop= prop;
 }
@@ -651,9 +651,9 @@ void POSELIB_OT_pose_rename (wmOperatorType *ot)
        };
        
        /* identifiers */
-       ot->name= "PoseLib Rename Pose";
+       ot->name= _("PoseLib Rename Pose");
        ot->idname= "POSELIB_OT_pose_rename";
-       ot->description= "Rename specified pose from the active Pose Library";
+       ot->description= _("Rename specified pose from the active Pose Library");
        
        /* api callbacks */
        ot->invoke= poselib_rename_invoke;
@@ -1578,9 +1578,9 @@ static int poselib_preview_exec (bContext *C, wmOperator *op)
 void POSELIB_OT_browse_interactive (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "PoseLib Browse Poses";
+       ot->name= _("PoseLib Browse Poses");
        ot->idname= "POSELIB_OT_browse_interactive";
-       ot->description= "Interactively browse poses in 3D-View";
+       ot->description= _("Interactively browse poses in 3D-View");
        
        /* callbacks */
        ot->invoke= poselib_preview_invoke;
@@ -1604,9 +1604,9 @@ void POSELIB_OT_browse_interactive (wmOperatorType *ot)
 void POSELIB_OT_apply_pose (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name = "Apply Pose Library Pose";
+       ot->name = _("Apply Pose Library Pose");
        ot->idname = "POSELIB_OT_apply_pose";
-       ot->description = "Apply specified Pose Library pose to the rig";
+       ot->description = _("Apply specified Pose Library pose to the rig");
        
        /* callbacks */
        ot->exec= poselib_preview_exec;
index 680218551db50def0a2ff8807e08ef7f2a27d8e7..cd632333ce7dacaa197fcba66d873487aa7b509b 100644 (file)
@@ -284,9 +284,9 @@ static int pose_calculate_paths_exec (bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_paths_calculate (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Calculate Bone Paths";
+       ot->name= _("Calculate Bone Paths");
        ot->idname= "POSE_OT_paths_calculate";
-       ot->description= "Calculate paths for the selected bones";
+       ot->description= _("Calculate paths for the selected bones");
        
        /* api callbacks */
        ot->exec= pose_calculate_paths_exec;
@@ -352,9 +352,9 @@ static int pose_clear_paths_exec (bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_paths_clear (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Clear Bone Paths";
+       ot->name= _("Clear Bone Paths");
        ot->idname= "POSE_OT_paths_clear";
-       ot->description= "Clear path caches for selected bones";
+       ot->description= _("Clear path caches for selected bones");
        
        /* api callbacks */
        ot->exec= pose_clear_paths_exec;
@@ -412,9 +412,9 @@ static int pose_select_constraint_target_exec(bContext *C, wmOperator *UNUSED(op
 void POSE_OT_select_constraint_target(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Constraint Target";
+       ot->name= _("Select Constraint Target");
        ot->idname= "POSE_OT_select_constraint_target";
-       ot->description= "Select bones used as targets for the currently selected bones";
+       ot->description= _("Select bones used as targets for the currently selected bones");
        
        /* api callbacks */
        ot->exec= pose_select_constraint_target_exec;
@@ -483,8 +483,8 @@ static int pose_select_hierarchy_exec(bContext *C, wmOperator *op)
 void POSE_OT_select_hierarchy(wmOperatorType *ot)
 {
        static EnumPropertyItem direction_items[]= {
-               {BONE_SELECT_PARENT, "PARENT", 0, "Select Parent", ""},
-               {BONE_SELECT_CHILD, "CHILD", 0, "Select Child", ""},
+               {BONE_SELECT_PARENT, "PARENT", 0, N_("Select Parent"), ""},
+               {BONE_SELECT_CHILD, "CHILD", 0, N_("Select Child"), ""},
                {0, NULL, 0, NULL, NULL}
        };
        
@@ -501,7 +501,7 @@ void POSE_OT_select_hierarchy(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
-       ot->prop= RNA_def_enum(ot->srna, "direction", direction_items, BONE_SELECT_PARENT, "Direction", "");
+       ot->prop= RNA_def_enum(ot->srna, "direction", RNA_enum_items_gettexted(direction_items), BONE_SELECT_PARENT, _("Direction"), "");
        RNA_def_boolean(ot->srna, "extend", 0, _("Add to Selection"), "");
        
 }
@@ -642,8 +642,8 @@ static int pose_select_grouped_exec (bContext *C, wmOperator *op)
 void POSE_OT_select_grouped (wmOperatorType *ot)
 {
        static EnumPropertyItem prop_select_grouped_types[] = {
-               {0, "LAYER", 0, "Layer", "Shared layers"},
-               {1, "GROUP", 0, "Group", "Shared group"},
+               {0, "LAYER", 0, N_("Layer"), N_("Shared layers")},
+               {1, "GROUP", 0, N_("Group"), N_("Shared group")},
                {0, NULL, 0, NULL, NULL}
        };
 
@@ -662,7 +662,7 @@ void POSE_OT_select_grouped (wmOperatorType *ot)
        
        /* properties */
        RNA_def_boolean(ot->srna, "extend", FALSE, _("Extend"), _("Extend selection instead of deselecting everything first."));
-       ot->prop= RNA_def_enum(ot->srna, "type", prop_select_grouped_types, 0, "Type", "");
+       ot->prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(prop_select_grouped_types), 0, _("Type"), "");
 }
 
 
@@ -708,9 +708,9 @@ static int pose_bone_flip_active_exec (bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_select_flip_active(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Flip Selected Active Bone";
+       ot->name= _("Flip Selected Active Bone");
        ot->idname= "POSE_OT_select_flip_active";
-       ot->description= "Activate the bone with a flipped name.";
+       ot->description= _("Activate the bone with a flipped name.");
        
        /* api callbacks */
        ot->exec= pose_bone_flip_active_exec;
@@ -973,9 +973,9 @@ static int pose_copy_exec (bContext *C, wmOperator *op)
 void POSE_OT_copy (wmOperatorType *ot) 
 {
        /* identifiers */
-       ot->name= "Copy Pose";
+       ot->name= _("Copy Pose");
        ot->idname= "POSE_OT_copy";
-       ot->description= "Copies the current pose of the selected bones to copy/paste buffer";
+       ot->description= _("Copies the current pose of the selected bones to copy/paste buffer");
        
        /* api callbacks */
        ot->exec= pose_copy_exec;
@@ -1204,9 +1204,9 @@ static int pose_group_add_exec (bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_group_add (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Bone Group";
+       ot->name= _("Add Bone Group");
        ot->idname= "POSE_OT_group_add";
-       ot->description= "Add a new bone group";
+       ot->description= _("Add a new bone group");
        
        /* api callbacks */
        ot->exec= pose_group_add_exec;
@@ -1244,9 +1244,9 @@ static int pose_group_remove_exec (bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_group_remove (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Remove Bone Group";
+       ot->name= _("Remove Bone Group");
        ot->idname= "POSE_OT_group_remove";
-       ot->description= "Removes the active bone group";
+       ot->description= _("Removes the active bone group");
        
        /* api callbacks */
        ot->exec= pose_group_remove_exec;
@@ -1359,9 +1359,9 @@ static int pose_group_assign_exec (bContext *C, wmOperator *op)
 void POSE_OT_group_assign (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Selected to Bone Group";
+       ot->name= _("Add Selected to Bone Group");
        ot->idname= "POSE_OT_group_assign";
-       ot->description= "Add selected bones to the chosen bone group";
+       ot->description= _("Add selected bones to the chosen bone group");
        
        /* api callbacks */
        ot->invoke= pose_groups_menu_invoke;
@@ -1415,9 +1415,9 @@ static int pose_group_unassign_exec (bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_group_unassign (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Remove Selected from Bone Groups";
+       ot->name= _("Remove Selected from Bone Groups");
        ot->idname= "POSE_OT_group_unassign";
-       ot->description= "Remove selected bones from all bone groups";
+       ot->description= _("Remove selected bones from all bone groups");
        
        /* api callbacks */
        ot->exec= pose_group_unassign_exec;
@@ -1473,9 +1473,9 @@ static int pose_group_select_exec (bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_group_select (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Bones of Bone Group";
+       ot->name= _("Select Bones of Bone Group");
        ot->idname= "POSE_OT_group_select";
-       ot->description= "Select bones in active Bone Group";
+       ot->description= _("Select bones in active Bone Group");
        
        /* api callbacks */
        ot->exec= pose_group_select_exec;
@@ -1511,9 +1511,9 @@ static int pose_group_deselect_exec (bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_group_deselect (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Deselect Bone Group";
+       ot->name= _("Deselect Bone Group");
        ot->idname= "POSE_OT_group_deselect";
-       ot->description= "Deselect bones of active Bone Group";
+       ot->description= _("Deselect bones of active Bone Group");
        
        /* api callbacks */
        ot->exec= pose_group_deselect_exec;
@@ -1556,9 +1556,9 @@ static int pose_flip_names_exec (bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_flip_names (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Flip Names";
+       ot->name= _("Flip Names");
        ot->idname= "POSE_OT_flip_names";
-       ot->description= "Flips (and corrects) the axis suffixes of the the names of selected bones";
+       ot->description= _("Flips (and corrects) the axis suffixes of the the names of selected bones");
        
        /* api callbacks */
        ot->exec= pose_flip_names_exec;
@@ -1603,15 +1603,15 @@ static int pose_autoside_names_exec (bContext *C, wmOperator *op)
 void POSE_OT_autoside_names (wmOperatorType *ot)
 {
        static EnumPropertyItem axis_items[]= {
-               {0, "XAXIS", 0, "X-Axis", "Left/Right"},
-               {1, "YAXIS", 0, "Y-Axis", "Front/Back"},
-               {2, "ZAXIS", 0, "Z-Axis", "Top/Bottom"},
+               {0, "XAXIS", 0, N_("X-Axis"), N_("Left/Right")},
+               {1, "YAXIS", 0, N_("Y-Axis"), N_("Front/Back")},
+               {2, "ZAXIS", 0, N_("Z-Axis"), N_("Top/Bottom")},
                {0, NULL, 0, NULL, NULL}};
        
        /* identifiers */
-       ot->name= "AutoName by Axis";
+       ot->name= _("AutoName by Axis");
        ot->idname= "POSE_OT_autoside_names";
-       ot->description= "Automatically renames the selected bones according to which side of the target axis they fall on";
+       ot->description= _("Automatically renames the selected bones according to which side of the target axis they fall on");
        
        /* api callbacks */
        ot->invoke= WM_menu_invoke;
@@ -1622,7 +1622,7 @@ void POSE_OT_autoside_names (wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* settings */
-       ot->prop= RNA_def_enum(ot->srna, "axis", axis_items, 0, "Axis", "Axis tag names with.");
+       ot->prop= RNA_def_enum(ot->srna, "axis", RNA_enum_items_gettexted(axis_items), 0, _("Axis"), _("Axis tag names with."));
 }
 
 /* ********************************************** */
@@ -1668,9 +1668,9 @@ static int pose_armature_layers_showall_exec (bContext *C, wmOperator *op)
 void ARMATURE_OT_layers_show_all (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Show All Layers";
+       ot->name= _("Show All Layers");
        ot->idname= "ARMATURE_OT_layers_show_all";
-       ot->description= "Make all armature layers visible";
+       ot->description= _("Make all armature layers visible");
        
        /* callbacks */
        ot->exec= pose_armature_layers_showall_exec;
@@ -1734,9 +1734,9 @@ static int pose_armature_layers_exec (bContext *C, wmOperator *op)
 void POSE_OT_armature_layers (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Change Armature Layers";
+       ot->name= _("Change Armature Layers");
        ot->idname= "POSE_OT_armature_layers";
-       ot->description= "Change the visible armature layers";
+       ot->description= _("Change the visible armature layers");
        
        /* callbacks */
        ot->invoke= pose_armature_layers_invoke;
@@ -1747,15 +1747,15 @@ void POSE_OT_armature_layers (wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
-       RNA_def_boolean_layer_member(ot->srna, "layers", 32, NULL, "Layer", "Armature layers to make visible");
+       RNA_def_boolean_layer_member(ot->srna, "layers", 32, NULL, _("Layer"), _("Armature layers to make visible"));
 }
 
 void ARMATURE_OT_armature_layers (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Change Armature Layers";
+       ot->name= _("Change Armature Layers");
        ot->idname= "ARMATURE_OT_armature_layers";
-       ot->description= "Change the visible armature layers";
+       ot->description= _("Change the visible armature layers");
        
        /* callbacks */
        ot->invoke= pose_armature_layers_invoke;
@@ -1766,7 +1766,7 @@ void ARMATURE_OT_armature_layers (wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
-       RNA_def_boolean_layer_member(ot->srna, "layers", 32, NULL, "Layer", "Armature layers to make visible");
+       RNA_def_boolean_layer_member(ot->srna, "layers", 32, NULL, _("Layer"), _("Armature layers to make visible"));
 }
 
 /* ------------------- */
@@ -1828,9 +1828,9 @@ static int pose_bone_layers_exec (bContext *C, wmOperator *op)
 void POSE_OT_bone_layers (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Change Bone Layers";
+       ot->name= _("Change Bone Layers");
        ot->idname= "POSE_OT_bone_layers";
-       ot->description= "Change the layers that the selected bones belong to";
+       ot->description= _("Change the layers that the selected bones belong to");
        
        /* callbacks */
        ot->invoke= pose_bone_layers_invoke;
@@ -1841,7 +1841,7 @@ void POSE_OT_bone_layers (wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
-       RNA_def_boolean_layer_member(ot->srna, "layers", 32, NULL, "Layer", "Armature layers that bone belongs to");
+       RNA_def_boolean_layer_member(ot->srna, "layers", 32, NULL, _("Layer"), _("Armature layers that bone belongs to"));
 }
 
 /* ------------------- */
@@ -1900,9 +1900,9 @@ static int armature_bone_layers_exec (bContext *C, wmOperator *op)
 void ARMATURE_OT_bone_layers (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Change Bone Layers";
+       ot->name= _("Change Bone Layers");
        ot->idname= "ARMATURE_OT_bone_layers";
-       ot->description= "Change the layers that the selected bones belong to";
+       ot->description= _("Change the layers that the selected bones belong to");
        
        /* callbacks */
        ot->invoke= armature_bone_layers_invoke;
@@ -1913,7 +1913,7 @@ void ARMATURE_OT_bone_layers (wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
-       RNA_def_boolean_layer_member(ot->srna, "layers", 32, NULL, "Layer", "Armature layers that bone belongs to");
+       RNA_def_boolean_layer_member(ot->srna, "layers", 32, NULL, _("Layer"), _("Armature layers that bone belongs to"));
 }
 
 /* ********************************************** */
@@ -1968,9 +1968,9 @@ static int pose_flip_quats_exec (bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_quaternions_flip (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name = "Flip Quats";
+       ot->name = _("Flip Quats");
        ot->idname= "POSE_OT_quaternions_flip";
-       ot->description= "Flip quaternion values to achieve desired rotations, while maintaining the same orientations";
+       ot->description= _("Flip quaternion values to achieve desired rotations, while maintaining the same orientations");
        
        /* callbacks */
        ot->exec= pose_flip_quats_exec;
index 18544d4d154e56c62311cb3961f9e4d183339e9f..1fc75b65eb004d8d318ae4c182d6327f7fd81b5a 100644 (file)
@@ -1428,7 +1428,7 @@ static int separate_exec(bContext *C, wmOperator *op)
 void CURVE_OT_separate(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Separate";
+       ot->name= _("Separate");
        ot->idname= "CURVE_OT_separate";
        
        /* api callbacks */
@@ -2097,7 +2097,7 @@ void CURVE_OT_spline_weight_set(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       RNA_def_float_factor(ot->srna, "weight", 1.0f, 0.0f, 1.0f, "Weight", "", 0.0f, 1.0f);
+       RNA_def_float_factor(ot->srna, "weight", 1.0f, 0.0f, 1.0f, _("Weight"), "", 0.0f, 1.0f);
 }
 
 /******************* set radius operator ******************/
@@ -2149,7 +2149,7 @@ void CURVE_OT_radius_set(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       RNA_def_float(ot->srna, "radius", 1.0f, 0.0f, FLT_MAX, "Radius", "", 0.0001f, 10.0f);
+       RNA_def_float(ot->srna, "radius", 1.0f, 0.0f, FLT_MAX, _("Radius"), "", 0.0001f, 10.0f);
 }
 
 /********************* smooth operator ********************/
@@ -3575,11 +3575,11 @@ static int set_spline_type_exec(bContext *C, wmOperator *op)
 void CURVE_OT_spline_type_set(wmOperatorType *ot)
 {
        static EnumPropertyItem type_items[]= {
-               {CU_POLY, "POLY", 0, "Poly", ""},
-               {CU_BEZIER, "BEZIER", 0, "Bezier", ""},
-//             {CU_CARDINAL, "CARDINAL", 0, "Cardinal", ""},
-//             {CU_BSPLINE, "B_SPLINE", 0, "B-Spline", ""},
-               {CU_NURBS, "NURBS", 0, "NURBS", ""},
+               {CU_POLY, "POLY", 0, N_("Poly"), ""},
+               {CU_BEZIER, "BEZIER", 0, N_("Bezier"), ""},
+//             {CU_CARDINAL, "CARDINAL", 0, N_("Cardinal"), ""},
+//             {CU_BSPLINE, "B_SPLINE", 0, N_("B-Spline"), ""},
+               {CU_NURBS, "NURBS", 0, N_("NURBS"), ""},
                {0, NULL, 0, NULL, NULL}};
 
        /* identifiers */
@@ -3596,7 +3596,7 @@ void CURVE_OT_spline_type_set(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       ot->prop= RNA_def_enum(ot->srna, "type", type_items, CU_POLY, "Type", "Spline type");
+       ot->prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(type_items), CU_POLY, _("Type"), _("Spline type"));
 }
 
 /***************** set handle type operator *******************/
@@ -3618,16 +3618,16 @@ void CURVE_OT_handle_type_set(wmOperatorType *ot)
 {
        /* keep in sync with graphkeys_handle_type_items */
        static EnumPropertyItem editcurve_handle_type_items[]= {
-               {HD_AUTO, "AUTOMATIC", 0, "Automatic", ""},
-               {HD_VECT, "VECTOR", 0, "Vector", ""},
-               {5, "ALIGNED", 0, "Aligned", ""},
-               {6, "FREE_ALIGN", 0, "Free", ""},
-               {3, "TOGGLE_FREE_ALIGN", 0, "Toggle Free/Align", ""},
+               {HD_AUTO, "AUTOMATIC", 0, N_("Automatic"), ""},
+               {HD_VECT, "VECTOR", 0, N_("Vector"), ""},
+               {5, "ALIGNED", 0, N_("Aligned"), ""},
+               {6, "FREE_ALIGN", 0, N_("Free"), ""},
+               {3, "TOGGLE_FREE_ALIGN", 0, N_("Toggle Free/Align"), ""},
                {0, NULL, 0, NULL, NULL}};
 
        /* identifiers */
-       ot->name= "Set Handle Type";
-       ot->description = "Set type of handles for selected control points";
+       ot->name= _("Set Handle Type");
+       ot->description = _("Set type of handles for selected control points");
        ot->idname= "CURVE_OT_handle_type_set";
        
        /* api callbacks */
@@ -3639,7 +3639,7 @@ void CURVE_OT_handle_type_set(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       ot->prop= RNA_def_enum(ot->srna, "type", editcurve_handle_type_items, 1, "Type", "Spline type");
+       ot->prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(editcurve_handle_type_items), 1, _("Type"), _("Spline type"));
 }
 
 /***************** make segment operator **********************/
@@ -4391,7 +4391,7 @@ static int spin_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
 void CURVE_OT_spin(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Spin";
+       ot->name= _("Spin");
        ot->idname= "CURVE_OT_spin";
        
        /* api callbacks */
@@ -4402,8 +4402,8 @@ void CURVE_OT_spin(wmOperatorType *ot)
        /* flags */
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
-       RNA_def_float_vector_xyz(ot->srna, "center", 3, NULL, -FLT_MAX, FLT_MAX, "Center", "Center in global view space", -FLT_MAX, FLT_MAX);
-       RNA_def_float_vector(ot->srna, "axis", 3, NULL, -1.0f, 1.0f, "Axis", "Axis in global view space", -FLT_MAX, FLT_MAX);
+       RNA_def_float_vector_xyz(ot->srna, "center", 3, NULL, -FLT_MAX, FLT_MAX, _("Center"), _("Center in global view space"), -FLT_MAX, FLT_MAX);
+       RNA_def_float_vector(ot->srna, "axis", 3, NULL, -1.0f, 1.0f, _("Axis"), _("Axis in global view space"), -FLT_MAX, FLT_MAX);
 }
 
 /***************** add vertex operator **********************/
@@ -4714,7 +4714,7 @@ void CURVE_OT_vertex_add(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       RNA_def_float_vector_xyz(ot->srna, "location", 3, NULL, -FLT_MAX, FLT_MAX, "Location", "Location to add new vertex at.", -1e4, 1e4);
+       RNA_def_float_vector_xyz(ot->srna, "location", 3, NULL, -FLT_MAX, FLT_MAX, _("Location"), _("Location to add new vertex at."), -1e4, 1e4);
 }
 
 /***************** extrude operator **********************/
@@ -4775,7 +4775,7 @@ void CURVE_OT_extrude(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* to give to transform */
-       RNA_def_enum(ot->srna, "mode", transform_mode_types, TFM_TRANSLATION, "Mode", "");
+       RNA_def_enum(ot->srna, "mode", transform_mode_types, TFM_TRANSLATION, _("Mode"), "");
 }
 
 /***************** make cyclic operator **********************/
@@ -4886,8 +4886,8 @@ static int toggle_cyclic_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(eve
 void CURVE_OT_cyclic_toggle(wmOperatorType *ot)
 {
        static EnumPropertyItem direction_items[]= {
-               {0, "CYCLIC_U", 0, "Cyclic U", ""},
-               {1, "CYCLIC_V", 0, "Cyclic V", ""},
+               {0, "CYCLIC_U", 0, N_("Cyclic U"), ""},
+               {1, "CYCLIC_V", 0, N_("Cyclic V"), ""},
                {0, NULL, 0, NULL, NULL}};
 
        /* identifiers */
@@ -4904,7 +4904,7 @@ void CURVE_OT_cyclic_toggle(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       RNA_def_enum(ot->srna, "direction", direction_items, 0, "Direction", "Direction to make surface cyclic in.");
+       RNA_def_enum(ot->srna, "direction", direction_items, 0, _("Direction"), _("Direction to make surface cyclic in."));
 }
 
 /***************** select linked operator ******************/
@@ -5648,7 +5648,7 @@ void CURVE_OT_duplicate(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* to give to transform */
-       RNA_def_enum(ot->srna, "mode", transform_mode_types, TFM_TRANSLATION, "Mode", "");
+       RNA_def_enum(ot->srna, "mode", transform_mode_types, TFM_TRANSLATION, _("Mode"), "");
 }
 
 /********************** delete operator *********************/
@@ -5995,9 +5995,9 @@ static int delete_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
 void CURVE_OT_delete(wmOperatorType *ot)
 {
        static EnumPropertyItem type_items[] = {
-               {0, "SELECTED", 0, "Select", ""},
-               {1, "SEGMENT", 0, "Segment", ""},
-               {2, "ALL", 0, "All", ""},
+               {0, "SELECTED", 0, N_("Select"), ""},
+               {1, "SEGMENT", 0, N_("Segment"), ""},
+               {2, "ALL", 0, N_("All"), ""},
                {0, NULL, 0, NULL, NULL}};
 
        /* identifiers */
@@ -6014,7 +6014,7 @@ void CURVE_OT_delete(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       RNA_def_enum(ot->srna, "type", type_items, 0, "Type", "Which elements to delete.");
+       RNA_def_enum(ot->srna, "type", type_items, 0, _("Type"), _("Which elements to delete."));
 }
 
 /********************** shade smooth/flat operator *********************/
index 6b50bcfc93e6520ba30f78f9f3bb99024c6fb5f9..39f905281d400b8103054bfd25fca98b9ad813d8 100644 (file)
@@ -317,8 +317,8 @@ static int insert_lorem_exec(bContext *C, wmOperator *UNUSED(op))
 void FONT_OT_insert_lorem(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Insert Lorem";
-       ot->description= "Insert placeholder text";
+       ot->name= _("Insert Lorem");
+       ot->description= _("Insert placeholder text");
        ot->idname= "FONT_OT_insert_lorem";
        
        /* api callbacks */
@@ -405,8 +405,8 @@ static int paste_file_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event)
 void FONT_OT_file_paste(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Paste File";
-       ot->description= "Paste contents from file";
+       ot->name= _("Paste File");
+       ot->description= _("Paste contents from file");
        ot->idname= "FONT_OT_file_paste";
        
        /* api callbacks */
@@ -454,8 +454,8 @@ static int paste_buffer_exec(bContext *C, wmOperator *UNUSED(op))
 void FONT_OT_buffer_paste(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Paste Buffer";
-       ot->description= "Paste text from OS buffer";
+       ot->name= _("Paste Buffer");
+       ot->description= _("Paste text from OS buffer");
        ot->idname= "FONT_OT_buffer_paste";
        
        /* api callbacks */
@@ -612,10 +612,10 @@ static int kill_selection(Object *obedit, int ins)        /* 1 == new character */
 /******************* set style operator ********************/
 
 static EnumPropertyItem style_items[]= {
-       {CU_CHINFO_BOLD, "BOLD", 0, "Bold", ""},
-       {CU_CHINFO_ITALIC, "ITALIC", 0, "Italic", ""},
-       {CU_CHINFO_UNDERLINE, "UNDERLINE", 0, "Underline", ""},
-       {CU_CHINFO_SMALLCAPS, "SMALL_CAPS", 0, "Small Caps", ""},
+       {CU_CHINFO_BOLD, "BOLD", 0, N_("Bold"), ""},
+       {CU_CHINFO_ITALIC, "ITALIC", 0, N_("Italic"), ""},
+       {CU_CHINFO_UNDERLINE, "UNDERLINE", 0, N_("Underline"), ""},
+       {CU_CHINFO_SMALLCAPS, "SMALL_CAPS", 0, N_("Small Caps"), ""},
        {0, NULL, 0, NULL, NULL}};
 
 static int set_style(bContext *C, const int style, const int clear)
@@ -652,8 +652,8 @@ static int set_style_exec(bContext *C, wmOperator *op)
 void FONT_OT_style_set(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Set Style";
-       ot->description= "Set font style";
+       ot->name= _("Set Style");
+       ot->description= _("Set font style");
        ot->idname= "FONT_OT_style_set";
        
        /* api callbacks */
@@ -664,7 +664,7 @@ void FONT_OT_style_set(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       RNA_def_enum(ot->srna, "style", style_items, CU_CHINFO_BOLD, _("Style"), _("Style to set selection to."));
+       RNA_def_enum(ot->srna, "style", RNA_enum_items_gettexted(style_items), CU_CHINFO_BOLD, _("Style"), _("Style to set selection to."));
        RNA_def_boolean(ot->srna, "clear", 0, _("Clear"), _("Clear style rather than setting it."));
 }
 
@@ -690,8 +690,8 @@ static int toggle_style_exec(bContext *C, wmOperator *op)
 void FONT_OT_style_toggle(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Toggle Style";
-       ot->description= "Toggle font style";
+       ot->name= _("Toggle Style");
+       ot->description= _("Toggle font style");
        ot->idname= "FONT_OT_style_toggle";
        
        /* api callbacks */
@@ -702,7 +702,7 @@ void FONT_OT_style_toggle(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       RNA_def_enum(ot->srna, "style", style_items, CU_CHINFO_BOLD, "Style", "Style to set selection to.");
+       RNA_def_enum(ot->srna, "style", style_items, CU_CHINFO_BOLD, _("Style"), _("Style to set selection to."));
 }
 
 /******************* copy text operator ********************/
@@ -733,8 +733,8 @@ static int copy_text_exec(bContext *C, wmOperator *UNUSED(op))
 void FONT_OT_text_copy(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Copy Text";
-       ot->description= "Copy selected text to clipboard";
+       ot->name= _("Copy Text");
+       ot->description= _("Copy selected text to clipboard");
        ot->idname= "FONT_OT_text_copy";
        
        /* api callbacks */
@@ -764,8 +764,8 @@ static int cut_text_exec(bContext *C, wmOperator *UNUSED(op))
 void FONT_OT_text_cut(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Cut Text";
-       ot->description= "Cut selected text to clipboard";
+       ot->name= _("Cut Text");
+       ot->description= _("Cut selected text to clipboard");
        ot->idname= "FONT_OT_text_cut";
        
        /* api callbacks */
@@ -822,8 +822,8 @@ static int paste_text_exec(bContext *C, wmOperator *op)
 void FONT_OT_text_paste(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Paste Text";
-       ot->description= "Paste text from clipboard";
+       ot->name= _("Paste Text");
+       ot->description= _("Paste text from clipboard");
        ot->idname= "FONT_OT_text_paste";
        
        /* api callbacks */
@@ -837,16 +837,16 @@ void FONT_OT_text_paste(wmOperatorType *ot)
 /************************ move operator ************************/
 
 static EnumPropertyItem move_type_items[]= {
-       {LINE_BEGIN, "LINE_BEGIN", 0, "Line Begin", ""},
-       {LINE_END, "LINE_END", 0, "Line End", ""},
-       {PREV_CHAR, "PREVIOUS_CHARACTER", 0, "Previous Character", ""},
-       {NEXT_CHAR, "NEXT_CHARACTER", 0, "Next Character", ""},
-       {PREV_WORD, "PREVIOUS_WORD", 0, "Previous Word", ""},
-       {NEXT_WORD, "NEXT_WORD", 0, "Next Word", ""},
-       {PREV_LINE, "PREVIOUS_LINE", 0, "Previous Line", ""},
-       {NEXT_LINE, "NEXT_LINE", 0, "Next Line", ""},
-       {PREV_PAGE, "PREVIOUS_PAGE", 0, "Previous Page", ""},
-       {NEXT_PAGE, "NEXT_PAGE", 0, "Next Page", ""},
+       {LINE_BEGIN, "LINE_BEGIN", 0, N_("Line Begin"), ""},
+       {LINE_END, "LINE_END", 0, N_("Line End"), ""},
+       {PREV_CHAR, "PREVIOUS_CHARACTER", 0, N_("Previous Character"), ""},
+       {NEXT_CHAR, "NEXT_CHARACTER", 0, N_("Next Character"), ""},
+       {PREV_WORD, "PREVIOUS_WORD", 0, N_("Previous Word"), ""},
+       {NEXT_WORD, "NEXT_WORD", 0, N_("Next Word"), ""},
+       {PREV_LINE, "PREVIOUS_LINE", 0, N_("Previous Line"), ""},
+       {NEXT_LINE, "NEXT_LINE", 0, N_("Next Line"), ""},
+       {PREV_PAGE, "PREVIOUS_PAGE", 0, N_("Previous Page"), ""},
+       {NEXT_PAGE, "NEXT_PAGE", 0, N_("Next Page"), ""},
        {0, NULL, 0, NULL, NULL}};
 
 static int move_cursor(bContext *C, int type, int select)
@@ -958,8 +958,8 @@ static int move_exec(bContext *C, wmOperator *op)
 void FONT_OT_move(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Move Cursor";
-       ot->description= "Move cursor to position type";
+       ot->name= _("Move Cursor");
+       ot->description= _("Move cursor to position type");
        ot->idname= "FONT_OT_move";
        
        /* api callbacks */
@@ -970,7 +970,7 @@ void FONT_OT_move(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       RNA_def_enum(ot->srna, "type", move_type_items, LINE_BEGIN, "Type", "Where to move cursor to.");
+       RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(move_type_items), LINE_BEGIN, _("Type"), _("Where to move cursor to."));
 }
 
 /******************* move select operator ********************/
@@ -985,8 +985,8 @@ static int move_select_exec(bContext *C, wmOperator *op)
 void FONT_OT_move_select(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Move Select";
-       ot->description= "Make selection from current cursor position to new cursor position type";
+       ot->name= _("Move Select");
+       ot->description= _("Make selection from current cursor position to new cursor position type");
        ot->idname= "FONT_OT_move_select";
        
        /* api callbacks */
@@ -997,7 +997,7 @@ void FONT_OT_move_select(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       RNA_def_enum(ot->srna, "type", move_type_items, LINE_BEGIN, "Type", "Where to move cursor to, to make a selection.");
+       RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(move_type_items), LINE_BEGIN, _("Type"), _("Where to move cursor to, to make a selection."));
 }
 
 /************************* change spacing **********************/
@@ -1027,8 +1027,8 @@ static int change_spacing_exec(bContext *C, wmOperator *op)
 void FONT_OT_change_spacing(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Change Spacing";
-       ot->description= "Change font spacing";
+       ot->name= _("Change Spacing");
+       ot->description= _("Change font spacing");
        ot->idname= "FONT_OT_change_spacing";
        
        /* api callbacks */
@@ -1072,8 +1072,8 @@ static int change_character_exec(bContext *C, wmOperator *op)
 void FONT_OT_change_character(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Change Character";
-       ot->description= "Change font character code";
+       ot->name= _("Change Character");
+       ot->description= _("Change font character code");
        ot->idname= "FONT_OT_change_character";
        
        /* api callbacks */
@@ -1115,8 +1115,8 @@ static int line_break_exec(bContext *C, wmOperator *op)
 void FONT_OT_line_break(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Line Break";
-       ot->description= "Insert line break at cursor position";
+       ot->name= _("Line Break");
+       ot->description= _("Insert line break at cursor position");
        ot->idname= "FONT_OT_line_break";
        
        /* api callbacks */
@@ -1133,12 +1133,12 @@ void FONT_OT_line_break(wmOperatorType *ot)
 /******************* delete operator **********************/
 
 static EnumPropertyItem delete_type_items[]= {
-       {DEL_ALL, "ALL", 0, "All", ""},
-       {DEL_NEXT_CHAR, "NEXT_CHARACTER", 0, "Next Character", ""},
-       {DEL_PREV_CHAR, "PREVIOUS_CHARACTER", 0, "Previous Character", ""},
-       {DEL_SELECTION, "SELECTION", 0, "Selection", ""},
-       {DEL_NEXT_SEL, "NEXT_OR_SELECTION", 0, "Next or Selection", ""},
-       {DEL_PREV_SEL, "PREVIOUS_OR_SELECTION", 0, "Previous or Selection", ""},
+       {DEL_ALL, "ALL", 0, N_("All"), ""},
+       {DEL_NEXT_CHAR, "NEXT_CHARACTER", 0, N_("Next Character"), ""},
+       {DEL_PREV_CHAR, "PREVIOUS_CHARACTER", 0, N_("Previous Character"), ""},
+       {DEL_SELECTION, "SELECTION", 0, N_("Selection"), ""},
+       {DEL_NEXT_SEL, "NEXT_OR_SELECTION", 0, N_("Next or Selection"), ""},
+       {DEL_PREV_SEL, "PREVIOUS_OR_SELECTION", 0, N_("Previous or Selection"), ""},
        {0, NULL, 0, NULL, NULL}};
 
 static int delete_exec(bContext *C, wmOperator *op)
@@ -1205,8 +1205,8 @@ static int delete_exec(bContext *C, wmOperator *op)
 void FONT_OT_delete(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Delete";
-       ot->description= "Delete text by cursor position";
+       ot->name= _("Delete");
+       ot->description= _("Delete text by cursor position");
        ot->idname= "FONT_OT_delete";
        
        /* api callbacks */
@@ -1217,7 +1217,7 @@ void FONT_OT_delete(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       RNA_def_enum(ot->srna, "type", delete_type_items, DEL_ALL, "Type", "Which part of the text to delete.");
+       RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(delete_type_items), DEL_ALL, _("Type"), _("Which part of the text to delete."));
 }
 
 /*********************** insert text operator *************************/
@@ -1354,8 +1354,8 @@ static int insert_text_invoke(bContext *C, wmOperator *op, wmEvent *evt)
 void FONT_OT_text_insert(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Insert Text";
-       ot->description= "Insert text at cursor position";
+       ot->name= _("Insert Text");
+       ot->description= _("Insert text at cursor position");
        ot->idname= "FONT_OT_text_insert";
        
        /* api callbacks */
@@ -1393,8 +1393,8 @@ static int textbox_add_exec(bContext *C, wmOperator *UNUSED(op))
 void FONT_OT_textbox_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Textbox";
-       ot->description= "Add a new text box";
+       ot->name= _("Add Textbox");
+       ot->description= _("Add a new text box");
        ot->idname= "FONT_OT_textbox_add";
        
        /* api callbacks */
@@ -1436,8 +1436,8 @@ static int textbox_remove_exec(bContext *C, wmOperator *op)
 void FONT_OT_textbox_remove(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Remove Textbox";
-       ot->description= "Remove the textbox";
+       ot->name= _("Remove Textbox");
+       ot->description= _("Remove the textbox");
        ot->idname= "FONT_OT_textbox_remove";
        
        /* api callbacks */
@@ -1527,8 +1527,8 @@ void free_editText(Object *obedit)
 /********************** set case operator *********************/
 
 static EnumPropertyItem case_items[]= {
-       {CASE_LOWER, "LOWER", 0, "Lower", ""},
-       {CASE_UPPER, "UPPER", 0, "Upper", ""},
+       {CASE_LOWER, "LOWER", 0, N_("Lower"), ""},
+       {CASE_UPPER, "UPPER", 0, N_("Upper"), ""},
        {0, NULL, 0, NULL, NULL}};
 
 static int set_case(bContext *C, int ccase)
@@ -1574,8 +1574,8 @@ static int set_case_exec(bContext *C, wmOperator *op)
 void FONT_OT_case_set(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Set Case";
-       ot->description= "Set font case";
+       ot->name= _("Set Case");
+       ot->description= _("Set font case");
        ot->idname= "FONT_OT_case_set";
        
        /* api callbacks */
@@ -1586,7 +1586,7 @@ void FONT_OT_case_set(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       RNA_def_enum(ot->srna, "case", case_items, CASE_LOWER, "Case", "Lower or upper case.");
+       RNA_def_enum(ot->srna, "case", RNA_enum_items_gettexted(case_items), CASE_LOWER, _("Case"), _("Lower or upper case."));
 }
 
 /********************** toggle case operator *********************/
@@ -1617,8 +1617,8 @@ static int toggle_case_exec(bContext *C, wmOperator *UNUSED(op))
 void FONT_OT_case_toggle(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Toggle Case";
-       ot->description= "Toggle font case";
+       ot->name= _("Toggle Case");
+       ot->description= _("Toggle font case");
        ot->idname= "FONT_OT_case_toggle";
        
        /* api callbacks */
@@ -1717,7 +1717,7 @@ static int open_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
 void FONT_OT_open(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Open Font";
+       ot->name= _("Open Font");
        ot->idname= "FONT_OT_open";
        
        /* api callbacks */
@@ -1760,9 +1760,9 @@ static int font_unlink_exec(bContext *C, wmOperator *op)
 void FONT_OT_unlink(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Unlink";
+       ot->name= _("Unlink");
        ot->idname= "FONT_OT_unlink";
-       ot->description= "Unlink active font data block";
+       ot->description= _("Unlink active font data block");
        
        /* api callbacks */
        ot->exec= font_unlink_exec;
index 2acc97417de1f0aa7fca65d30d445aaa0c094f8f..d5a128b5c5b7477938011a623245d41b015c894b 100644 (file)
@@ -1767,7 +1767,7 @@ static EnumPropertyItem prop_gpencil_drawmodes[] = {
 void GPENCIL_OT_draw (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Grease Pencil Draw";
+       ot->name= _("Grease Pencil Draw");
        ot->idname= "GPENCIL_OT_draw";
        ot->description= _("Make annotations on the active data");
        
@@ -1782,7 +1782,7 @@ void GPENCIL_OT_draw (wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING;
        
        /* settings for drawing */
-       RNA_def_enum(ot->srna, "mode", RNA_enum_items_gettexted(prop_gpencil_drawmodes), 0, "Mode", "Way to intepret mouse movements.");
+       RNA_def_enum(ot->srna, "mode", RNA_enum_items_gettexted(prop_gpencil_drawmodes), 0, _("Mode"), _("Way to intepret mouse movements."));
        
        RNA_def_collection_runtime(ot->srna, "stroke", &RNA_OperatorStrokeElement, "Stroke", "");
 }
index 979732b604436bac74bfa8b48dd32450e906c3e1..5cba0b4fdfbb5940e39856f9684ba4b0c66f05bd 100644 (file)
@@ -294,8 +294,8 @@ static int view_pan_cancel(bContext *UNUSED(C), wmOperator *op)
 static void VIEW2D_OT_pan(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Pan View";
-       ot->description= "Pan the view";
+       ot->name= _("Pan View");
+       ot->description= _("Pan the view");
        ot->idname= "VIEW2D_OT_pan";
        
        /* api callbacks */
@@ -344,8 +344,8 @@ static int view_scrollright_exec(bContext *C, wmOperator *op)
 static void VIEW2D_OT_scroll_right(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Scroll Right";
-       ot->description= "Scroll the view right";
+       ot->name= _("Scroll Right");
+       ot->description= _("Scroll the view right");
        ot->idname= "VIEW2D_OT_scroll_right";
        
        /* api callbacks */
@@ -388,8 +388,8 @@ static int view_scrollleft_exec(bContext *C, wmOperator *op)
 static void VIEW2D_OT_scroll_left(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Scroll Left";
-       ot->description= "Scroll the view left";
+       ot->name= _("Scroll Left");
+       ot->description= _("Scroll the view left");
        ot->idname= "VIEW2D_OT_scroll_left";
        
        /* api callbacks */
@@ -714,8 +714,8 @@ static int view_zoomin_invoke(bContext *C, wmOperator *op, wmEvent *event)
 static void VIEW2D_OT_zoom_in(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Zoom In";
-       ot->description= "Zoom in the view";
+       ot->name= _("Zoom In");
+       ot->description= _("Zoom in the view");
        ot->idname= "VIEW2D_OT_zoom_in";
        
        /* api callbacks */
@@ -724,8 +724,8 @@ static void VIEW2D_OT_zoom_in(wmOperatorType *ot)
        ot->poll= view_zoom_poll;
        
        /* rna - must keep these in sync with the other operators */
-       RNA_def_float(ot->srna, "zoomfacx", 0, -FLT_MAX, FLT_MAX, "Zoom Factor X", "", -FLT_MAX, FLT_MAX);
-       RNA_def_float(ot->srna, "zoomfacy", 0, -FLT_MAX, FLT_MAX, "Zoom Factor Y", "", -FLT_MAX, FLT_MAX);
+       RNA_def_float(ot->srna, "zoomfacx", 0, -FLT_MAX, FLT_MAX, _("Zoom Factor X"), "", -FLT_MAX, FLT_MAX);
+       RNA_def_float(ot->srna, "zoomfacy", 0, -FLT_MAX, FLT_MAX, _("Zoom Factor Y"), "", -FLT_MAX, FLT_MAX);
 }
        
 /* this operator only needs this single callback, where it callsthe view_zoom_*() methods */
@@ -771,8 +771,8 @@ static int view_zoomout_invoke(bContext *C, wmOperator *op, wmEvent *event)
 static void VIEW2D_OT_zoom_out(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Zoom Out";
-       ot->description= "Zoom out the view";
+       ot->name= _("Zoom Out");
+       ot->description= _("Zoom out the view");
        ot->idname= "VIEW2D_OT_zoom_out";
        
        /* api callbacks */
@@ -781,8 +781,8 @@ static void VIEW2D_OT_zoom_out(wmOperatorType *ot)
        ot->poll= view_zoom_poll;
        
        /* rna - must keep these in sync with the other operators */
-       RNA_def_float(ot->srna, "zoomfacx", 0, -FLT_MAX, FLT_MAX, "Zoom Factor X", "", -FLT_MAX, FLT_MAX);
-       RNA_def_float(ot->srna, "zoomfacy", 0, -FLT_MAX, FLT_MAX, "Zoom Factor Y", "", -FLT_MAX, FLT_MAX);
+       RNA_def_float(ot->srna, "zoomfacx", 0, -FLT_MAX, FLT_MAX, _("Zoom Factor X"), "", -FLT_MAX, FLT_MAX);
+       RNA_def_float(ot->srna, "zoomfacy", 0, -FLT_MAX, FLT_MAX, _("Zoom Factor Y"), "", -FLT_MAX, FLT_MAX);
 }
 
 /* ********************************************************* */
@@ -1066,8 +1066,8 @@ static int view_zoomdrag_modal(bContext *C, wmOperator *op, wmEvent *event)
 static void VIEW2D_OT_zoom(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Zoom 2D View";
-       ot->description= "Zoom in/out the view";
+       ot->name= _("Zoom 2D View");
+       ot->description= _("Zoom in/out the view");
        ot->idname= "VIEW2D_OT_zoom";
        
        /* api callbacks */
@@ -1082,8 +1082,8 @@ static void VIEW2D_OT_zoom(wmOperatorType *ot)
        // ot->flag= OPTYPE_BLOCKING;
        
        /* rna - must keep these in sync with the other operators */
-       RNA_def_float(ot->srna, "deltax", 0, -FLT_MAX, FLT_MAX, "Delta X", "", -FLT_MAX, FLT_MAX);
-       RNA_def_float(ot->srna, "deltay", 0, -FLT_MAX, FLT_MAX, "Delta Y", "", -FLT_MAX, FLT_MAX);
+       RNA_def_float(ot->srna, "deltax", 0, -FLT_MAX, FLT_MAX, _("Delta X"), "", -FLT_MAX, FLT_MAX);
+       RNA_def_float(ot->srna, "deltay", 0, -FLT_MAX, FLT_MAX, _("Delta Y"), "", -FLT_MAX, FLT_MAX);
 }
 
 /* ********************************************************* */
@@ -1167,8 +1167,8 @@ static int view_borderzoom_exec(bContext *C, wmOperator *op)
 static void VIEW2D_OT_zoom_border(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Zoom to Border";
-       ot->description= "Zoom in the view to the nearest item contained in the border";
+       ot->name= _("Zoom to Border");
+       ot->description= _("Zoom in the view to the nearest item contained in the border");
        ot->idname= "VIEW2D_OT_zoom_border";
        
        /* api callbacks */
@@ -1569,8 +1569,8 @@ static int scroller_activate_invoke(bContext *C, wmOperator *op, wmEvent *event)
 static void VIEW2D_OT_scroller_activate(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Scroller Activate";
-       ot->description= "Scroll view by mouse click and drag";
+       ot->name= _("Scroller Activate");
+       ot->description= _("Scroll view by mouse click and drag");
        ot->idname= "VIEW2D_OT_scroller_activate";
 
        /* flags */
@@ -1637,8 +1637,8 @@ static int reset_exec(bContext *C, wmOperator *UNUSED(op))
 static void VIEW2D_OT_reset(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Reset View";
-       ot->description= "Reset the view";
+       ot->name= _("Reset View");
+       ot->description= _("Reset the view");
        ot->idname= "VIEW2D_OT_reset";
        
        /* api callbacks */
index ec08bfccda3fcb0335191d8024dd46edad3889d1..9d99849c4d21582fabdc1aa4ef8c1dc1c9eb1d54 100644 (file)
@@ -50,6 +50,8 @@
 #include "BLI_rand.h"
 #include "BLI_utildefines.h"
 
+#include "BLF_api.h"
+
 #include "BKE_DerivedMesh.h"
 #include "BKE_context.h"
 #include "BKE_depsgraph.h"
@@ -1312,9 +1314,9 @@ void remake_editMesh(Scene *scene, Object *ob)
 /* *************** Operator: separate parts *************/
 
 static EnumPropertyItem prop_separate_types[] = {
-       {0, "SELECTED", 0, "Selection", ""},
-       {1, "MATERIAL", 0, "By Material", ""},
-       {2, "LOOSE", 0, "By loose parts", ""},
+       {0, "SELECTED", 0, N_("Selection"), ""},
+       {1, "MATERIAL", 0, N_("By Material"), ""},
+       {2, "LOOSE", 0, N_("By loose parts"), ""},
        {0, NULL, 0, NULL, NULL}
 };
 
@@ -1541,8 +1543,8 @@ static int mesh_separate_exec(bContext *C, wmOperator *op)
 void MESH_OT_separate(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Separate";
-       ot->description= "Separate selected geometry into a new mesh";
+       ot->name= _("Separate");
+       ot->description= _("Separate selected geometry into a new mesh");
        ot->idname= "MESH_OT_separate";
        
        /* api callbacks */
@@ -1553,7 +1555,7 @@ void MESH_OT_separate(wmOperatorType *ot)
        /* flags */
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
-       ot->prop= RNA_def_enum(ot->srna, "type", prop_separate_types, 0, "Type", "");
+       ot->prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(prop_separate_types), 0, _("Type"), "");
 }
 
 
index 8bd9c6fad79d0ab3890369d49c7f9e35ef5fc77c..d81a7cd823390dce9adb32f6c500db84b76dd3c7 100644 (file)
@@ -407,8 +407,8 @@ static int make_fgon_exec(bContext *C, wmOperator *op)
 void MESH_OT_fgon_make(struct wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Make F-gon";
-       ot->description= "Make fgon from selected faces";
+       ot->name= _("Make F-gon");
+       ot->description= _("Make fgon from selected faces");
        ot->idname= "MESH_OT_fgon_make";
        
        /* api callbacks */
@@ -439,8 +439,8 @@ static int clear_fgon_exec(bContext *C, wmOperator *op)
 void MESH_OT_fgon_clear(struct wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Clear F-gon";
-       ot->description= "Clear fgon from selected face";
+       ot->name= _("Clear F-gon");
+       ot->description= _("Clear fgon from selected face");
        ot->idname= "MESH_OT_fgon_clear";
        
        /* api callbacks */
@@ -851,8 +851,8 @@ static int addedgeface_mesh_exec(bContext *C, wmOperator *op)
 void MESH_OT_edge_face_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Make Edge/Face";
-       ot->description= "Add an edge or face to selected";
+       ot->name= _("Make Edge/Face");
+       ot->description= _("Add an edge or face to selected");
        ot->idname= "MESH_OT_edge_face_add";
        
        /* api callbacks */
@@ -1407,8 +1407,8 @@ static int add_primitive_plane_exec(bContext *C, wmOperator *op)
 void MESH_OT_primitive_plane_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Plane";
-       ot->description= "Construct a filled planar mesh with 4 vertices";
+       ot->name= _("Add Plane");
+       ot->description= _("Construct a filled planar mesh with 4 vertices");
        ot->idname= "MESH_OT_primitive_plane_add";
        
        /* api callbacks */
@@ -1440,8 +1440,8 @@ static int add_primitive_cube_exec(bContext *C, wmOperator *op)
 void MESH_OT_primitive_cube_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Cube";
-       ot->description= "Construct a cube mesh";
+       ot->name= _("Add Cube");
+       ot->description= _("Construct a cube mesh");
        ot->idname= "MESH_OT_primitive_cube_add";
        
        /* api callbacks */
@@ -1475,8 +1475,8 @@ static int add_primitive_circle_exec(bContext *C, wmOperator *op)
 void MESH_OT_primitive_circle_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Circle";
-       ot->description= "Construct a circle mesh";
+       ot->name= _("Add Circle");
+       ot->description= _("Construct a circle mesh");
        ot->idname= "MESH_OT_primitive_circle_add";
        
        /* api callbacks */
@@ -1516,8 +1516,8 @@ static int add_primitive_cylinder_exec(bContext *C, wmOperator *op)
 void MESH_OT_primitive_cylinder_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Cylinder";
-       ot->description= "Construct a cylinder mesh";
+       ot->name= _("Add Cylinder");
+       ot->description= _("Construct a cylinder mesh");
        ot->idname= "MESH_OT_primitive_cylinder_add";
        
        /* api callbacks */
@@ -1557,8 +1557,8 @@ static int add_primitive_cone_exec(bContext *C, wmOperator *op)
 void MESH_OT_primitive_cone_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Cone";
-       ot->description= "Construct a conic mesh (ends filled)";
+       ot->name= _("Add Cone");
+       ot->description= _("Construct a conic mesh (ends filled)");
        ot->idname= "MESH_OT_primitive_cone_add";
        
        /* api callbacks */
@@ -1598,8 +1598,8 @@ static int add_primitive_grid_exec(bContext *C, wmOperator *op)
 void MESH_OT_primitive_grid_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Grid";
-       ot->description= "Construct a grid mesh";
+       ot->name= _("Add Grid");
+       ot->description= _("Construct a grid mesh");
        ot->idname= "MESH_OT_primitive_grid_add";
        
        /* api callbacks */
@@ -1611,9 +1611,9 @@ void MESH_OT_primitive_grid_add(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
-       RNA_def_int(ot->srna, "x_subdivisions", 10, INT_MIN, INT_MAX, "X Subdivisions", "", 3, 1000);
-       RNA_def_int(ot->srna, "y_subdivisions", 10, INT_MIN, INT_MAX, "Y Subdivisions", "", 3, 1000);
-       RNA_def_float(ot->srna, "size", 1.0f, 0.0, FLT_MAX, "Size", "", 0.001, FLT_MAX);
+       RNA_def_int(ot->srna, "x_subdivisions", 10, INT_MIN, INT_MAX, _("X Subdivisions"), "", 3, 1000);
+       RNA_def_int(ot->srna, "y_subdivisions", 10, INT_MIN, INT_MAX, _("Y Subdivisions"), "", 3, 1000);
+       RNA_def_float(ot->srna, "size", 1.0f, 0.0, FLT_MAX, _("Size"), "", 0.001, FLT_MAX);
 
        ED_object_add_generic_props(ot, TRUE);
 }
@@ -1636,8 +1636,8 @@ static int add_primitive_monkey_exec(bContext *C, wmOperator *op)
 void MESH_OT_primitive_monkey_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Monkey";
-       ot->description= "Construct a Suzanne mesh";
+       ot->name= _("Add Monkey");
+       ot->description= _("Construct a Suzanne mesh");
        ot->idname= "MESH_OT_primitive_monkey_add";
        
        /* api callbacks */
@@ -1671,8 +1671,8 @@ static int add_primitive_uvsphere_exec(bContext *C, wmOperator *op)
 void MESH_OT_primitive_uv_sphere_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add UV Sphere";
-       ot->description= "Construct a UV sphere mesh";
+       ot->name= _("Add UV Sphere");
+       ot->description= _("Construct a UV sphere mesh");
        ot->idname= "MESH_OT_primitive_uv_sphere_add";
        
        /* api callbacks */
@@ -1684,9 +1684,9 @@ void MESH_OT_primitive_uv_sphere_add(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
-       RNA_def_int(ot->srna, "segments", 32, INT_MIN, INT_MAX, "Segments", "", 3, 500);
-       RNA_def_int(ot->srna, "ring_count", 16, INT_MIN, INT_MAX, "Rings", "", 3, 500);
-       RNA_def_float(ot->srna, "size", 1.0f, 0.0, FLT_MAX, "Size", "", 0.001, 100.00);
+       RNA_def_int(ot->srna, "segments", 32, INT_MIN, INT_MAX, _("Segments"), "", 3, 500);
+       RNA_def_int(ot->srna, "ring_count", 16, INT_MIN, INT_MAX, _("Rings"), "", 3, 500);
+       RNA_def_float(ot->srna, "size", 1.0f, 0.0, FLT_MAX, _("Size"), "", 0.001, 100.00);
 
        ED_object_add_generic_props(ot, TRUE);
 }
@@ -1710,8 +1710,8 @@ static int add_primitive_icosphere_exec(bContext *C, wmOperator *op)
 void MESH_OT_primitive_ico_sphere_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Ico Sphere";
-       ot->description= "Construct an Icosphere mesh";
+       ot->name= _("Add Ico Sphere");
+       ot->description= _("Construct an Icosphere mesh");
        ot->idname= "MESH_OT_primitive_ico_sphere_add";
        
        /* api callbacks */
@@ -1723,8 +1723,8 @@ void MESH_OT_primitive_ico_sphere_add(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
-       RNA_def_int(ot->srna, "subdivisions", 2, 0, INT_MAX, "Subdivisions", "", 0, 8);
-       RNA_def_float(ot->srna, "size", 1.0f, 0.0f, FLT_MAX, "Size", "", 0.001f, 100.00);
+       RNA_def_int(ot->srna, "subdivisions", 2, 0, INT_MAX, _("Subdivisions"), "", 0, 8);
+       RNA_def_float(ot->srna, "size", 1.0f, 0.0f, FLT_MAX, _("Size"), "", 0.001f, 100.00);
 
        ED_object_add_generic_props(ot, TRUE);
 }
@@ -1758,8 +1758,8 @@ static int mesh_duplicate_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(ev
 void MESH_OT_duplicate(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Duplicate Mesh";
-       ot->description= "Duplicate selected vertices, edges or faces";
+       ot->name= _("Duplicate Mesh");
+       ot->description= _("Duplicate selected vertices, edges or faces");
        ot->idname= "MESH_OT_duplicate";
        
        /* api callbacks */
@@ -1769,6 +1769,6 @@ void MESH_OT_duplicate(wmOperatorType *ot)
        ot->poll= ED_operator_editmesh;
        
        /* to give to transform */
-       RNA_def_enum(ot->srna, "mode", transform_mode_types, TFM_TRANSLATION, "Mode", "");
+       RNA_def_enum(ot->srna, "mode", transform_mode_types, TFM_TRANSLATION, _("Mode"), "");
 }
 
index 326a293fb957210dde4fca09600147dfca9ef459..6852e2a818c8fca31e94c5d33a18f2b9e0b0d78d 100644 (file)
@@ -449,9 +449,9 @@ typedef struct CutCurve {
 #define KNIFE_MULTICUT 3
 
 static EnumPropertyItem knife_items[]= {
-       {KNIFE_EXACT, "EXACT", 0, "Exact", ""},
-       {KNIFE_MIDPOINT, "MIDPOINTS", 0, "Midpoints", ""},
-       {KNIFE_MULTICUT, "MULTICUT", 0, "Multicut", ""},
+       {KNIFE_EXACT, "EXACT", 0, N_("Exact"), ""},
+       {KNIFE_MIDPOINT, "MIDPOINTS", 0, N_("Midpoints"), ""},
+       {KNIFE_MULTICUT, "MULTICUT", 0, N_("Multicut"), ""},
        {0, NULL, 0, NULL, NULL}
 };
 
@@ -711,8 +711,8 @@ void MESH_OT_knife_cut(wmOperatorType *ot)
 {
        PropertyRNA *prop;
        
-       ot->name= "Knife Cut";
-       ot->description= "Cut selected edges and faces into parts";
+       ot->name= _("Knife Cut");
+       ot->description= _("Cut selected edges and faces into parts");
        ot->idname= "MESH_OT_knife_cut";
        
        ot->invoke= WM_gesture_lines_invoke;
@@ -725,14 +725,14 @@ void MESH_OT_knife_cut(wmOperatorType *ot)
        /* flags */
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
-       RNA_def_enum(ot->srna, "type", knife_items, KNIFE_EXACT, "Type", "");
+       RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(knife_items), KNIFE_EXACT, _("Type"), "");
        prop= RNA_def_property(ot->srna, "path", PROP_COLLECTION, PROP_NONE);
        RNA_def_property_struct_runtime(prop, &RNA_OperatorMousePath);
        RNA_def_int(ot->srna, "num_cuts", 1, 1, MAX_CUTS, _("Number of Cuts"), _("Only for Multi-Cut"), 1, MAX_CUTS);
        // doesn't work atm.. RNA_def_enum(ot->srna, "corner_cut_pattern", corner_type_items, SUBDIV_CORNER_INNERVERT, "Corner Cut Pattern", "Topology pattern to use to fill a face after cutting across its corner");
        
        /* internal */
-       RNA_def_int(ot->srna, "cursor", BC_KNIFECURSOR, 0, INT_MAX, "Cursor", "", 0, INT_MAX);
+       RNA_def_int(ot->srna, "cursor", BC_KNIFECURSOR, 0, INT_MAX, _("Cursor"), "", 0, INT_MAX);
 }
 
 /* ******************************************************* */
index d0423806f60754eabad3208fb5135b54e886097a..f941e5243d5362d7ea406a730fd7289b409d8a9c 100644 (file)
@@ -714,22 +714,22 @@ static int unified_findnearest(ViewContext *vc, EditVert **eve, EditEdge **eed,
 #define SIMFACE_TOT                    207
 
 static EnumPropertyItem prop_similar_types[] = {
-       {SIMVERT_NORMAL, "NORMAL", 0, "Normal", ""},
-       {SIMVERT_FACE, "FACE", 0, "Amount of Vertices in Face", ""},
-       {SIMVERT_VGROUP, "VGROUP", 0, "Vertex Groups", ""},
-       {SIMEDGE_LENGTH, "LENGTH", 0, "Length", ""},
-       {SIMEDGE_DIR, "DIR", 0, "Direction", ""},
-       {SIMEDGE_FACE, "FACE", 0, "Amount of Vertices in Face", ""},
-       {SIMEDGE_FACE_ANGLE, "FACE_ANGLE", 0, "Face Angles", ""},
-       {SIMEDGE_CREASE, "CREASE", 0, "Crease", ""},
-       {SIMEDGE_SEAM, "SEAM", 0, "Seam", ""},
-       {SIMEDGE_SHARP, "SHARP", 0, "Sharpness", ""},
-       {SIMFACE_MATERIAL, "MATERIAL", 0, "Material", ""},
-       {SIMFACE_IMAGE, "IMAGE", 0, "Image", ""},
-       {SIMFACE_AREA, "AREA", 0, "Area", ""},
-       {SIMFACE_PERIMETER, "PERIMETER", 0, "Perimeter", ""},
-       {SIMFACE_NORMAL, "NORMAL", 0, "Normal", ""},
-       {SIMFACE_COPLANAR, "COPLANAR", 0, "Co-planar", ""},
+       {SIMVERT_NORMAL, "NORMAL", 0, N_("Normal"), ""},
+       {SIMVERT_FACE, "FACE", 0, N_("Amount of Vertices in Face"), ""},
+       {SIMVERT_VGROUP, "VGROUP", 0, N_("Vertex Groups"), ""},
+       {SIMEDGE_LENGTH, "LENGTH", 0, N_("Length"), ""},
+       {SIMEDGE_DIR, "DIR", 0, N_("Direction"), ""},
+       {SIMEDGE_FACE, "FACE", 0, N_("Amount of Vertices in Face"), ""},
+       {SIMEDGE_FACE_ANGLE, "FACE_ANGLE", 0, N_("Face Angles"), ""},
+       {SIMEDGE_CREASE, "CREASE", 0, N_("Crease"), ""},
+       {SIMEDGE_SEAM, "SEAM", 0, N_("Seam"), ""},
+       {SIMEDGE_SHARP, "SHARP", 0, N_("Sharpness"), ""},
+       {SIMFACE_MATERIAL, "MATERIAL", 0, N_("Material"), ""},
+       {SIMFACE_IMAGE, "IMAGE", 0, N_("Image"), ""},
+       {SIMFACE_AREA, "AREA", 0, N_("Area"), ""},
+       {SIMFACE_PERIMETER, "PERIMETER", 0, N_("Perimeter"), ""},
+       {SIMFACE_NORMAL, "NORMAL", 0, N_("Normal"), ""},
+       {SIMFACE_COPLANAR, "COPLANAR", 0, N_("Co-planar"), ""},
        {0, NULL, 0, NULL, NULL}
 };
 
@@ -1290,8 +1290,8 @@ void MESH_OT_select_similar(wmOperatorType *ot)
        PropertyRNA *prop;
 
        /* identifiers */
-       ot->name= "Select Similar";
-       ot->description= "Select similar vertices, edges or faces by property types";
+       ot->name= _("Select Similar");
+       ot->description= _("Select similar vertices, edges or faces by property types");
        ot->idname= "MESH_OT_select_similar";
        
        /* api callbacks */
@@ -1303,10 +1303,10 @@ void MESH_OT_select_similar(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
-       prop= RNA_def_enum(ot->srna, "type", prop_similar_types, SIMVERT_NORMAL, "Type", "");
+       prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(prop_similar_types), SIMVERT_NORMAL, _("Type"), "");
        RNA_def_enum_funcs(prop, select_similar_type_itemf);
        ot->prop= prop;
-       RNA_def_float(ot->srna, "threshold", 0.01f, 0.0f, FLT_MAX, "Threshold", "", 0.0f, 100.f);
+       RNA_def_float(ot->srna, "threshold", 0.01f, 0.0f, FLT_MAX, _("Threshold"), "", 0.0f, 100.f);
 }
 
 /* ******************************************* */
@@ -2042,8 +2042,8 @@ static int loop_multiselect(bContext *C, wmOperator *op)
 void MESH_OT_loop_multi_select(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Multi Select Loops";
-       ot->description= "Select a loop of connected edges by connection type";
+       ot->name= _("Multi Select Loops");
+       ot->description= _("Select a loop of connected edges by connection type");
        ot->idname= "MESH_OT_loop_multi_select";
        
        /* api callbacks */
@@ -2132,8 +2132,8 @@ static int mesh_select_loop_invoke(bContext *C, wmOperator *op, wmEvent *event)
 void MESH_OT_loop_select(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Loop Select";
-       ot->description= "Select a loop of connected edges";
+       ot->name= _("Loop Select");
+       ot->description= _("Select a loop of connected edges");
        ot->idname= "MESH_OT_loop_select";
        
        /* api callbacks */
@@ -2263,8 +2263,8 @@ static int mesh_shortest_path_select_poll(bContext *C)
 void MESH_OT_select_shortest_path(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Shortest Path Select";
-       ot->description= "Select shortest path between two selections";
+       ot->name= _("Shortest Path Select");
+       ot->description= _("Select shortest path between two selections");
        ot->idname= "MESH_OT_select_shortest_path";
        
        /* api callbacks */
@@ -2571,8 +2571,8 @@ static int select_linked_pick_invoke(bContext *C, wmOperator *op, wmEvent *event
 void MESH_OT_select_linked_pick(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Linked";
-       ot->description= "(un)select all vertices linked to the active mesh";
+       ot->name= _("Select Linked");
+       ot->description= _("(un)select all vertices linked to the active mesh");
        ot->idname= "MESH_OT_select_linked_pick";
        
        /* api callbacks */
@@ -2660,8 +2660,8 @@ static int select_linked_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(eve
 void MESH_OT_select_linked(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Linked All";
-       ot->description= "Select all vertices linked to the active mesh";
+       ot->name= _("Select Linked All");
+       ot->description= _("Select all vertices linked to the active mesh");
        ot->idname= "MESH_OT_select_linked";
        
        /* api callbacks */
@@ -2864,8 +2864,8 @@ static int reveal_mesh_exec(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_reveal(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Reveal Hidden";
-       ot->description= "Reveal all hidden vertices, edges and faces";
+       ot->name= _("Reveal Hidden");
+       ot->description= _("Reveal all hidden vertices, edges and faces");
        ot->idname= "MESH_OT_reveal";
        
        /* api callbacks */
@@ -2915,14 +2915,14 @@ static int select_by_number_vertices_exec(bContext *C, wmOperator *op)
 void MESH_OT_select_by_number_vertices(wmOperatorType *ot)
 {
        static const EnumPropertyItem type_items[]= {
-               {3, "TRIANGLES", 0, "Triangles", NULL},
-               {4, "QUADS", 0, "Quads", NULL},
-               {5, "OTHER", 0, "Other", NULL},
+               {3, "TRIANGLES", 0, N_("Triangles"), NULL},
+               {4, "QUADS", 0, N_("Quads"), NULL},
+               {5, "OTHER", 0, N_("Other"), NULL},
                {0, NULL, 0, NULL, NULL}};
 
        /* identifiers */
-       ot->name= "Select by Number of Vertices";
-       ot->description= "Select vertices or faces by vertex count";
+       ot->name= _("Select by Number of Vertices");
+       ot->description= _("Select vertices or faces by vertex count");
        ot->idname= "MESH_OT_select_by_number_vertices";
        
        /* api callbacks */
@@ -2934,7 +2934,7 @@ void MESH_OT_select_by_number_vertices(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
-       ot->prop= RNA_def_enum(ot->srna, "type", type_items, 3, "Type", "Type of elements to select.");
+       ot->prop= RNA_def_enum(ot->srna, "type", type_items, 3, _("Type"), _("Type of elements to select."));
 }
 
 
@@ -2955,8 +2955,8 @@ static int select_mirror_exec(bContext *C, wmOperator *op)
 void MESH_OT_select_mirror(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Mirror";
-       ot->description= "Select mesh items at mirrored locations";
+       ot->name= _("Select Mirror");
+       ot->description= _("Select mesh items at mirrored locations");
        ot->idname= "MESH_OT_select_mirror";
 
        /* api callbacks */
@@ -3076,8 +3076,8 @@ static int select_sharp_edges_exec(bContext *C, wmOperator *op)
 void MESH_OT_edges_select_sharp(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Sharp Edges";
-       ot->description= "Marked selected edges as sharp";
+       ot->name= _("Select Sharp Edges");
+       ot->description= _("Marked selected edges as sharp");
        ot->idname= "MESH_OT_edges_select_sharp";
        
        /* api callbacks */
@@ -3088,7 +3088,7 @@ void MESH_OT_edges_select_sharp(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
-       RNA_def_float(ot->srna, "sharpness", 0.01f, 0.0f, FLT_MAX, "sharpness", "", 0.0f, 180.0f);
+       RNA_def_float(ot->srna, "sharpness", 0.01f, 0.0f, FLT_MAX, _("sharpness"), "", 0.0f, 180.0f);
 }
 
 
@@ -3244,8 +3244,8 @@ static int select_linked_flat_faces_exec(bContext *C, wmOperator *op)
 void MESH_OT_faces_select_linked_flat(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Linked Flat Faces";
-       ot->description= "Select linked faces by angle";
+       ot->name= _("Select Linked Flat Faces");
+       ot->description= _("Select linked faces by angle");
        ot->idname= "MESH_OT_faces_select_linked_flat";
        
        /* api callbacks */
@@ -3256,7 +3256,7 @@ void MESH_OT_faces_select_linked_flat(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
-       RNA_def_float(ot->srna, "sharpness", 135.0f, 0.0f, FLT_MAX, "sharpness", "", 0.0f, 180.0f);
+       RNA_def_float(ot->srna, "sharpness", 135.0f, 0.0f, FLT_MAX, _("sharpness"), "", 0.0f, 180.0f);
 }
 
 static void select_non_manifold(EditMesh *em, wmOperator *op )
@@ -3345,8 +3345,8 @@ static int select_non_manifold_exec(bContext *C, wmOperator *op)
 void MESH_OT_select_non_manifold(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Non Manifold";
-       ot->description= "Select all non-manifold vertices or edges";
+       ot->name= _("Select Non Manifold");
+       ot->description= _("Select all non-manifold vertices or edges");
        ot->idname= "MESH_OT_select_non_manifold";
        
        /* api callbacks */
@@ -3409,8 +3409,8 @@ static int select_inverse_mesh_exec(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_select_inverse(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Inverse";
-       ot->description= "Select inverse of (un)selected vertices, edges or faces";
+       ot->name= _("Select Inverse");
+       ot->description= _("Select inverse of (un)selected vertices, edges or faces");
        ot->idname= "MESH_OT_select_inverse";
        
        /* api callbacks */
@@ -3471,8 +3471,8 @@ static int select_all_exec(bContext *C, wmOperator *op)
 void MESH_OT_select_all(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select or Deselect All";
-       ot->description= "Change selection of all vertices, edges or faces";
+       ot->name= _("Select or Deselect All");
+       ot->description= _("Change selection of all vertices, edges or faces");
        ot->idname= "MESH_OT_select_all";
        
        /* api callbacks */
@@ -3544,8 +3544,8 @@ static int select_more(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_select_more(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select More";
-       ot->description= "Select more vertices, edges or faces connected to initial selection";
+       ot->name= _("Select More");
+       ot->description= _("Select more vertices, edges or faces connected to initial selection");
        ot->idname= "MESH_OT_select_more";
 
        /* api callbacks */
@@ -3634,8 +3634,8 @@ static int select_less(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_select_less(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Less";
-       ot->description= "Select less vertices, edges or faces connected to initial selection";
+       ot->name= _("Select Less");
+       ot->description= _("Select less vertices, edges or faces connected to initial selection");
        ot->idname= "MESH_OT_select_less";
 
        /* api callbacks */
@@ -3704,8 +3704,8 @@ static int mesh_select_random_exec(bContext *C, wmOperator *op)
 void MESH_OT_select_random(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Random";
-       ot->description= "Randomly select vertices";
+       ot->name= _("Select Random");
+       ot->description= _("Randomly select vertices");
        ot->idname= "MESH_OT_select_random";
 
        /* api callbacks */
@@ -3799,8 +3799,8 @@ static int editmesh_mark_seam(bContext *C, wmOperator *op)
 void MESH_OT_mark_seam(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Mark Seam";
-       ot->description= "(un)mark selected edges as a seam";
+       ot->name= _("Mark Seam");
+       ot->description= _("(un)mark selected edges as a seam");
        ot->idname= "MESH_OT_mark_seam";
        
        /* api callbacks */
@@ -3851,8 +3851,8 @@ static int editmesh_mark_sharp(bContext *C, wmOperator *op)
 void MESH_OT_mark_sharp(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Mark Sharp";
-       ot->description= "(un)mark selected edges as sharp";
+       ot->name= _("Mark Sharp");
+       ot->description= _("(un)mark selected edges as sharp");
        ot->idname= "MESH_OT_mark_sharp";
        
        /* api callbacks */
@@ -4095,8 +4095,8 @@ static int normals_make_consistent_exec(bContext *C, wmOperator *op)
 void MESH_OT_normals_make_consistent(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Make Normals Consistent";
-       ot->description= "Flip all selected vertex and face normals in a consistent direction";
+       ot->name= _("Make Normals Consistent");
+       ot->description= _("Flip all selected vertex and face normals in a consistent direction");
        ot->idname= "MESH_OT_normals_make_consistent";
        
        /* api callbacks */
@@ -4273,8 +4273,8 @@ static int smooth_vertex_exec(bContext *C, wmOperator *op)
 void MESH_OT_vertices_smooth(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Smooth Vertex";
-       ot->description= "Flatten angles of selected vertices";
+       ot->name= _("Smooth Vertex");
+       ot->description= _("Flatten angles of selected vertices");
        ot->idname= "MESH_OT_vertices_smooth";
        
        /* api callbacks */
@@ -4347,8 +4347,8 @@ static int mesh_noise_exec(bContext *C, wmOperator *op)
 void MESH_OT_noise(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Noise";
-       ot->description= "Use vertex coordinate as texture coordinate";
+       ot->name= _("Noise");
+       ot->description= _("Use vertex coordinate as texture coordinate");
        ot->idname= "MESH_OT_noise";
 
        /* api callbacks */
@@ -4358,7 +4358,7 @@ void MESH_OT_noise(wmOperatorType *ot)
        /* flags */
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
-       RNA_def_float(ot->srna, "factor", 0.1f, -FLT_MAX, FLT_MAX, "Factor", "", 0.0f, 1.0f);
+       RNA_def_float(ot->srna, "factor", 0.1f, -FLT_MAX, FLT_MAX, _("Factor"), "", 0.0f, 1.0f);
 }
 
 void flipface(EditMesh *em, EditFace *efa)
@@ -4409,8 +4409,8 @@ static int flip_normals(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_flip_normals(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Flip Normals";
-       ot->description= "Toggle the direction of selected face's vertex and face normals";
+       ot->name= _("Flip Normals");
+       ot->description= _("Toggle the direction of selected face's vertex and face normals");
        ot->idname= "MESH_OT_flip_normals";
        
        /* api callbacks */
@@ -4451,8 +4451,8 @@ void MESH_OT_solidify(wmOperatorType *ot)
 {
        PropertyRNA *prop;
        /* identifiers */
-       ot->name= "Solidify";
-       ot->description= "Create a solid skin by extruding, compensating for sharp angles";
+       ot->name= _("Solidify");
+       ot->description= _("Create a solid skin by extruding, compensating for sharp angles");
        ot->idname= "MESH_OT_solidify";
 
        /* api callbacks */
@@ -4462,7 +4462,7 @@ void MESH_OT_solidify(wmOperatorType *ot)
        /* flags */
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
-       prop= RNA_def_float(ot->srna, "thickness", 0.01f, -FLT_MAX, FLT_MAX, "Thickness", "", -10.0f, 10.0f);
+       prop= RNA_def_float(ot->srna, "thickness", 0.01f, -FLT_MAX, FLT_MAX, _("Thickness"), "", -10.0f, 10.0f);
        RNA_def_property_ui_range(prop, -10, 10, 0.1, 4);
 }
 
@@ -4486,7 +4486,7 @@ static int mesh_select_nth_exec(bContext *C, wmOperator *op)
 void MESH_OT_select_nth(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Nth";
+       ot->name= _("Select Nth");
        ot->description= "";
        ot->idname= "MESH_OT_select_nth";
 
index dba1c30e18bf2c31a4e27de8430ba40e55e89dee..1453b23da2661efa3eada14042d100fb0c2ac139 100644 (file)
@@ -508,8 +508,8 @@ void MESH_OT_remove_doubles(wmOperatorType *ot)
        PropertyRNA *prop;
 
        /* identifiers */
-       ot->name= "Remove Doubles";
-       ot->description= "Remove duplicate vertices";
+       ot->name= _("Remove Doubles");
+       ot->description= _("Remove duplicate vertices");
        ot->idname= "MESH_OT_remove_doubles";
 
        /* api callbacks */
@@ -519,7 +519,7 @@ void MESH_OT_remove_doubles(wmOperatorType *ot)
        /* flags */
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
-       prop= RNA_def_float(ot->srna, "limit", 0.0001f, 0.000001f, 50.0f, "Merge Threshold", "Minimum distance between merged verts", 0.00001f, 2.0f);
+       prop= RNA_def_float(ot->srna, "limit", 0.0001f, 0.000001f, 50.0f, _("Merge Threshold"), _("Minimum distance between merged verts"), 0.00001f, 2.0f);
        RNA_def_property_ui_range(prop,  0.000001f, 50.0f, 0.001, 5);
 }
 
@@ -580,8 +580,8 @@ static int mesh_vertices_sort_exec(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_vertices_sort(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Vertex Sort";
-       ot->description= "Sort vertex order";
+       ot->name= _("Vertex Sort");
+       ot->description= _("Sort vertex order");
        ot->idname= "MESH_OT_vertices_sort";
 
        /* api callbacks */
@@ -663,8 +663,8 @@ static int mesh_vertices_randomize_exec(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_vertices_randomize(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Vertex Randomize";
-       ot->description= "Randomize vertex order";
+       ot->name= _("Vertex Randomize");
+       ot->description= _("Randomize vertex order");
        ot->idname= "MESH_OT_vertices_randomize";
 
        /* api callbacks */
@@ -757,10 +757,10 @@ static int mesh_extrude_exec(bContext *C, wmOperator *op)
 }
 
 static EnumPropertyItem extrude_items[] = {
-               {1, "REGION", 0, "Region", ""},
-               {2, "FACES", 0, "Individual Faces", ""},
-               {3, "EDGES", 0, "Only Edges", ""},
-               {4, "VERTS", 0, "Only Vertices", ""},
+               {1, "REGION", 0, N_("Region"), ""},
+               {2, "FACES", 0, N_("Individual Faces"), ""},
+               {3, "EDGES", 0, N_("Only Edges"), ""},
+               {4, "VERTS", 0, N_("Only Vertices"), ""},
                {0, NULL, 0, NULL, NULL}};
 
 
@@ -837,8 +837,8 @@ void MESH_OT_extrude(wmOperatorType *ot)
        PropertyRNA *prop;
 
        /* identifiers */
-       ot->name= "Extrude";
-       ot->description= "Extrude selected vertices, edges or faces";
+       ot->name= _("Extrude");
+       ot->description= _("Extrude selected vertices, edges or faces");
        ot->idname= "MESH_OT_extrude";
 
        /* api callbacks */
@@ -850,7 +850,8 @@ void MESH_OT_extrude(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       prop= RNA_def_enum(ot->srna, "type", extrude_items, 0, "Type", "");
+       /* gettext extrude_items will raise segment fault */
+       prop= RNA_def_enum(ot->srna, "type", extrude_items, 0, _("Type"), "");
        RNA_def_property_flag(prop, PROP_HIDDEN);
        RNA_def_enum_funcs(prop, mesh_extrude_itemf);
        ot->prop= prop;
@@ -881,8 +882,8 @@ static int split_mesh(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_split(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Split";
-       ot->description= "Split selected geometry into separate disconnected mesh";
+       ot->name= _("Split");
+       ot->description= _("Split selected geometry into separate disconnected mesh");
        ot->idname= "MESH_OT_split";
 
        /* api callbacks */
@@ -948,8 +949,8 @@ static int extrude_repeat_mesh_invoke(bContext *C, wmOperator *op, wmEvent *UNUS
 void MESH_OT_extrude_repeat(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Extrude Repeat Mesh";
-       ot->description= "Extrude selected vertices, edges or faces repeatedly";
+       ot->name= _("Extrude Repeat Mesh");
+       ot->description= _("Extrude selected vertices, edges or faces repeatedly");
        ot->idname= "MESH_OT_extrude_repeat";
 
        /* api callbacks */
@@ -1084,8 +1085,8 @@ static int spin_mesh_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
 void MESH_OT_spin(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Spin";
-       ot->description= "Extrude selected vertices in a circle around the cursor in indicated viewport";
+       ot->name= _("Spin");
+       ot->description= _("Extrude selected vertices in a circle around the cursor in indicated viewport");
        ot->idname= "MESH_OT_spin";
 
        /* api callbacks */
@@ -1190,8 +1191,8 @@ static int screw_mesh_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event)
 void MESH_OT_screw(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Screw";
-       ot->description= "Extrude selected vertices in screw-shaped rotation around the cursor in indicated viewport";
+       ot->name= _("Screw");
+       ot->description= _("Extrude selected vertices in screw-shaped rotation around the cursor in indicated viewport");
        ot->idname= "MESH_OT_screw";
 
        /* api callbacks */
@@ -1395,13 +1396,13 @@ static void delete_mesh(EditMesh *em, wmOperator *op, int event)
 
 /* Note, these values must match delete_mesh() event values */
 static EnumPropertyItem prop_mesh_delete_types[] = {
-       {10,"VERT",             0, "Vertices", ""},
-       {1, "EDGE",             0, "Edges", ""},
-       {2, "FACE",             0, "Faces", ""},
-       {3, "ALL",              0, "All", ""},
-       {4, "EDGE_FACE",0, "Edges & Faces", ""},
-       {5, "ONLY_FACE",0, "Only Faces", ""},
-       {6, "EDGE_LOOP",0, "Edge Loop", ""},
+       {10,"VERT",             0, N_("Vertices"), ""},
+       {1, "EDGE",             0, N_("Edges"), ""},
+       {2, "FACE",             0, N_("Faces"), ""},
+       {3, "ALL",              0, N_("All"), ""},
+       {4, "EDGE_FACE",0, N_("Edges & Faces"), ""},
+       {5, "ONLY_FACE",0, N_("Only Faces"), ""},
+       {6, "EDGE_LOOP",0, N_("Edge Loop"), ""},
        {0, NULL, 0, NULL, NULL}
 };
 
@@ -1426,8 +1427,8 @@ static int delete_mesh_exec(bContext *C, wmOperator *op)
 void MESH_OT_delete(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Delete";
-       ot->description= "Delete selected vertices, edges or faces";
+       ot->name= _("Delete");
+       ot->description= _("Delete selected vertices, edges or faces");
        ot->idname= "MESH_OT_delete";
 
        /* api callbacks */
@@ -1440,7 +1441,7 @@ void MESH_OT_delete(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /*props */
-       ot->prop= RNA_def_enum(ot->srna, "type", prop_mesh_delete_types, 10, "Type", "Method used for deleting mesh data");
+       ot->prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(prop_mesh_delete_types), 10, _("Type"), _("Method used for deleting mesh data"));
 }
 
 
@@ -5115,8 +5116,8 @@ static int mesh_rip_invoke(bContext *C, wmOperator *op, wmEvent *event)
 void MESH_OT_rip(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Rip";
-       ot->description= "Rip selection from mesh (quads only)";
+       ot->name= _("Rip");
+       ot->description= _("Rip selection from mesh (quads only)");
        ot->idname= "MESH_OT_rip";
 
        /* api callbacks */
@@ -5196,8 +5197,8 @@ static int shape_propagate_to_all_exec(bContext *C, wmOperator *op)
 void MESH_OT_shape_propagate_to_all(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Shape Propagate";
-       ot->description= "Apply selected vertex locations to all other shape keys";
+       ot->name= _("Shape Propagate");
+       ot->description= _("Apply selected vertex locations to all other shape keys");
        ot->idname= "MESH_OT_shape_propagate_to_all";
 
        /* api callbacks */
@@ -5970,11 +5971,11 @@ static int merge_exec(bContext *C, wmOperator *op)
 }
 
 static EnumPropertyItem merge_type_items[]= {
-       {6, "FIRST", 0, "At First", ""},
-       {1, "LAST", 0, "At Last", ""},
-       {3, "CENTER", 0, "At Center", ""},
-       {4, "CURSOR", 0, "At Cursor", ""},
-       {5, "COLLAPSE", 0, "Collapse", ""},
+       {6, "FIRST", 0, N_("At First"), ""},
+       {1, "LAST", 0, N_("At Last"), ""},
+       {3, "CENTER", 0, N_("At Center"), ""},
+       {4, "CURSOR", 0, N_("At Cursor"), ""},
+       {5, "COLLAPSE", 0, N_("Collapse"), ""},
        {0, NULL, 0, NULL, NULL}};
 
 static EnumPropertyItem *merge_type_itemf(bContext *C, PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), int *free)
@@ -6018,8 +6019,8 @@ void MESH_OT_merge(wmOperatorType *ot)
        PropertyRNA *prop;
 
        /* identifiers */
-       ot->name= "Merge";
-       ot->description= "Merge selected vertices";
+       ot->name= _("Merge");
+       ot->description= _("Merge selected vertices");
        ot->idname= "MESH_OT_merge";
 
        /* api callbacks */
@@ -6031,7 +6032,7 @@ void MESH_OT_merge(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       prop= RNA_def_enum(ot->srna, "type", merge_type_items, 3, "Type", "Merge method to use.");
+       prop= RNA_def_enum(ot->srna, "type", merge_type_items, 3, _("Type"), _("Merge method to use."));
        RNA_def_enum_funcs(prop, merge_type_itemf);
        ot->prop= prop;
        RNA_def_boolean(ot->srna, "uvs", 0, _("UVs"), _("Move UVs according to merge."));
@@ -6221,13 +6222,13 @@ static int select_vertex_path_exec(bContext *C, wmOperator *op)
 void MESH_OT_select_vertex_path(wmOperatorType *ot)
 {
        static const EnumPropertyItem type_items[] = {
-               {PATH_SELECT_EDGE_LENGTH, "EDGE_LENGTH", 0, "Edge Length", NULL},
-               {PATH_SELECT_TOPOLOGICAL, "TOPOLOGICAL", 0, "Topological", NULL},
+               {PATH_SELECT_EDGE_LENGTH, "EDGE_LENGTH", 0, N_("Edge Length"), NULL},
+               {PATH_SELECT_TOPOLOGICAL, "TOPOLOGICAL", 0, N_("Topological"), NULL},
                {0, NULL, 0, NULL, NULL}};
 
        /* identifiers */
-       ot->name= "Select Vertex Path";
-       ot->description= "Select shortest path between two vertices by distance type";
+       ot->name= _("Select Vertex Path");
+       ot->description= _("Select shortest path between two vertices by distance type");
        ot->idname= "MESH_OT_select_vertex_path";
 
        /* api callbacks */
@@ -6238,7 +6239,7 @@ void MESH_OT_select_vertex_path(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       ot->prop= RNA_def_enum(ot->srna, "type", type_items, PATH_SELECT_EDGE_LENGTH, "Type", "Method to compute distance.");
+       ot->prop= RNA_def_enum(ot->srna, "type", type_items, PATH_SELECT_EDGE_LENGTH, _("Type"), _("Method to compute distance."));
 }
 
 /********************** Region/Loop Operators *************************/
@@ -6288,8 +6289,8 @@ static int region_to_loop(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_region_to_loop(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Region to Loop";
-       ot->description= "Select a region as a loop of connected edges";
+       ot->name= _("Region to Loop");
+       ot->description= _("Select a region as a loop of connected edges");
        ot->idname= "MESH_OT_region_to_loop";
 
        /* api callbacks */
@@ -6464,8 +6465,8 @@ static int loop_to_region(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_loop_to_region(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Loop to Region";
-       ot->description= "Select a loop of connected edges as a region";
+       ot->name= _("Loop to Region");
+       ot->description= _("Select a loop of connected edges as a region");
        ot->idname= "MESH_OT_loop_to_region";
 
        /* api callbacks */
@@ -6759,8 +6760,8 @@ static int mesh_mirror_colors(bContext *C, wmOperator *op)
 void MESH_OT_uvs_rotate(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Rotate UVs";
-       ot->description= "Rotate selected UVs";
+       ot->name= _("Rotate UVs");
+       ot->description= _("Rotate selected UVs");
        ot->idname= "MESH_OT_uvs_rotate";
 
        /* api callbacks */
@@ -6771,14 +6772,14 @@ void MESH_OT_uvs_rotate(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* props */
-       RNA_def_enum(ot->srna, "direction", direction_items, DIRECTION_CW, "Direction", "Direction to rotate UVs around.");
+       RNA_def_enum(ot->srna, "direction", direction_items, DIRECTION_CW, _("Direction"), _("Direction to rotate UVs around."));
 }
 
 void MESH_OT_uvs_mirror(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Mirror UVs";
-       ot->description= "Mirror selected UVs";
+       ot->name= _("Mirror UVs");
+       ot->description= _("Mirror selected UVs");
        ot->idname= "MESH_OT_uvs_mirror";
 
        /* api callbacks */
@@ -6789,14 +6790,14 @@ void MESH_OT_uvs_mirror(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* props */
-       RNA_def_enum(ot->srna, "axis", axis_items_xy, DIRECTION_CW, "Axis", "Axis to mirror UVs around.");
+       RNA_def_enum(ot->srna, "axis", axis_items_xy, DIRECTION_CW, _("Axis"), _("Axis to mirror UVs around."));
 }
 
 void MESH_OT_colors_rotate(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Rotate Colors";
-       ot->description= "Rotate UV/image color layer";
+       ot->name= _("Rotate Colors");
+       ot->description= _("Rotate UV/image color layer");
        ot->idname= "MESH_OT_colors_rotate";
 
        /* api callbacks */
@@ -6807,14 +6808,14 @@ void MESH_OT_colors_rotate(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* props */
-       RNA_def_enum(ot->srna, "direction", direction_items, DIRECTION_CW, "Direction", "Direction to rotate edge around.");
+       RNA_def_enum(ot->srna, "direction", direction_items, DIRECTION_CW, _("Direction"), _("Direction to rotate edge around."));
 }
 
 void MESH_OT_colors_mirror(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Mirror Colors";
-       ot->description= "Mirror UV/image color layer";
+       ot->name= _("Mirror Colors");
+       ot->description= _("Mirror UV/image color layer");
        ot->idname= "MESH_OT_colors_mirror";
 
        /* api callbacks */
@@ -6825,7 +6826,7 @@ void MESH_OT_colors_mirror(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* props */
-       RNA_def_enum(ot->srna, "axis", axis_items_xy, DIRECTION_CW, "Axis", "Axis to mirror colors around.");
+       RNA_def_enum(ot->srna, "axis", axis_items_xy, DIRECTION_CW, _("Axis"), _("Axis to mirror colors around."));
 }
 
 /********************** Subdivide Operator *************************/
@@ -6857,8 +6858,8 @@ static int subdivide_exec(bContext *C, wmOperator *op)
 void MESH_OT_subdivide(wmOperatorType *ot)
 {      
        /* identifiers */
-       ot->name= "Subdivide";
-       ot->description= "Subdivide selected edges";
+       ot->name= _("Subdivide");
+       ot->description= _("Subdivide selected edges");
        ot->idname= "MESH_OT_subdivide";
 
        /* api callbacks */
@@ -7140,8 +7141,8 @@ static int fill_mesh_exec(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_fill(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Fill";
-       ot->description= "Create a segment, edge or face";
+       ot->name= _("Fill");
+       ot->description= _("Create a segment, edge or face");
        ot->idname= "MESH_OT_fill";
 
        /* api callbacks */
@@ -7170,8 +7171,8 @@ static int beautify_fill_exec(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_beautify_fill(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Beautify Fill";
-       ot->description= "Rearrange geometry on a selected surface to avoid skinny faces";
+       ot->name= _("Beautify Fill");
+       ot->description= _("Rearrange geometry on a selected surface to avoid skinny faces");
        ot->idname= "MESH_OT_beautify_fill";
 
        /* api callbacks */
@@ -7336,16 +7337,16 @@ static int sort_faces_exec(bContext *C, wmOperator *op)
 void MESH_OT_sort_faces(wmOperatorType *ot)
 {
        static EnumPropertyItem type_items[]= {
-               { 1, "VIEW_AXIS", 0, "View Axis", "" },
-               { 2, "CURSOR_DISTANCE", 0, "Cursor Distance", "" },
-               { 3, "MATERIAL", 0, "Material", "" },
-               { 4, "SELECTED", 0, "Selected", "" },
-               { 5, "RANDOMIZE", 0, "Randomize", "" },
+               { 1, "VIEW_AXIS", 0, N_("View Axis"), "" },
+               { 2, "CURSOR_DISTANCE", 0, N_("Cursor Distance"), "" },
+               { 3, "MATERIAL", 0, N_("Material"), "" },
+               { 4, "SELECTED", 0, N_("Selected"), "" },
+               { 5, "RANDOMIZE", 0, N_("Randomize"), "" },
                { 0, NULL, 0, NULL, NULL }};
 
        /* identifiers */
-       ot->name= "Sort Faces"; // XXX (Ctrl to reverse)%t|
-       ot->description= "The faces of the active Mesh Object are sorted, based on the current view.";
+       ot->name= _("Sort Faces"); // XXX (Ctrl to reverse)%t|
+       ot->description= _("The faces of the active Mesh Object are sorted, based on the current view.");
        ot->idname= "MESH_OT_sort_faces";
 
        /* api callbacks */
@@ -7357,7 +7358,7 @@ void MESH_OT_sort_faces(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       ot->prop= RNA_def_enum(ot->srna, "type", type_items, 0, "Type", "");
+       ot->prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(type_items), 0, _("Type"), "");
 }
 
 /********************** Quad/Tri Operators *************************/
@@ -7379,8 +7380,8 @@ static int quads_convert_to_tris_exec(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_quads_convert_to_tris(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Quads to Tris";
-       ot->description= "Convert selected quads to triangles";
+       ot->name= _("Quads to Tris");
+       ot->description= _("Convert selected quads to triangles");
        ot->idname= "MESH_OT_quads_convert_to_tris";
 
        /* api callbacks */
@@ -7408,8 +7409,8 @@ static int tris_convert_to_quads_exec(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_tris_convert_to_quads(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Tris to Quads";
-       ot->description= "Convert selected triangles to quads";
+       ot->name= _("Tris to Quads");
+       ot->description= _("Convert selected triangles to quads");
        ot->idname= "MESH_OT_tris_convert_to_quads";
 
        /* api callbacks */
@@ -7437,8 +7438,8 @@ static int edge_flip_exec(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_edge_flip(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Edge Flip";
-       ot->description= "Flip selected edge or adjoining faces";
+       ot->name= _("Edge Flip");
+       ot->description= _("Flip selected edge or adjoining faces");
        ot->idname= "MESH_OT_edge_flip";
 
        /* api callbacks */
@@ -7485,8 +7486,8 @@ static int mesh_faces_shade_smooth_exec(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_faces_shade_smooth(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Shade Smooth";
-       ot->description= "Display faces 'smooth' (using vertex normals)";
+       ot->name= _("Shade Smooth");
+       ot->description= _("Display faces 'smooth' (using vertex normals)");
        ot->idname= "MESH_OT_faces_shade_smooth";
 
        /* api callbacks */
@@ -7513,8 +7514,8 @@ static int mesh_faces_shade_flat_exec(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_faces_shade_flat(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Shade Flat";
-       ot->description= "Display faces 'flat'";
+       ot->name= _("Shade Flat");
+       ot->description= _("Display faces 'flat'");
        ot->idname= "MESH_OT_faces_shade_flat";
 
        /* api callbacks */
@@ -7578,20 +7579,20 @@ static int select_axis_exec(bContext *C, wmOperator *op)
 void MESH_OT_select_axis(wmOperatorType *ot)
 {
        static EnumPropertyItem axis_mode_items[] = {
-               {0,  "POSITIVE", 0, "Positive Axis", ""},
-               {1,  "NEGATIVE", 0, "Negative Axis", ""},
-               {-1, "ALIGNED",  0, "Aligned Axis", ""},
+               {0,  "POSITIVE", 0, N_("Positive Axis"), ""},
+               {1,  "NEGATIVE", 0, N_("Negative Axis"), ""},
+               {-1, "ALIGNED",  0, N_("Aligned Axis"), ""},
                {0, NULL, 0, NULL, NULL}};
        
        static EnumPropertyItem axis_items_xyz[] = {
-               {0, "X_AXIS", 0, "X Axis", ""},
-               {1, "Y_AXIS", 0, "Y Axis", ""},
-               {2, "Z_AXIS", 0, "Z Axis", ""},
+               {0, "X_AXIS", 0, N_("X Axis"), ""},
+               {1, "Y_AXIS", 0, N_("Y Axis"), ""},
+               {2, "Z_AXIS", 0, N_("Z Axis"), ""},
                {0, NULL, 0, NULL, NULL}};
 
        /* identifiers */
-       ot->name= "Select Axis";
-       ot->description= "Select all data in the mesh on a single axis";
+       ot->name= _("Select Axis");
+       ot->description= _("Select all data in the mesh on a single axis");
        ot->idname= "MESH_OT_select_axis";
 
        /* api callbacks */
@@ -7602,7 +7603,7 @@ void MESH_OT_select_axis(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       RNA_def_enum(ot->srna, "mode", axis_mode_items, 0, "Axis Mode", "Axis side to use when selecting");
-       RNA_def_enum(ot->srna, "axis", axis_items_xyz, 0, "Axis", "Select the axis to compare each vertex on");
+       RNA_def_enum(ot->srna, "mode", RNA_enum_items_gettexted(axis_mode_items), 0, _("Axis Mode"), _("Axis side to use when selecting"));
+       RNA_def_enum(ot->srna, "axis", RNA_enum_items_gettexted(axis_items_xyz), 0, _("Axis"), _("Select the axis to compare each vertex on"));
 }
 
index 43de28e010b0936b2828e975dcb1cbe907911bb8..62a512fe11ad56afd48c7eb73645900a95e2b61b 100644 (file)
@@ -512,9 +512,9 @@ static int ringcut_modal (bContext *C, wmOperator *op, wmEvent *event)
 void MESH_OT_edgering_select (wmOperatorType *ot)
 {
        /* description */
-       ot->name= "Edge Ring Select";
+       ot->name= _("Edge Ring Select");
        ot->idname= "MESH_OT_edgering_select";
-       ot->description= "Select an edge ring";
+       ot->description= _("Select an edge ring");
        
        /* callbacks */
        ot->invoke= ringsel_invoke;
@@ -529,9 +529,9 @@ void MESH_OT_edgering_select (wmOperatorType *ot)
 void MESH_OT_loopcut (wmOperatorType *ot)
 {
        /* description */
-       ot->name= "Loop Cut";
+       ot->name= _("Loop Cut");
        ot->idname= "MESH_OT_loopcut";
-       ot->description= "Add a new loop between existing loops";
+       ot->description= _("Add a new loop between existing loops");
        
        /* callbacks */
        ot->invoke= ringcut_invoke;
index 282eeef906fa33fe9e88d6b45e478e1f80b7bedf..077ad756150c9c59d34e2868f926e7a9cf1ac018 100644 (file)
@@ -42,6 +42,8 @@
 #include "BLI_blenlib.h"
 #include "BLI_editVert.h"
 
+#include "BLF_api.h"
+
 #include "BKE_context.h"
 
 #include "RNA_access.h"
@@ -172,52 +174,52 @@ void ED_operatormacros_mesh(void)
        wmOperatorType *ot;
        wmOperatorTypeMacro *otmacro;
        
-       ot= WM_operatortype_append_macro("MESH_OT_loopcut_slide", "Loop Cut and Slide", OPTYPE_UNDO|OPTYPE_REGISTER);
-       ot->description = "Cut mesh loop and slide it";
+       ot= WM_operatortype_append_macro("MESH_OT_loopcut_slide", _("Loop Cut and Slide"), OPTYPE_UNDO|OPTYPE_REGISTER);
+       ot->description = _("Cut mesh loop and slide it");
        WM_operatortype_macro_define(ot, "MESH_OT_loopcut");
        otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_edge_slide");
        RNA_struct_idprops_unset(otmacro->ptr, "release_confirm");
 
-       ot= WM_operatortype_append_macro("MESH_OT_duplicate_move", "Add Duplicate", OPTYPE_UNDO|OPTYPE_REGISTER);
-       ot->description = "Duplicate mesh and move";
+       ot= WM_operatortype_append_macro("MESH_OT_duplicate_move", _("Add Duplicate"), OPTYPE_UNDO|OPTYPE_REGISTER);
+       ot->description = _("Duplicate mesh and move");
        WM_operatortype_macro_define(ot, "MESH_OT_duplicate");
        otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
        RNA_enum_set(otmacro->ptr, "proportional", 0);
        RNA_boolean_set(otmacro->ptr, "mirror", 0);
 
-       ot= WM_operatortype_append_macro("MESH_OT_rip_move", "Rip", OPTYPE_UNDO|OPTYPE_REGISTER);
-       ot->description = "Rip polygons and move the result";
+       ot= WM_operatortype_append_macro("MESH_OT_rip_move", _("Rip"), OPTYPE_UNDO|OPTYPE_REGISTER);
+       ot->description = _("Rip polygons and move the result");
        WM_operatortype_macro_define(ot, "MESH_OT_rip");
        otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
        RNA_enum_set(otmacro->ptr, "proportional", 0);
        RNA_boolean_set(otmacro->ptr, "mirror", 0);
 
-       ot= WM_operatortype_append_macro("MESH_OT_extrude_region_move", "Extrude Region and Move", OPTYPE_UNDO|OPTYPE_REGISTER);
-       ot->description = "Extrude region and move result";
+       ot= WM_operatortype_append_macro("MESH_OT_extrude_region_move", _("Extrude Region and Move"), OPTYPE_UNDO|OPTYPE_REGISTER);
+       ot->description = _("Extrude region and move result");
        otmacro= WM_operatortype_macro_define(ot, "MESH_OT_extrude");
        RNA_enum_set(otmacro->ptr, "type", 1);
        otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
        RNA_enum_set(otmacro->ptr, "proportional", 0);
        RNA_boolean_set(otmacro->ptr, "mirror", 0);
 
-       ot= WM_operatortype_append_macro("MESH_OT_extrude_faces_move", "Extrude Individual Faces and Move", OPTYPE_UNDO|OPTYPE_REGISTER);
-       ot->description = "Extrude faces and move result";
+       ot= WM_operatortype_append_macro("MESH_OT_extrude_faces_move", _("Extrude Individual Faces and Move"), OPTYPE_UNDO|OPTYPE_REGISTER);
+       ot->description = _("Extrude faces and move result");
        otmacro= WM_operatortype_macro_define(ot, "MESH_OT_extrude");
        RNA_enum_set(otmacro->ptr, "type", 2);
        otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_shrink_fatten");
        RNA_enum_set(otmacro->ptr, "proportional", 0);
        RNA_boolean_set(otmacro->ptr, "mirror", 0);
 
-       ot= WM_operatortype_append_macro("MESH_OT_extrude_edges_move", "Extrude Only Edges and Move", OPTYPE_UNDO|OPTYPE_REGISTER);
-       ot->description = "Extrude edges and move result";
+       ot= WM_operatortype_append_macro("MESH_OT_extrude_edges_move", _("Extrude Only Edges and Move"), OPTYPE_UNDO|OPTYPE_REGISTER);
+       ot->description = _("Extrude edges and move result");
        otmacro= WM_operatortype_macro_define(ot, "MESH_OT_extrude");
        RNA_enum_set(otmacro->ptr, "type", 3);
        otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
        RNA_enum_set(otmacro->ptr, "proportional", 0);
        RNA_boolean_set(otmacro->ptr, "mirror", 0);
 
-       ot= WM_operatortype_append_macro("MESH_OT_extrude_vertices_move", "Extrude Only Vertices and Move", OPTYPE_UNDO|OPTYPE_REGISTER);
-       ot->description = "Extrude vertices and move result";
+       ot= WM_operatortype_append_macro("MESH_OT_extrude_vertices_move", _("Extrude Only Vertices and Move"), OPTYPE_UNDO|OPTYPE_REGISTER);
+       ot->description = _("Extrude vertices and move result");
        otmacro= WM_operatortype_macro_define(ot, "MESH_OT_extrude");
        RNA_enum_set(otmacro->ptr, "type", 4);
        otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
index 00d40d196d6aa392301c411d85c4ebde1797dbb2..c14f57d6c8c27298272686287186267d115a3400 100644 (file)
@@ -170,8 +170,8 @@ static int select_all_exec(bContext *C, wmOperator *op)
 void MBALL_OT_select_all(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select or Deselect All";
-       ot->description= "Change selection of all meta elements";
+       ot->name= _("Select or Deselect All");
+       ot->description= _("Change selection of all meta elements");
        ot->idname= "MBALL_OT_select_all";
 
        /* callback functions */
@@ -211,8 +211,8 @@ static int select_inverse_metaelems_exec(bContext *C, wmOperator *UNUSED(op))
 void MBALL_OT_select_inverse_metaelems(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Inverse";
-       ot->description= "Select inverse of (un)selected metaelements";
+       ot->name= _("Inverse");
+       ot->description= _("Select inverse of (un)selected metaelements");
        ot->idname= "MBALL_OT_select_inverse_metaelems";
 
        /* callback functions */
@@ -257,8 +257,8 @@ static int select_random_metaelems_exec(bContext *C, wmOperator *op)
 void MBALL_OT_select_random_metaelems(struct wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Random...";
-       ot->description= "Randomly select metaelements";
+       ot->name= _("Random...");
+       ot->description= _("Randomly select metaelements");
        ot->idname= "MBALL_OT_select_random_metaelems";
        
        /* callback functions */
@@ -270,7 +270,7 @@ void MBALL_OT_select_random_metaelems(struct wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
-       RNA_def_float_percentage(ot->srna, "percent", 0.5f, 0.0f, 1.0f, "Percent", "Percentage of metaelems to select randomly.", 0.0001f, 1.0f);
+       RNA_def_float_percentage(ot->srna, "percent", 0.5f, 0.0f, 1.0f, _("Percent"), _("Percentage of metaelems to select randomly."), 0.0001f, 1.0f);
 }
 
 /***************************** Duplicate operator *****************************/
@@ -316,8 +316,8 @@ static int duplicate_metaelems_invoke(bContext *C, wmOperator *op, wmEvent *UNUS
 void MBALL_OT_duplicate_metaelems(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Duplicate Metaelements";
-       ot->description= "Delete selected metaelement(s)";
+       ot->name= _("Duplicate Metaelements");
+       ot->description= _("Delete selected metaelement(s)");
        ot->idname= "MBALL_OT_duplicate_metaelems";
 
        /* callback functions */
@@ -329,7 +329,7 @@ void MBALL_OT_duplicate_metaelems(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* to give to transform */
-       RNA_def_enum(ot->srna, "mode", transform_mode_types, TFM_TRANSLATION, "Mode", "");
+       RNA_def_enum(ot->srna, "mode", transform_mode_types, TFM_TRANSLATION, _("Mode"), "");
 }
 
 /***************************** Delete operator *****************************/
@@ -362,8 +362,8 @@ static int delete_metaelems_exec(bContext *C, wmOperator *UNUSED(op))
 void MBALL_OT_delete_metaelems(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Delete";
-       ot->description= "Delete selected metaelement(s)";
+       ot->name= _("Delete");
+       ot->description= _("Delete selected metaelement(s)");
        ot->idname= "MBALL_OT_delete_metaelems";
 
        /* callback functions */
@@ -402,8 +402,8 @@ static int hide_metaelems_exec(bContext *C, wmOperator *op)
 void MBALL_OT_hide_metaelems(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Hide";
-       ot->description= "Hide (un)selected metaelement(s)";
+       ot->name= _("Hide");
+       ot->description= _("Hide (un)selected metaelement(s)");
        ot->idname= "MBALL_OT_hide_metaelems";
 
        /* callback functions */
@@ -443,8 +443,8 @@ static int reveal_metaelems_exec(bContext *C, wmOperator *UNUSED(op))
 void MBALL_OT_reveal_metaelems(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Reveal";
-       ot->description= "Reveal all hidden metaelements";
+       ot->name= _("Reveal");
+       ot->description= _("Reveal all hidden metaelements");
        ot->idname= "MBALL_OT_reveal_metaelems";
        
        /* callback functions */
index 57ab39e32b2310baea263e001cae2cd3939e6b67..39f779738763d94fd188e8a56bede1011fda97be 100644 (file)
@@ -351,7 +351,7 @@ void OBJECT_OT_add(wmOperatorType *ot)
        /* flags */
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
-       RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(object_type_items), 0, "Type", "");
+       RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(object_type_items), 0, _("Type"), "");
 
        ED_object_add_generic_props(ot, TRUE);
 }
@@ -359,18 +359,18 @@ void OBJECT_OT_add(wmOperatorType *ot)
 /********************* Add Effector Operator ********************/
 /* copy from rna_object_force.c*/
 static EnumPropertyItem field_type_items[] = {
-       {PFIELD_FORCE, "FORCE", ICON_FORCE_FORCE, "Force", ""},
-       {PFIELD_WIND, "WIND", ICON_FORCE_WIND, "Wind", ""},
-       {PFIELD_VORTEX, "VORTEX", ICON_FORCE_VORTEX, "Vortex", ""},
-       {PFIELD_MAGNET, "MAGNET", ICON_FORCE_MAGNETIC, "Magnetic", ""},
-       {PFIELD_HARMONIC, "HARMONIC", ICON_FORCE_HARMONIC, "Harmonic", ""},
-       {PFIELD_CHARGE, "CHARGE", ICON_FORCE_CHARGE, "Charge", ""},
-       {PFIELD_LENNARDJ, "LENNARDJ", ICON_FORCE_LENNARDJONES, "Lennard-Jones", ""},
-       {PFIELD_TEXTURE, "TEXTURE", ICON_FORCE_TEXTURE, "Texture", ""},
-       {PFIELD_GUIDE, "GUIDE", ICON_FORCE_CURVE, "Curve Guide", ""},
-       {PFIELD_BOID, "BOID", ICON_FORCE_BOID, "Boid", ""},
-       {PFIELD_TURBULENCE, "TURBULENCE", ICON_FORCE_TURBULENCE, "Turbulence", ""},
-       {PFIELD_DRAG, "DRAG", ICON_FORCE_DRAG, "Drag", ""},
+       {PFIELD_FORCE, "FORCE", ICON_FORCE_FORCE, N_("Force"), ""},
+       {PFIELD_WIND, "WIND", ICON_FORCE_WIND, N_("Wind"), ""},
+       {PFIELD_VORTEX, "VORTEX", ICON_FORCE_VORTEX, N_("Vortex"), ""},
+       {PFIELD_MAGNET, "MAGNET", ICON_FORCE_MAGNETIC, N_("Magnetic"), ""},
+       {PFIELD_HARMONIC, "HARMONIC", ICON_FORCE_HARMONIC, N_("Harmonic"), ""},
+       {PFIELD_CHARGE, "CHARGE", ICON_FORCE_CHARGE, N_("Charge"), ""},
+       {PFIELD_LENNARDJ, "LENNARDJ", ICON_FORCE_LENNARDJONES, N_("Lennard-Jones"), ""},
+       {PFIELD_TEXTURE, "TEXTURE", ICON_FORCE_TEXTURE, N_("Texture"), ""},
+       {PFIELD_GUIDE, "GUIDE", ICON_FORCE_CURVE, N_("Curve Guide"), ""},
+       {PFIELD_BOID, "BOID", ICON_FORCE_BOID, N_("Boid"), ""},
+       {PFIELD_TURBULENCE, "TURBULENCE", ICON_FORCE_TURBULENCE, N_("Turbulence"), ""},
+       {PFIELD_DRAG, "DRAG", ICON_FORCE_DRAG, N_("Drag"), ""},
        {0, NULL, 0, NULL, NULL}};
 
 /* for effector add primitive operators */
@@ -443,7 +443,7 @@ void OBJECT_OT_effector_add(wmOperatorType *ot)
        /* flags */
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
-       ot->prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(field_type_items), 0, "Type", "");
+       ot->prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(field_type_items), 0, _("Type"), "");
 
        ED_object_add_generic_props(ot, TRUE);
 }
@@ -575,7 +575,7 @@ void OBJECT_OT_metaball_add(wmOperatorType *ot)
        /* flags */
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
        
-       RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(metaelem_type_items), 0, "Primitive", "");
+       RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(metaelem_type_items), 0, _("Primitive"), "");
        ED_object_add_generic_props(ot, TRUE);
 }
 
@@ -658,8 +658,8 @@ static int object_armature_add_exec(bContext *C, wmOperator *op)
 void OBJECT_OT_armature_add(wmOperatorType *ot)
 {      
        /* identifiers */
-       ot->name= "Add Armature";
-       ot->description = "Add an armature object to the scene";
+       ot->name= _("Add Armature");
+       ot->description = _("Add an armature object to the scene");
        ot->idname= "OBJECT_OT_armature_add";
        
        /* api callbacks */
@@ -729,7 +729,7 @@ void OBJECT_OT_lamp_add(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       ot->prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(lamp_type_items), 0, "Type", "");
+       ot->prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(lamp_type_items), 0, _("Type"), "");
 
        ED_object_add_generic_props(ot, FALSE);
 }
@@ -786,7 +786,7 @@ void OBJECT_OT_group_instance_add(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       prop= RNA_def_enum(ot->srna, "group", DummyRNA_NULL_items, 0, "Group", "");
+       prop= RNA_def_enum(ot->srna, "group", DummyRNA_NULL_items, 0, _("Group"), "");
        RNA_def_enum_funcs(prop, RNA_group_itemf);
        ot->prop= prop;
        ED_object_add_generic_props(ot, FALSE);
@@ -1717,7 +1717,7 @@ void OBJECT_OT_duplicate(wmOperatorType *ot)
        
        /* to give to transform */
        RNA_def_boolean(ot->srna, "linked", 0, _("Linked"), _("Duplicate object but not object data, linking to the original data"));
-       prop= RNA_def_enum(ot->srna, "mode", transform_mode_types, TFM_TRANSLATION, "Mode", "");
+       prop= RNA_def_enum(ot->srna, "mode", transform_mode_types, TFM_TRANSLATION, _("Mode"), "");
        RNA_def_property_flag(prop, PROP_HIDDEN);
 }
 
index 89ac7800c0f6dc1d4d59d8deffdbebfac87907ca..6cd49ac3861c29b69a834169f1d932bbfb2c391a 100644 (file)
@@ -486,8 +486,8 @@ void object_test_constraints (Object *owner)
 #define EDIT_CONSTRAINT_OWNER_BONE             1
 
 static EnumPropertyItem constraint_owner_items[] = {
-       {EDIT_CONSTRAINT_OWNER_OBJECT, "OBJECT", 0, "Object", "Edit a constraint on the active object"},
-       {EDIT_CONSTRAINT_OWNER_BONE, "BONE", 0, "Bone", "Edit a constraint on the active bone"},
+       {EDIT_CONSTRAINT_OWNER_OBJECT, "OBJECT", 0, N_("Object"), N_("Edit a constraint on the active object")},
+       {EDIT_CONSTRAINT_OWNER_BONE, "BONE", 0, N_("Bone"), N_("Edit a constraint on the active bone")},
        {0, NULL, 0, NULL, NULL}};
 
 
@@ -509,8 +509,8 @@ static int edit_constraint_poll(bContext *C)
 
 static void edit_constraint_properties(wmOperatorType *ot)
 {
-       RNA_def_string(ot->srna, "constraint", "", 32, "Constraint", "Name of the constraint to edit");
-       RNA_def_enum(ot->srna, "owner", constraint_owner_items, 0, "Owner", "The owner of this constraint");
+       RNA_def_string(ot->srna, "constraint", "", 32, _("Constraint"), _("Name of the constraint to edit"));
+       RNA_def_enum(ot->srna, "owner", RNA_enum_items_gettexted(constraint_owner_items), 0, _("Owner"), _("The owner of this constraint"));
 }
 
 static int edit_constraint_invoke_properties(bContext *C, wmOperator *op)
@@ -611,9 +611,9 @@ static int stretchto_reset_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(e
 void CONSTRAINT_OT_stretchto_reset (wmOperatorType *ot)
 {