diff options
Diffstat (limited to 'source/blender/editors/animation/anim_markers.c')
-rw-r--r-- | source/blender/editors/animation/anim_markers.c | 54 |
1 files changed, 28 insertions, 26 deletions
diff --git a/source/blender/editors/animation/anim_markers.c b/source/blender/editors/animation/anim_markers.c index 5345fcd756d..ab38723bbcc 100644 --- a/source/blender/editors/animation/anim_markers.c +++ b/source/blender/editors/animation/anim_markers.c @@ -43,6 +43,8 @@ #include "BLI_blenlib.h" #include "BLI_utildefines.h" +#include "BLF_api.h" + #include "BKE_context.h" #include "BKE_fcurve.h" #include "BKE_main.h" @@ -575,8 +577,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 */ @@ -878,8 +880,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 */ @@ -893,7 +895,7 @@ static void MARKER_OT_move(wmOperatorType *ot) ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING|OPTYPE_GRAB_POINTER; /* rna storage */ - RNA_def_int(ot->srna, "frames", 0, INT_MIN, INT_MAX, "Frames", "", INT_MIN, INT_MAX); + RNA_def_int(ot->srna, "frames", 0, INT_MIN, INT_MAX, _("Frames"), "", INT_MIN, INT_MAX); } /* ************************** duplicate markers *************************** */ @@ -973,8 +975,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 */ @@ -988,7 +990,7 @@ static void MARKER_OT_duplicate(wmOperatorType *ot) ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; /* rna storage */ - RNA_def_int(ot->srna, "frames", 0, INT_MIN, INT_MAX, "Frames", "", INT_MIN, INT_MAX); + RNA_def_int(ot->srna, "frames", 0, INT_MIN, INT_MAX, _("Frames"), "", INT_MIN, INT_MAX); } /* ************************** selection ************************************/ @@ -1096,8 +1098,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 */ @@ -1107,9 +1109,9 @@ static void MARKER_OT_select(wmOperatorType *ot) /* flags */ ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; - RNA_def_boolean(ot->srna, "extend", 0, "Extend", "extend the selection"); + RNA_def_boolean(ot->srna, "extend", 0, _("Extend"), _("extend the selection")); #ifdef DURIAN_CAMERA_SWITCH - RNA_def_boolean(ot->srna, "camera", 0, "Camera", "Select the camera"); + RNA_def_boolean(ot->srna, "camera", 0, _("Camera"), _("Select the camera")); #endif } @@ -1180,8 +1182,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 */ @@ -1237,8 +1239,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 */ @@ -1290,8 +1292,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 */ @@ -1338,8 +1340,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 */ @@ -1351,7 +1353,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"); } @@ -1391,8 +1393,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 */ @@ -1404,7 +1406,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; @@ -1441,8 +1443,8 @@ static int ed_marker_camera_bind_exec(bContext *C, wmOperator *UNUSED(op)) static void MARKER_OT_camera_bind(wmOperatorType *ot) { /* identifiers */ - ot->name= "Bind Camera to Markers"; - ot->description= "Bind the active camera to selected markers(s)"; + ot->name= _("Bind Camera to Markers"); + ot->description= _("Bind the active camera to selected markers(s)"); ot->idname= "MARKER_OT_camera_bind"; /* api callbacks */ |