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/space_node/node_select.c')
-rw-r--r--source/blender/editors/space_node/node_select.c42
1 files changed, 22 insertions, 20 deletions
diff --git a/source/blender/editors/space_node/node_select.c b/source/blender/editors/space_node/node_select.c
index 1abcaccc939..36525bc517c 100644
--- a/source/blender/editors/space_node/node_select.c
+++ b/source/blender/editors/space_node/node_select.c
@@ -41,6 +41,8 @@
#include "BLI_rect.h"
#include "BLI_utildefines.h"
+#include "BLF_api.h"
+
#include "ED_screen.h"
#include "ED_types.h"
@@ -134,9 +136,9 @@ static int node_select_invoke(bContext *C, wmOperator *op, wmEvent *event)
void NODE_OT_select(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Select";
+ ot->name= _("Select");
ot->idname= "NODE_OT_select";
- ot->description= "Select node under cursor";
+ ot->description= _("Select node under cursor");
/* api callbacks */
ot->invoke= node_select_invoke;
@@ -146,9 +148,9 @@ void NODE_OT_select(wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
- RNA_def_int(ot->srna, "mouse_x", 0, INT_MIN, INT_MAX, "Mouse X", "", INT_MIN, INT_MAX);
- RNA_def_int(ot->srna, "mouse_y", 0, INT_MIN, INT_MAX, "Mouse Y", "", INT_MIN, INT_MAX);
- RNA_def_boolean(ot->srna, "extend", 0, "Extend", "");
+ RNA_def_int(ot->srna, "mouse_x", 0, INT_MIN, INT_MAX, _("Mouse X"), "", INT_MIN, INT_MAX);
+ RNA_def_int(ot->srna, "mouse_y", 0, INT_MIN, INT_MAX, _("Mouse Y"), "", INT_MIN, INT_MAX);
+ RNA_def_boolean(ot->srna, "extend", 0, _("Extend"), "");
}
/* ****** Border Select ****** */
@@ -207,9 +209,9 @@ static int node_border_select_invoke(bContext *C, wmOperator *op, wmEvent *event
void NODE_OT_select_border(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Border Select";
+ ot->name= _("Border Select");
ot->idname= "NODE_OT_select_border";
- ot->description= "Use box selection to select nodes";
+ ot->description= _("Use box selection to select nodes");
/* api callbacks */
ot->invoke= node_border_select_invoke;
@@ -224,7 +226,7 @@ void NODE_OT_select_border(wmOperatorType *ot)
/* rna */
WM_operator_properties_gesture_border(ot, FALSE);
- RNA_def_boolean(ot->srna, "tweak", 0, "Tweak", "Only activate when mouse is not over a node - useful for tweak gesture");
+ RNA_def_boolean(ot->srna, "tweak", 0, _("Tweak"), _("Only activate when mouse is not over a node - useful for tweak gesture"));
}
/* ****** Select/Deselect All ****** */
@@ -256,8 +258,8 @@ static int node_select_all_exec(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_select_all(wmOperatorType *ot)
{
/* identifiers */
- ot->name = "Select or Deselect All";
- ot->description = "(De)select all nodes";
+ ot->name = _("Select or Deselect All");
+ ot->description = _("(De)select all nodes");
ot->idname = "NODE_OT_select_all";
/* api callbacks */
@@ -296,8 +298,8 @@ static int node_select_linked_to_exec(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_select_linked_to(wmOperatorType *ot)
{
/* identifiers */
- ot->name = "Select Linked To";
- ot->description = "Select nodes linked to the selected ones";
+ ot->name = _("Select Linked To");
+ ot->description = _("Select nodes linked to the selected ones");
ot->idname = "NODE_OT_select_linked_to";
/* api callbacks */
@@ -336,8 +338,8 @@ static int node_select_linked_from_exec(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_select_linked_from(wmOperatorType *ot)
{
/* identifiers */
- ot->name = "Select Linked From";
- ot->description = "Select nodes linked from the selected ones";
+ ot->name = _("Select Linked From");
+ ot->description = _("Select nodes linked from the selected ones");
ot->idname = "NODE_OT_select_linked_from";
/* api callbacks */
@@ -362,8 +364,8 @@ static int node_select_same_type_exec(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_select_same_type(wmOperatorType *ot)
{
/* identifiers */
- ot->name = "Select Same Type";
- ot->description = "Select all the same type";
+ ot->name = _("Select Same Type");
+ ot->description = _("Select all the same type");
ot->idname = "NODE_OT_select_same_type";
/* api callbacks */
@@ -388,8 +390,8 @@ static int node_select_same_type_next_exec(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_select_same_type_next(wmOperatorType *ot)
{
/* identifiers */
- ot->name = "Select Same Type Next";
- ot->description = "Select the next node of the same type.";
+ ot->name = _("Select Same Type Next");
+ ot->description = _("Select the next node of the same type.");
ot->idname = "NODE_OT_select_same_type_next";
/* api callbacks */
@@ -412,8 +414,8 @@ static int node_select_same_type_prev_exec(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_select_same_type_prev(wmOperatorType *ot)
{
/* identifiers */
- ot->name = "Select Same Type Prev";
- ot->description = "Select the prev node of the same type.";
+ ot->name = _("Select Same Type Prev");
+ ot->description = _("Select the prev node of the same type.");
ot->idname = "NODE_OT_select_same_type_prev";
/* api callbacks */