I18n: disambiguate a few messages #107139

Merged
Bastien Montagne merged 2 commits from pioverfour/blender:dp_disambiguate into main 2023-05-16 14:52:12 +02:00
7 changed files with 15 additions and 1 deletions

View File

@ -148,7 +148,7 @@ class BONE_PT_curved(BoneButtonsPanel, Panel):
col = topcol.column(align=True)
col.prop(bbone, "bbone_rollin", text="Roll In")
col.prop(bbone, "bbone_rollout", text="Out")
col.prop(bbone, "bbone_rollout", text="Out", text_ctxt=i18n_contexts.id_armature)
col.prop(bone, "use_endroll_as_inroll")
col = topcol.column(align=True)

View File

@ -200,6 +200,7 @@ void DPAINT_OT_type_toggle(wmOperatorType *ot)
MOD_DYNAMICPAINT_TYPE_CANVAS,
"Type",
"");
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_SIMULATION);
ot->prop = prop;
}

View File

@ -1686,6 +1686,7 @@ static void rna_def_gpencil_options(BlenderRNA *brna)
RNA_def_property_enum_sdna(prop, NULL, "icon_id");
RNA_def_property_enum_items(prop, rna_enum_gpencil_brush_sculpt_icons_items);
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_GPENCIL);
RNA_def_property_ui_text(prop, "Grease Pencil Icon", "");
prop = RNA_def_property(srna, "gpencil_weight_icon", PROP_ENUM, PROP_NONE);
@ -2573,6 +2574,7 @@ static void rna_def_brush(BlenderRNA *brna)
RNA_def_property_enum_sdna(prop, NULL, "gpencil_sculpt_tool");
RNA_def_property_enum_items(prop, rna_enum_brush_gpencil_sculpt_types_items);
RNA_def_property_ui_text(prop, "Grease Pencil Sculpt Paint Tool", "");
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_GPENCIL);
Review

Don't understand the need for this change (and the one above)? Doubt there is any conflict with any other usage/meanings here?

Don't understand the need for this change (and the one above)? Doubt there is any conflict with any other usage/meanings here?
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
prop = RNA_def_property(srna, "gpencil_weight_tool", PROP_ENUM, PROP_NONE);
@ -2627,6 +2629,7 @@ static void rna_def_brush(BlenderRNA *brna)
prop = RNA_def_property(srna, "elastic_deform_type", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_items(prop, brush_elastic_deform_type_items);
RNA_def_property_ui_text(prop, "Deformation", "Deformation type that is used in the brush");
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_BRUSH);
RNA_def_property_update(prop, 0, "rna_Brush_update");
prop = RNA_def_property(srna, "snake_hook_deform_type", PROP_ENUM, PROP_NONE);
@ -2677,6 +2680,7 @@ static void rna_def_brush(BlenderRNA *brna)
prop = RNA_def_property(srna, "boundary_deform_type", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_items(prop, brush_boundary_deform_type_items);
RNA_def_property_ui_text(prop, "Deformation", "Deformation type that is used in the brush");
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_BRUSH);
RNA_def_property_update(prop, 0, "rna_Brush_update");
prop = RNA_def_property(srna, "pose_deform_type", PROP_ENUM, PROP_NONE);

View File

@ -667,6 +667,7 @@ static void rna_def_material_greasepencil(BlenderRNA *brna)
RNA_def_property_enum_bitflag_sdna(prop, NULL, "stroke_style");
RNA_def_property_enum_items(prop, stroke_style_items);
RNA_def_property_ui_text(prop, "Stroke Style", "Select style used to draw strokes");
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_GPENCIL);
RNA_def_property_update(prop, NC_GPENCIL | ND_SHADING, "rna_MaterialGpencil_update");
/* stroke image texture */
@ -683,6 +684,7 @@ static void rna_def_material_greasepencil(BlenderRNA *brna)
RNA_def_property_enum_bitflag_sdna(prop, NULL, "fill_style");
RNA_def_property_enum_items(prop, fill_style_items);
RNA_def_property_ui_text(prop, "Fill Style", "Select style used to fill strokes");
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_GPENCIL);
RNA_def_property_update(prop, NC_GPENCIL | ND_SHADING, "rna_MaterialGpencil_update");
/* gradient type */
@ -828,6 +830,7 @@ void RNA_def_material(BlenderRNA *brna)
prop = RNA_def_property(srna, "blend_method", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_items(prop, prop_eevee_blend_items);
RNA_def_property_ui_text(prop, "Blend Mode", "Blend Mode for Transparent Faces");
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_MATERIAL);
RNA_def_property_update(prop, 0, "rna_Material_draw_update");
prop = RNA_def_property(srna, "shadow_method", PROP_ENUM, PROP_NONE);

View File

@ -3989,6 +3989,7 @@ static void rna_def_modifier_dynamic_paint(BlenderRNA *brna)
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
RNA_def_property_enum_sdna(prop, NULL, "type");
RNA_def_property_enum_items(prop, rna_enum_prop_dynamicpaint_type_items);
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_SIMULATION);
RNA_def_property_ui_text(prop, "Type", "");
RNA_define_lib_overridable(false);
@ -4497,6 +4498,7 @@ static void rna_def_modifier_simpledeform(BlenderRNA *brna)
RNA_def_property_enum_sdna(prop, NULL, "mode");
RNA_def_property_enum_items(prop, simple_deform_mode_items);
RNA_def_property_ui_text(prop, "Mode", "");
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_OPERATOR_DEFAULT);
RNA_def_property_update(prop, 0, "rna_Modifier_update");
prop = RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE);

View File

@ -5926,6 +5926,7 @@ static void def_sh_tex_wireframe(StructRNA *srna)
prop = RNA_def_property(srna, "use_pixel_size", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "custom1", 1);
RNA_def_property_ui_text(prop, "Pixel Size", "Use screen pixel size instead of world units");
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_UNIT);
RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update");
}

View File

@ -6,6 +6,8 @@
#include "BLI_math.h"
#include "BLT_translation.h"
#include "DNA_space_types.h"
#include "DNA_view3d_types.h"
#include "DNA_windowmanager_types.h"
@ -2018,6 +2020,7 @@ static void rna_def_xr_session_settings(BlenderRNA *brna)
RNA_def_property_enum_items(prop, controller_draw_styles);
RNA_def_property_ui_text(
prop, "Controller Draw Style", "Style to use when drawing VR controllers");
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_COLOR);
RNA_def_property_update(prop, NC_WM | ND_XR_DATA_CHANGED, NULL);
prop = RNA_def_property(srna, "clip_start", PROP_FLOAT, PROP_DISTANCE);