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/physics/particle_object.c')
-rw-r--r--source/blender/editors/physics/particle_object.c58
1 files changed, 30 insertions, 28 deletions
diff --git a/source/blender/editors/physics/particle_object.c b/source/blender/editors/physics/particle_object.c
index 8ec95e9b107..8392c25f46e 100644
--- a/source/blender/editors/physics/particle_object.c
+++ b/source/blender/editors/physics/particle_object.c
@@ -43,6 +43,8 @@
#include "BLI_listbase.h"
#include "BLI_utildefines.h"
+#include "BLF_api.h"
+
#include "BKE_context.h"
#include "BKE_depsgraph.h"
#include "BKE_DerivedMesh.h"
@@ -85,9 +87,9 @@ static int particle_system_add_exec(bContext *C, wmOperator *UNUSED(op))
void OBJECT_OT_particle_system_add(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Add Particle System Slot";
+ ot->name= _("Add Particle System Slot");
ot->idname= "OBJECT_OT_particle_system_add";
- ot->description="Add a particle system";
+ ot->description=_("Add a particle system");
/* api callbacks */
ot->poll= ED_operator_object_active_editable;
@@ -124,9 +126,9 @@ static int particle_system_remove_exec(bContext *C, wmOperator *UNUSED(op))
void OBJECT_OT_particle_system_remove(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Remove Particle System Slot";
+ ot->name= _("Remove Particle System Slot");
ot->idname= "OBJECT_OT_particle_system_remove";
- ot->description="Remove the selected particle system";
+ ot->description=_("Remove the selected particle system");
/* api callbacks */
ot->poll= ED_operator_object_active_editable;
@@ -183,9 +185,9 @@ static int new_particle_settings_exec(bContext *C, wmOperator *UNUSED(op))
void PARTICLE_OT_new(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "New Particle Settings";
+ ot->name= _("New Particle Settings");
ot->idname= "PARTICLE_OT_new";
- ot->description="Add new particle settings";
+ ot->description=_("Add new particle settings");
/* api callbacks */
ot->exec= new_particle_settings_exec;
@@ -232,9 +234,9 @@ static int new_particle_target_exec(bContext *C, wmOperator *UNUSED(op))
void PARTICLE_OT_new_target(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "New Particle Target";
+ ot->name= _("New Particle Target");
ot->idname= "PARTICLE_OT_new_target";
- ot->description="Add a new particle target";
+ ot->description=_("Add a new particle target");
/* api callbacks */
ot->exec= new_particle_target_exec;
@@ -281,9 +283,9 @@ static int remove_particle_target_exec(bContext *C, wmOperator *UNUSED(op))
void PARTICLE_OT_target_remove(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Remove Particle Target";
+ ot->name= _("Remove Particle Target");
ot->idname= "PARTICLE_OT_target_remove";
- ot->description="Remove the selected particle target";
+ ot->description=_("Remove the selected particle target");
/* api callbacks */
ot->exec= remove_particle_target_exec;
@@ -321,9 +323,9 @@ static int target_move_up_exec(bContext *C, wmOperator *UNUSED(op))
void PARTICLE_OT_target_move_up(wmOperatorType *ot)
{
- ot->name= "Move Up Target";
+ ot->name= _("Move Up Target");
ot->idname= "PARTICLE_OT_target_move_up";
- ot->description= "Move particle target up in the list";
+ ot->description= _("Move particle target up in the list");
ot->exec= target_move_up_exec;
@@ -359,9 +361,9 @@ static int target_move_down_exec(bContext *C, wmOperator *UNUSED(op))
void PARTICLE_OT_target_move_down(wmOperatorType *ot)
{
- ot->name= "Move Down Target";
+ ot->name= _("Move Down Target");
ot->idname= "PARTICLE_OT_target_move_down";
- ot->description= "Move particle target down in the list";
+ ot->description= _("Move particle target down in the list");
ot->exec= target_move_down_exec;
@@ -397,9 +399,9 @@ static int dupliob_move_up_exec(bContext *C, wmOperator *UNUSED(op))
void PARTICLE_OT_dupliob_move_up(wmOperatorType *ot)
{
- ot->name= "Move Up Dupli Object";
+ ot->name= _("Move Up Dupli Object");
ot->idname= "PARTICLE_OT_dupliob_move_up";
- ot->description= "Move dupli object up in the list";
+ ot->description= _("Move dupli object up in the list");
ot->exec= dupliob_move_up_exec;
@@ -437,9 +439,9 @@ static int copy_particle_dupliob_exec(bContext *C, wmOperator *UNUSED(op))
void PARTICLE_OT_dupliob_copy(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Copy Particle Dupliob";
+ ot->name= _("Copy Particle Dupliob");
ot->idname= "PARTICLE_OT_dupliob_copy";
- ot->description="Duplicate the current dupliobject";
+ ot->description=_("Duplicate the current dupliobject");
/* api callbacks */
ot->exec= copy_particle_dupliob_exec;
@@ -480,9 +482,9 @@ static int remove_particle_dupliob_exec(bContext *C, wmOperator *UNUSED(op))
void PARTICLE_OT_dupliob_remove(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Remove Particle Dupliobject";
+ ot->name= _("Remove Particle Dupliobject");
ot->idname= "PARTICLE_OT_dupliob_remove";
- ot->description="Remove the selected dupliobject";
+ ot->description=_("Remove the selected dupliobject");
/* api callbacks */
ot->exec= remove_particle_dupliob_exec;
@@ -519,9 +521,9 @@ static int dupliob_move_down_exec(bContext *C, wmOperator *UNUSED(op))
void PARTICLE_OT_dupliob_move_down(wmOperatorType *ot)
{
- ot->name= "Move Down Dupli Object";
+ ot->name= _("Move Down Dupli Object");
ot->idname= "PARTICLE_OT_dupliob_move_down";
- ot->description= "Move dupli object down in the list";
+ ot->description= _("Move dupli object down in the list");
ot->exec= dupliob_move_down_exec;
@@ -609,8 +611,8 @@ static int disconnect_hair_exec(bContext *C, wmOperator *op)
void PARTICLE_OT_disconnect_hair(wmOperatorType *ot)
{
- ot->name= "Disconnect Hair";
- ot->description= "Disconnect hair from the emitter mesh";
+ ot->name= _("Disconnect Hair");
+ ot->description= _("Disconnect hair from the emitter mesh");
ot->idname= "PARTICLE_OT_disconnect_hair";
ot->exec= disconnect_hair_exec;
@@ -618,7 +620,7 @@ void PARTICLE_OT_disconnect_hair(wmOperatorType *ot)
/* flags */
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
- RNA_def_boolean(ot->srna, "all", 0, "All hair", "Disconnect all hair systems from the emitter mesh");
+ RNA_def_boolean(ot->srna, "all", 0, _("All hair"), _("Disconnect all hair systems from the emitter mesh"));
}
static void connect_hair(Scene *scene, Object *ob, ParticleSystem *psys)
@@ -747,8 +749,8 @@ static int connect_hair_exec(bContext *C, wmOperator *op)
void PARTICLE_OT_connect_hair(wmOperatorType *ot)
{
- ot->name= "Connect Hair";
- ot->description= "Connect hair to the emitter mesh";
+ ot->name= _("Connect Hair");
+ ot->description= _("Connect hair to the emitter mesh");
ot->idname= "PARTICLE_OT_connect_hair";
ot->exec= connect_hair_exec;
@@ -756,6 +758,6 @@ void PARTICLE_OT_connect_hair(wmOperatorType *ot)
/* flags */
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
- RNA_def_boolean(ot->srna, "all", 0, "All hair", "Connect all hair systems to the emitter mesh");
+ RNA_def_boolean(ot->srna, "all", 0, _("All hair"), _("Connect all hair systems to the emitter mesh"));
}