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/metaball/mball_edit.c')
-rw-r--r--source/blender/editors/metaball/mball_edit.c36
1 files changed, 19 insertions, 17 deletions
diff --git a/source/blender/editors/metaball/mball_edit.c b/source/blender/editors/metaball/mball_edit.c
index b007e30422d..c14f57d6c8c 100644
--- a/source/blender/editors/metaball/mball_edit.c
+++ b/source/blender/editors/metaball/mball_edit.c
@@ -42,6 +42,8 @@
#include "BLI_rand.h"
#include "BLI_utildefines.h"
+#include "BLF_api.h"
+
#include "DNA_meta_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
@@ -168,8 +170,8 @@ static int select_all_exec(bContext *C, wmOperator *op)
void MBALL_OT_select_all(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Select or Deselect All";
- ot->description= "Change selection of all meta elements";
+ ot->name= _("Select or Deselect All");
+ ot->description= _("Change selection of all meta elements");
ot->idname= "MBALL_OT_select_all";
/* callback functions */
@@ -209,8 +211,8 @@ static int select_inverse_metaelems_exec(bContext *C, wmOperator *UNUSED(op))
void MBALL_OT_select_inverse_metaelems(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Inverse";
- ot->description= "Select inverse of (un)selected metaelements";
+ ot->name= _("Inverse");
+ ot->description= _("Select inverse of (un)selected metaelements");
ot->idname= "MBALL_OT_select_inverse_metaelems";
/* callback functions */
@@ -255,8 +257,8 @@ static int select_random_metaelems_exec(bContext *C, wmOperator *op)
void MBALL_OT_select_random_metaelems(struct wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Random...";
- ot->description= "Randomly select metaelements";
+ ot->name= _("Random...");
+ ot->description= _("Randomly select metaelements");
ot->idname= "MBALL_OT_select_random_metaelems";
/* callback functions */
@@ -268,7 +270,7 @@ void MBALL_OT_select_random_metaelems(struct wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
- RNA_def_float_percentage(ot->srna, "percent", 0.5f, 0.0f, 1.0f, "Percent", "Percentage of metaelems to select randomly.", 0.0001f, 1.0f);
+ RNA_def_float_percentage(ot->srna, "percent", 0.5f, 0.0f, 1.0f, _("Percent"), _("Percentage of metaelems to select randomly."), 0.0001f, 1.0f);
}
/***************************** Duplicate operator *****************************/
@@ -314,8 +316,8 @@ static int duplicate_metaelems_invoke(bContext *C, wmOperator *op, wmEvent *UNUS
void MBALL_OT_duplicate_metaelems(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Duplicate Metaelements";
- ot->description= "Delete selected metaelement(s)";
+ ot->name= _("Duplicate Metaelements");
+ ot->description= _("Delete selected metaelement(s)");
ot->idname= "MBALL_OT_duplicate_metaelems";
/* callback functions */
@@ -327,7 +329,7 @@ void MBALL_OT_duplicate_metaelems(wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* to give to transform */
- RNA_def_enum(ot->srna, "mode", transform_mode_types, TFM_TRANSLATION, "Mode", "");
+ RNA_def_enum(ot->srna, "mode", transform_mode_types, TFM_TRANSLATION, _("Mode"), "");
}
/***************************** Delete operator *****************************/
@@ -360,8 +362,8 @@ static int delete_metaelems_exec(bContext *C, wmOperator *UNUSED(op))
void MBALL_OT_delete_metaelems(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Delete";
- ot->description= "Delete selected metaelement(s)";
+ ot->name= _("Delete");
+ ot->description= _("Delete selected metaelement(s)");
ot->idname= "MBALL_OT_delete_metaelems";
/* callback functions */
@@ -400,8 +402,8 @@ static int hide_metaelems_exec(bContext *C, wmOperator *op)
void MBALL_OT_hide_metaelems(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Hide";
- ot->description= "Hide (un)selected metaelement(s)";
+ ot->name= _("Hide");
+ ot->description= _("Hide (un)selected metaelement(s)");
ot->idname= "MBALL_OT_hide_metaelems";
/* callback functions */
@@ -412,7 +414,7 @@ void MBALL_OT_hide_metaelems(wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* props */
- RNA_def_boolean(ot->srna, "unselected", 0, "Unselected", "Hide unselected rather than selected.");
+ RNA_def_boolean(ot->srna, "unselected", 0, _("Unselected"), _("Hide unselected rather than selected."));
}
/***************************** Unhide operator *****************************/
@@ -441,8 +443,8 @@ static int reveal_metaelems_exec(bContext *C, wmOperator *UNUSED(op))
void MBALL_OT_reveal_metaelems(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Reveal";
- ot->description= "Reveal all hidden metaelements";
+ ot->name= _("Reveal");
+ ot->description= _("Reveal all hidden metaelements");
ot->idname= "MBALL_OT_reveal_metaelems";
/* callback functions */