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/render/render_shading.c')
-rw-r--r--source/blender/editors/render/render_shading.c84
1 files changed, 43 insertions, 41 deletions
diff --git a/source/blender/editors/render/render_shading.c b/source/blender/editors/render/render_shading.c
index cfed2750e18..67f828008e3 100644
--- a/source/blender/editors/render/render_shading.c
+++ b/source/blender/editors/render/render_shading.c
@@ -50,6 +50,8 @@
#include "BLI_listbase.h"
#include "BLI_utildefines.h"
+#include "BLF_api.h"
+
#include "BKE_animsys.h"
#include "BKE_context.h"
#include "BKE_depsgraph.h"
@@ -106,9 +108,9 @@ static int material_slot_add_exec(bContext *C, wmOperator *UNUSED(op))
void OBJECT_OT_material_slot_add(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Add Material Slot";
+ ot->name= _("Add Material Slot");
ot->idname= "OBJECT_OT_material_slot_add";
- ot->description="Add a new material slot";
+ ot->description=_("Add a new material slot");
/* api callbacks */
ot->exec= material_slot_add_exec;
@@ -142,9 +144,9 @@ static int material_slot_remove_exec(bContext *C, wmOperator *op)
void OBJECT_OT_material_slot_remove(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Remove Material Slot";
+ ot->name= _("Remove Material Slot");
ot->idname= "OBJECT_OT_material_slot_remove";
- ot->description="Remove the selected material slot";
+ ot->description=_("Remove the selected material slot");
/* api callbacks */
ot->exec= material_slot_remove_exec;
@@ -202,9 +204,9 @@ static int material_slot_assign_exec(bContext *C, wmOperator *UNUSED(op))
void OBJECT_OT_material_slot_assign(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Assign Material Slot";
+ ot->name= _("Assign Material Slot");
ot->idname= "OBJECT_OT_material_slot_assign";
- ot->description="Assign the material in the selected material slot to the selected vertices";
+ ot->description=_("Assign the material in the selected material slot to the selected vertices");
/* api callbacks */
ot->exec= material_slot_assign_exec;
@@ -289,9 +291,9 @@ static int material_slot_select_exec(bContext *C, wmOperator *UNUSED(op))
void OBJECT_OT_material_slot_select(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Select Material Slot";
+ ot->name= _("Select Material Slot");
ot->idname= "OBJECT_OT_material_slot_select";
- ot->description="Select vertices assigned to the selected material slot";
+ ot->description=_("Select vertices assigned to the selected material slot");
/* api callbacks */
ot->exec= material_slot_select_exec;
@@ -308,9 +310,9 @@ static int material_slot_deselect_exec(bContext *C, wmOperator *UNUSED(op))
void OBJECT_OT_material_slot_deselect(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Deselect Material Slot";
+ ot->name= _("Deselect Material Slot");
ot->idname= "OBJECT_OT_material_slot_deselect";
- ot->description="Deselect vertices assigned to the selected material slot";
+ ot->description=_("Deselect vertices assigned to the selected material slot");
/* api callbacks */
ot->exec= material_slot_deselect_exec;
@@ -348,9 +350,9 @@ static int material_slot_copy_exec(bContext *C, wmOperator *UNUSED(op))
void OBJECT_OT_material_slot_copy(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Copy Material to Others";
+ ot->name= _("Copy Material to Others");
ot->idname= "OBJECT_OT_material_slot_copy";
- ot->description="Copies materials to other selected objects";
+ ot->description=_("Copies materials to other selected objects");
/* api callbacks */
ot->exec= material_slot_copy_exec;
@@ -394,9 +396,9 @@ static int new_material_exec(bContext *C, wmOperator *UNUSED(op))
void MATERIAL_OT_new(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "New Material";
+ ot->name= _("New Material");
ot->idname= "MATERIAL_OT_new";
- ot->description="Add a new material";
+ ot->description=_("Add a new material");
/* api callbacks */
ot->exec= new_material_exec;
@@ -440,9 +442,9 @@ static int new_texture_exec(bContext *C, wmOperator *UNUSED(op))
void TEXTURE_OT_new(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "New Texture";
+ ot->name= _("New Texture");
ot->idname= "TEXTURE_OT_new";
- ot->description="Add a new texture";
+ ot->description=_("Add a new texture");
/* api callbacks */
ot->exec= new_texture_exec;
@@ -486,9 +488,9 @@ static int new_world_exec(bContext *C, wmOperator *UNUSED(op))
void WORLD_OT_new(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "New World";
+ ot->name= _("New World");
ot->idname= "WORLD_OT_new";
- ot->description= "Add a new world";
+ ot->description= _("Add a new world");
/* api callbacks */
ot->exec= new_world_exec;
@@ -514,9 +516,9 @@ static int render_layer_add_exec(bContext *C, wmOperator *UNUSED(op))
void SCENE_OT_render_layer_add(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Add Render Layer";
+ ot->name= _("Add Render Layer");
ot->idname= "SCENE_OT_render_layer_add";
- ot->description="Add a render layer";
+ ot->description=_("Add a render layer");
/* api callbacks */
ot->exec= render_layer_add_exec;
@@ -560,9 +562,9 @@ static int render_layer_remove_exec(bContext *C, wmOperator *UNUSED(op))
void SCENE_OT_render_layer_remove(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Remove Render Layer";
+ ot->name= _("Remove Render Layer");
ot->idname= "SCENE_OT_render_layer_remove";
- ot->description="Remove the selected render layer";
+ ot->description=_("Remove the selected render layer");
/* api callbacks */
ot->exec= render_layer_remove_exec;
@@ -638,15 +640,15 @@ static int texture_slot_move(bContext *C, wmOperator *op)
void TEXTURE_OT_slot_move(wmOperatorType *ot)
{
static EnumPropertyItem slot_move[] = {
- {-1, "UP", 0, "Up", ""},
- {1, "DOWN", 0, "Down", ""},
+ {-1, "UP", 0, N_("Up"), ""},
+ {1, "DOWN", 0, N_("Down"), ""},
{0, NULL, 0, NULL, NULL}
};
/* identifiers */
- ot->name= "Move Texture Slot";
+ ot->name= _("Move Texture Slot");
ot->idname= "TEXTURE_OT_slot_move";
- ot->description="Move texture slots up and down";
+ ot->description=_("Move texture slots up and down");
/* api callbacks */
ot->exec= texture_slot_move;
@@ -654,7 +656,7 @@ void TEXTURE_OT_slot_move(wmOperatorType *ot)
/* flags */
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
- RNA_def_enum(ot->srna, "type", slot_move, 0, "Type", "");
+ RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(slot_move), 0, _("Type"), "");
}
@@ -777,9 +779,9 @@ static int envmap_save_poll(bContext *C)
void TEXTURE_OT_envmap_save(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Save Environment Map";
+ ot->name= _("Save Environment Map");
ot->idname= "TEXTURE_OT_envmap_save";
- ot->description="Save the current generated Environment map to an image file";
+ ot->description=_("Save the current generated Environment map to an image file");
/* api callbacks */
ot->exec= envmap_save_exec;
@@ -822,9 +824,9 @@ static int envmap_clear_poll(bContext *C)
void TEXTURE_OT_envmap_clear(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Clear Environment Map";
+ ot->name= _("Clear Environment Map");
ot->idname= "TEXTURE_OT_envmap_clear";
- ot->description="Discard the environment map and free it from memory";
+ ot->description=_("Discard the environment map and free it from memory");
/* api callbacks */
ot->exec= envmap_clear_exec;
@@ -851,9 +853,9 @@ static int envmap_clear_all_exec(bContext *C, wmOperator *UNUSED(op))
void TEXTURE_OT_envmap_clear_all(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Clear All Environment Maps";
+ ot->name= _("Clear All Environment Maps");
ot->idname= "TEXTURE_OT_envmap_clear_all";
- ot->description="Discard all environment maps in the .blend file and free them from memory";
+ ot->description=_("Discard all environment maps in the .blend file and free them from memory");
/* api callbacks */
ot->exec= envmap_clear_all_exec;
@@ -883,9 +885,9 @@ static int copy_material_exec(bContext *C, wmOperator *UNUSED(op))
void MATERIAL_OT_copy(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Copy Material";
+ ot->name= _("Copy Material");
ot->idname= "MATERIAL_OT_copy";
- ot->description="Copy the material settings and nodes";
+ ot->description=_("Copy the material settings and nodes");
/* api callbacks */
ot->exec= copy_material_exec;
@@ -911,9 +913,9 @@ static int paste_material_exec(bContext *C, wmOperator *UNUSED(op))
void MATERIAL_OT_paste(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Paste Material";
+ ot->name= _("Paste Material");
ot->idname= "MATERIAL_OT_paste";
- ot->description="Paste the material settings and nodes";
+ ot->description=_("Paste the material settings and nodes");
/* api callbacks */
ot->exec= paste_material_exec;
@@ -1030,9 +1032,9 @@ static int copy_mtex_poll(bContext *C)
void TEXTURE_OT_slot_copy(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Copy Texture Slot Settings";
+ ot->name= _("Copy Texture Slot Settings");
ot->idname= "TEXTURE_OT_slot_copy";
- ot->description="Copy the material texture settings and nodes";
+ ot->description=_("Copy the material texture settings and nodes");
/* api callbacks */
ot->exec= copy_mtex_exec;
@@ -1075,9 +1077,9 @@ static int paste_mtex_exec(bContext *C, wmOperator *UNUSED(op))
void TEXTURE_OT_slot_paste(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Paste Texture Slot Settings";
+ ot->name= _("Paste Texture Slot Settings");
ot->idname= "TEXTURE_OT_slot_paste";
- ot->description="Copy the texture settings and nodes";
+ ot->description=_("Copy the texture settings and nodes");
/* api callbacks */
ot->exec= paste_mtex_exec;