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/mesh/editmesh_loop.c')
-rw-r--r--source/blender/editors/mesh/editmesh_loop.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/source/blender/editors/mesh/editmesh_loop.c b/source/blender/editors/mesh/editmesh_loop.c
index acbe5ef2144..fbc531d0e92 100644
--- a/source/blender/editors/mesh/editmesh_loop.c
+++ b/source/blender/editors/mesh/editmesh_loop.c
@@ -55,6 +55,8 @@ editmesh_loop: tools with own drawing subloops, select, knife, subdiv
#include "BLI_editVert.h"
#include "BLI_ghash.h"
+#include "BLF_api.h"
+
#include "BKE_context.h"
#include "BKE_depsgraph.h"
#include "BKE_mesh.h"
@@ -447,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}
};
@@ -712,8 +714,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;
@@ -726,14 +728,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);
+ 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);
}
/* ******************************************************* */