I18n: Disambiguate "Value" in colors
In some languages, a color value (as in Hue, Saturation, Value), is not the same as a numeric or other variable value. Pull Request: https://projects.blender.org/blender/blender/pulls/145839
This commit is contained in:
@@ -1208,7 +1208,7 @@ def color_jitter_panel(layout, context, brush):
|
||||
|
||||
row = col.row(align=True)
|
||||
row.enabled = prop_owner.use_color_jitter
|
||||
row.prop(prop_owner, "value_jitter", slider=True, text="Value")
|
||||
row.prop(prop_owner, "value_jitter", slider=True, text="Value", text_context=i18n_contexts.color)
|
||||
row.prop(prop_owner, "use_stroke_random_val", text="", icon='GP_SELECT_STROKES')
|
||||
row.prop(prop_owner, "use_random_press_val", text="", icon='STYLUS_PRESSURE')
|
||||
|
||||
|
||||
@@ -797,7 +797,8 @@ static void ui_block_colorpicker(const bContext * /*C*/,
|
||||
add_hsv_slider(IFACE_("Lightness:"), TIP_("Lightness"), 2, yco -= UI_UNIT_Y);
|
||||
}
|
||||
else {
|
||||
add_hsv_slider(IFACE_("Value:"), TIP_("Value"), 2, yco -= UI_UNIT_Y);
|
||||
add_hsv_slider(
|
||||
IFACE_("Value:"), CTX_TIP_(BLT_I18NCONTEXT_COLOR, "Value"), 2, yco -= UI_UNIT_Y);
|
||||
}
|
||||
|
||||
if (cpicker->has_alpha) {
|
||||
|
||||
@@ -227,7 +227,7 @@ static void ui_template_palette_menu(bContext * /*C*/, uiLayout *layout, void *
|
||||
op_ptr = row->op("PALETTE_OT_sort", IFACE_("Saturation"), ICON_NONE);
|
||||
RNA_enum_set(&op_ptr, "type", 2);
|
||||
row = &layout->row(false);
|
||||
op_ptr = row->op("PALETTE_OT_sort", IFACE_("Value"), ICON_NONE);
|
||||
op_ptr = row->op("PALETTE_OT_sort", CTX_IFACE_(BLT_I18NCONTEXT_COLOR, "Value"), ICON_NONE);
|
||||
RNA_enum_set(&op_ptr, "type", 3);
|
||||
row = &layout->row(false);
|
||||
op_ptr = row->op("PALETTE_OT_sort", IFACE_("Luminance"), ICON_NONE);
|
||||
|
||||
@@ -3698,6 +3698,7 @@ static void rna_def_color_mix(StructRNA *srna)
|
||||
RNA_def_property_enum_items(prop, blend_color_items);
|
||||
RNA_def_property_ui_text(
|
||||
prop, "Blending Mode", "Method for controlling how the strip combines with other strips");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_COLOR);
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Strip_invalidate_raw_update");
|
||||
|
||||
prop = RNA_def_property(srna, "factor", PROP_FLOAT, PROP_FACTOR);
|
||||
|
||||
Reference in New Issue
Block a user