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:
Diffstat (limited to 'source/blender/editors/animation/keyingsets.c')
-rw-r--r--source/blender/editors/animation/keyingsets.c28
1 files changed, 15 insertions, 13 deletions
diff --git a/source/blender/editors/animation/keyingsets.c b/source/blender/editors/animation/keyingsets.c
index dcd1c3abbde..e36045e84cd 100644
--- a/source/blender/editors/animation/keyingsets.c
+++ b/source/blender/editors/animation/keyingsets.c
@@ -43,6 +43,8 @@
#include "BLI_dynstr.h"
#include "BLI_utildefines.h"
+#include "BLF_api.h"
+
#include "DNA_anim_types.h"
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
@@ -140,9 +142,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;
@@ -187,9 +189,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;
@@ -230,9 +232,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;
@@ -273,9 +275,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;
@@ -371,7 +373,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 */
@@ -382,7 +384,7 @@ void ANIM_OT_keyingset_button_add (wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
- RNA_def_boolean(ot->srna, "all", 1, "All", "Add all elements of the array to a Keying Set.");
+ RNA_def_boolean(ot->srna, "all", 1, _("All"), _("Add all elements of the array to a Keying Set."));
}
/* Remove from KeyingSet Button Operator ------------------------ */
@@ -450,7 +452,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 */
@@ -493,7 +495,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 */
@@ -507,7 +509,7 @@ void ANIM_OT_keying_set_active_set (wmOperatorType *ot)
/* keyingset to use
* - here the type is int not enum, since many of the indices here are determined dynamically
*/
- RNA_def_int(ot->srna, "type", 0, INT_MIN, INT_MAX, "Keying Set Number", "Index (determined internally) of the Keying Set to use", 0, 1);
+ RNA_def_int(ot->srna, "type", 0, INT_MIN, INT_MAX, _("Keying Set Number"), _("Index (determined internally) of the Keying Set to use"), 0, 1);
}
/* ******************************************* */