I18n: disambiguate and extract a few messages
Disambiguate: - Lower / Upper (case) - Spray (ocean modifier) - Keep Original (clip, grease pencil, object) - Screen [space] (inside some enum items, mostly) - Cast Shadow ("shadow that is cast", not "to cast a shadow") Extract: - Line Art Light Reference Near and Far - Mesh vertex attribute domain: Vertex Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15938
This commit is contained in:
parent
903709c4eb
commit
a869fcd686
|
@ -33,6 +33,8 @@
|
|||
#include "BKE_report.h"
|
||||
#include "BKE_vfont.h"
|
||||
|
||||
#include "BLT_translation.h"
|
||||
|
||||
#include "DEG_depsgraph.h"
|
||||
#include "DEG_depsgraph_query.h"
|
||||
|
||||
|
@ -1964,6 +1966,8 @@ static int set_case_exec(bContext *C, wmOperator *op)
|
|||
|
||||
void FONT_OT_case_set(wmOperatorType *ot)
|
||||
{
|
||||
PropertyRNA *prop;
|
||||
|
||||
/* identifiers */
|
||||
ot->name = "Set Case";
|
||||
ot->description = "Set font case";
|
||||
|
@ -1977,7 +1981,8 @@ void FONT_OT_case_set(wmOperatorType *ot)
|
|||
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
||||
|
||||
/* properties */
|
||||
RNA_def_enum(ot->srna, "case", case_items, CASE_LOWER, "Case", "Lower or upper case");
|
||||
prop = RNA_def_enum(ot->srna, "case", case_items, CASE_LOWER, "Case", "Lower or upper case");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_TEXT);
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
|
|
@ -3986,6 +3986,7 @@ static int gpencil_strokes_reproject_exec(bContext *C, wmOperator *op)
|
|||
|
||||
void GPENCIL_OT_reproject(wmOperatorType *ot)
|
||||
{
|
||||
PropertyRNA *prop;
|
||||
static const EnumPropertyItem reproject_type[] = {
|
||||
{GP_REPROJECT_FRONT, "FRONT", 0, "Front", "Reproject the strokes using the X-Z plane"},
|
||||
{GP_REPROJECT_SIDE, "SIDE", 0, "Side", "Reproject the strokes using the Y-Z plane"},
|
||||
|
@ -4031,12 +4032,13 @@ void GPENCIL_OT_reproject(wmOperatorType *ot)
|
|||
ot->prop = RNA_def_enum(
|
||||
ot->srna, "type", reproject_type, GP_REPROJECT_VIEW, "Projection Type", "");
|
||||
|
||||
RNA_def_boolean(
|
||||
prop = RNA_def_boolean(
|
||||
ot->srna,
|
||||
"keep_original",
|
||||
0,
|
||||
"Keep Original",
|
||||
"Keep original strokes and create a copy before reprojecting instead of reproject them");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_MOVIECLIP);
|
||||
}
|
||||
|
||||
static int gpencil_recalc_geometry_exec(bContext *C, wmOperator *UNUSED(op))
|
||||
|
|
|
@ -4893,12 +4893,13 @@ void MESH_OT_knife_tool(wmOperatorType *ot)
|
|||
KNF_MEASUREMENT_NONE,
|
||||
"Measurements",
|
||||
"Visible distance and angle measurements");
|
||||
RNA_def_enum(ot->srna,
|
||||
prop = RNA_def_enum(ot->srna,
|
||||
"angle_snapping",
|
||||
angle_snapping_items,
|
||||
KNF_CONSTRAIN_ANGLE_MODE_NONE,
|
||||
"Angle Snapping",
|
||||
"Angle snapping mode");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_MESH);
|
||||
|
||||
prop = RNA_def_float(ot->srna,
|
||||
"angle_snapping_increment",
|
||||
|
|
|
@ -3510,11 +3510,12 @@ void OBJECT_OT_convert(wmOperatorType *ot)
|
|||
/* properties */
|
||||
ot->prop = RNA_def_enum(
|
||||
ot->srna, "target", convert_target_items, OB_MESH, "Target", "Type of object to convert to");
|
||||
RNA_def_boolean(ot->srna,
|
||||
"keep_original",
|
||||
false,
|
||||
"Keep Original",
|
||||
"Keep original objects instead of replacing them");
|
||||
prop = RNA_def_boolean(ot->srna,
|
||||
"keep_original",
|
||||
false,
|
||||
"Keep Original",
|
||||
"Keep original objects instead of replacing them");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_OBJECT);
|
||||
|
||||
RNA_def_boolean(
|
||||
ot->srna,
|
||||
|
|
|
@ -1535,6 +1535,7 @@ void CLIP_OT_average_tracks(wmOperatorType *ot)
|
|||
PropertyRNA *prop;
|
||||
|
||||
prop = RNA_def_boolean(ot->srna, "keep_original", 1, "Keep Original", "Keep original tracks");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_MOVIECLIP);
|
||||
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
|
||||
}
|
||||
|
||||
|
|
|
@ -397,7 +397,7 @@ static void edge_types_panel_draw(const bContext *UNUSED(C), Panel *panel)
|
|||
sub = uiLayoutRow(entry, false);
|
||||
uiItemR(sub, ptr, "use_light_contour", 0, IFACE_("Light Contour"), ICON_NONE);
|
||||
|
||||
uiItemR(entry, ptr, "use_shadow", 0, IFACE_("Cast Shadow"), ICON_NONE);
|
||||
uiItemR(entry, ptr, "use_shadow", 0, CTX_IFACE_(BLT_I18NCONTEXT_ID_GPENCIL, "Cast Shadow"), ICON_NONE);
|
||||
|
||||
uiItemL(layout, IFACE_("Options"), ICON_NONE);
|
||||
|
||||
|
@ -442,8 +442,8 @@ static void options_light_reference_draw(const bContext *UNUSED(C), Panel *panel
|
|||
uiItemR(remaining, ptr, "shadow_camera_size", 0, NULL, ICON_NONE);
|
||||
|
||||
uiLayout *col = uiLayoutColumn(remaining, true);
|
||||
uiItemR(col, ptr, "shadow_camera_near", 0, "Near", ICON_NONE);
|
||||
uiItemR(col, ptr, "shadow_camera_far", 0, "Far", ICON_NONE);
|
||||
uiItemR(col, ptr, "shadow_camera_near", 0, IFACE_("Near"), ICON_NONE);
|
||||
uiItemR(col, ptr, "shadow_camera_far", 0, IFACE_("Far"), ICON_NONE);
|
||||
}
|
||||
|
||||
static void options_panel_draw(const bContext *UNUSED(C), Panel *panel)
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
#include "BKE_attribute.h"
|
||||
#include "BKE_customdata.h"
|
||||
|
||||
#include "BLT_translation.h"
|
||||
|
||||
#include "WM_types.h"
|
||||
|
||||
const EnumPropertyItem rna_enum_attribute_type_items[] = {
|
||||
|
@ -194,7 +196,7 @@ const EnumPropertyItem *rna_enum_attribute_domain_itemf(ID *id,
|
|||
int totitem = 0, a;
|
||||
|
||||
static EnumPropertyItem mesh_vertex_domain_item = {
|
||||
ATTR_DOMAIN_POINT, "POINT", 0, "Vertex", "Attribute per point/vertex"};
|
||||
ATTR_DOMAIN_POINT, "POINT", 0, N_("Vertex"), N_("Attribute per point/vertex")};
|
||||
|
||||
for (a = 0; rna_enum_attribute_domain_items[a].identifier; a++) {
|
||||
domain_item = &rna_enum_attribute_domain_items[a];
|
||||
|
|
|
@ -2247,6 +2247,7 @@ static void rna_def_editor(BlenderRNA *brna)
|
|||
prop = RNA_def_property(srna, "proxy_storage", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, editing_storage_items);
|
||||
RNA_def_property_ui_text(prop, "Proxy Storage", "How to store proxies for this project");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_SEQUENCE);
|
||||
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_SEQUENCER, "rna_SequenceEditor_update_cache");
|
||||
|
||||
prop = RNA_def_property(srna, "proxy_dir", PROP_STRING, PROP_DIRPATH);
|
||||
|
|
|
@ -3996,6 +3996,7 @@ static void rna_def_space_view3d_shading(BlenderRNA *brna)
|
|||
prop = RNA_def_property(srna, "cavity_type", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, cavity_type_items);
|
||||
RNA_def_property_ui_text(prop, "Cavity Type", "Way to display the cavity shading");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_EDITOR_VIEW3D);
|
||||
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D | NS_VIEW3D_SHADING, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "curvature_ridge_factor", PROP_FLOAT, PROP_FACTOR);
|
||||
|
|
|
@ -2357,6 +2357,7 @@ static void rna_def_window(BlenderRNA *brna)
|
|||
"rna_Window_screen_set",
|
||||
NULL,
|
||||
"rna_Window_screen_assign_poll");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_SCREEN);
|
||||
RNA_def_property_flag(prop, PROP_NEVER_NULL | PROP_EDITABLE | PROP_CONTEXT_UPDATE);
|
||||
RNA_def_property_update(prop, 0, "rna_workspace_screen_update");
|
||||
|
||||
|
|
|
@ -592,7 +592,7 @@ static void spray_panel_draw_header(const bContext *UNUSED(C), Panel *panel)
|
|||
|
||||
row = uiLayoutRow(layout, false);
|
||||
uiLayoutSetActive(row, use_foam);
|
||||
uiItemR(row, ptr, "use_spray", 0, IFACE_("Spray"), ICON_NONE);
|
||||
uiItemR(row, ptr, "use_spray", 0, CTX_IFACE_(BLT_I18NCONTEXT_ID_MESH, "Spray"), ICON_NONE);
|
||||
}
|
||||
|
||||
static void spray_panel_draw(const bContext *UNUSED(C), Panel *panel)
|
||||
|
|
Loading…
Reference in New Issue