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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Xiangquan <xiaoxiangquan@gmail.com>2011-07-02 07:17:09 +0400
committerXiao Xiangquan <xiaoxiangquan@gmail.com>2011-07-02 07:17:09 +0400
commit9b8538c69c14aaf9b991ae23e5faa6429c701c37 (patch)
treef4e1bcddf227dba241779a866d5028a8541dcc93 /source/blender/editors/animation
parent79c129647e2a8c5d5efd2fc1226e3980f356e663 (diff)
3D view, graph editor, etc. done
Diffstat (limited to 'source/blender/editors/animation')
-rw-r--r--source/blender/editors/animation/anim_channels_edit.c94
-rw-r--r--source/blender/editors/animation/anim_markers.c40
-rw-r--r--source/blender/editors/animation/anim_ops.c12
-rw-r--r--source/blender/editors/animation/keyframing.c24
-rw-r--r--source/blender/editors/animation/keyingsets.c22
5 files changed, 96 insertions, 96 deletions
diff --git a/source/blender/editors/animation/anim_channels_edit.c b/source/blender/editors/animation/anim_channels_edit.c
index 8efa4847452..67f2bdf452a 100644
--- a/source/blender/editors/animation/anim_channels_edit.c
+++ b/source/blender/editors/animation/anim_channels_edit.c
@@ -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;
diff --git a/source/blender/editors/animation/anim_markers.c b/source/blender/editors/animation/anim_markers.c
index ce3110dab3d..2fd481b9d86 100644
--- a/source/blender/editors/animation/anim_markers.c
+++ b/source/blender/editors/animation/anim_markers.c
@@ -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;
diff --git a/source/blender/editors/animation/anim_ops.c b/source/blender/editors/animation/anim_ops.c
index 1a69f88b382..e3438032fec 100644
--- a/source/blender/editors/animation/anim_ops.c
+++ b/source/blender/editors/animation/anim_ops.c
@@ -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;
diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c
index 5c4a79217c2..deb21719369 100644
--- a/source/blender/editors/animation/keyframing.c
+++ b/source/blender/editors/animation/keyframing.c
@@ -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 */
diff --git a/source/blender/editors/animation/keyingsets.c b/source/blender/editors/animation/keyingsets.c
index c04fdc3f82c..2a64894ca2a 100644
--- a/source/blender/editors/animation/keyingsets.c
+++ b/source/blender/editors/animation/keyingsets.c
@@ -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 */