I18n: disambiguate and make a few more strings translatable
Those strings were at least partly disambiguated: - Area - Zone - Measurement - Ease - BBone Ease In / Out - Back - Camera BG image depth - GP interpolate sequence - Edge Crease - Theme - Jitter - Brush - GPencil - Lens distorsion compositing node - Cineon color management - Black - Gamma - White Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15791
This commit is contained in:
parent
0db582c41c
commit
9120c86c3f
@ -4,6 +4,8 @@ import bpy
|
||||
from bpy.types import Panel
|
||||
from rna_prop_ui import PropertyPanel
|
||||
|
||||
from bpy.app.translations import contexts as i18n_contexts
|
||||
|
||||
|
||||
class BoneButtonsPanel:
|
||||
bl_space_type = 'PROPERTIES'
|
||||
@ -156,8 +158,8 @@ class BONE_PT_curved(BoneButtonsPanel, Panel):
|
||||
col.prop(bbone, "bbone_scaleout", text="Scale Out")
|
||||
|
||||
col = topcol.column(align=True)
|
||||
col.prop(bbone, "bbone_easein", text="Ease In")
|
||||
col.prop(bbone, "bbone_easeout", text="Out")
|
||||
col.prop(bbone, "bbone_easein", text="Ease In", text_ctxt=i18n_contexts.id_armature)
|
||||
col.prop(bbone, "bbone_easeout", text="Out", text_ctxt=i18n_contexts.id_armature)
|
||||
col.prop(bone, "use_scale_easing")
|
||||
|
||||
col = topcol.column(align=True)
|
||||
@ -177,7 +179,7 @@ class BONE_PT_curved(BoneButtonsPanel, Panel):
|
||||
row2.prop(bone, "bbone_handle_use_scale_start", index=0, text="X", toggle=True)
|
||||
row2.prop(bone, "bbone_handle_use_scale_start", index=1, text="Y", toggle=True)
|
||||
row2.prop(bone, "bbone_handle_use_scale_start", index=2, text="Z", toggle=True)
|
||||
split2.prop(bone, "bbone_handle_use_ease_start", text="Ease", toggle=True)
|
||||
split2.prop(bone, "bbone_handle_use_ease_start", text="Ease", text_ctxt=i18n_contexts.id_armature, toggle=True)
|
||||
row.label(icon='BLANK1')
|
||||
|
||||
col = topcol.column(align=True)
|
||||
@ -197,7 +199,7 @@ class BONE_PT_curved(BoneButtonsPanel, Panel):
|
||||
row2.prop(bone, "bbone_handle_use_scale_end", index=0, text="X", toggle=True)
|
||||
row2.prop(bone, "bbone_handle_use_scale_end", index=1, text="Y", toggle=True)
|
||||
row2.prop(bone, "bbone_handle_use_scale_end", index=2, text="Z", toggle=True)
|
||||
split2.prop(bone, "bbone_handle_use_ease_end", text="Ease", toggle=True)
|
||||
split2.prop(bone, "bbone_handle_use_ease_end", text="Ease", text_ctxt=i18n_contexts.id_armature, toggle=True)
|
||||
row.label(icon='BLANK1')
|
||||
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
from bpy.types import Header, Menu
|
||||
|
||||
from bpy.app.translations import contexts as i18n_contexts
|
||||
|
||||
|
||||
class INFO_HT_header(Header):
|
||||
bl_space_type = 'INFO'
|
||||
@ -61,6 +63,7 @@ class INFO_MT_info(Menu):
|
||||
|
||||
class INFO_MT_area(Menu):
|
||||
bl_label = "Area"
|
||||
bl_translation_context = i18n_contexts.id_windowmanager
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -1571,6 +1571,7 @@ void GPENCIL_OT_interpolate_sequence(wmOperatorType *ot)
|
||||
/* identifiers */
|
||||
ot->name = "Interpolate Sequence";
|
||||
ot->idname = "GPENCIL_OT_interpolate_sequence";
|
||||
ot->translation_context = BLT_I18NCONTEXT_ID_GPENCIL;
|
||||
ot->description = "Generate 'in-betweens' to smoothly interpolate between Grease Pencil frames";
|
||||
|
||||
/* api callbacks */
|
||||
|
@ -5204,7 +5204,7 @@ static void CurveProfile_buttons_layout(uiLayout *layout, PointerRNA *ptr, RNAUp
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
"Reapply and update the preset, removing changes");
|
||||
TIP_("Reapply and update the preset, removing changes"));
|
||||
UI_but_funcN_set(bt, CurveProfile_buttons_reset, MEM_dupallocN(cb), profile);
|
||||
}
|
||||
}
|
||||
@ -6329,7 +6329,7 @@ void uiTemplateReportsBanner(uiLayout *layout, bContext *C)
|
||||
0,
|
||||
width + UI_UNIT_X,
|
||||
UI_UNIT_Y,
|
||||
"Show in Info Log");
|
||||
TIP_("Show in Info Log"));
|
||||
|
||||
UI_block_emboss_set(block, previous_emboss);
|
||||
}
|
||||
|
@ -1418,6 +1418,7 @@ void MESH_OT_select_similar(wmOperatorType *ot)
|
||||
|
||||
/* properties */
|
||||
prop = ot->prop = RNA_def_enum(ot->srna, "type", prop_similar_types, SIMVERT_NORMAL, "Type", "");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_MESH);
|
||||
RNA_def_enum_funcs(prop, select_similar_type_itemf);
|
||||
|
||||
RNA_def_enum(ot->srna, "compare", prop_similar_compare_types, SIM_CMP_EQ, "Compare", "");
|
||||
|
@ -226,15 +226,15 @@ static void graph_panel_properties(const bContext *C, Panel *panel)
|
||||
|
||||
/* color settings */
|
||||
col = uiLayoutColumn(layout, true);
|
||||
uiItemR(col, &fcu_ptr, "color_mode", 0, "Display Color", ICON_NONE);
|
||||
uiItemR(col, &fcu_ptr, "color_mode", 0, IFACE_("Display Color"), ICON_NONE);
|
||||
|
||||
if (fcu->color_mode == FCURVE_COLOR_CUSTOM) {
|
||||
uiItemR(col, &fcu_ptr, "color", 0, "Color", ICON_NONE);
|
||||
uiItemR(col, &fcu_ptr, "color", 0, IFACE_("Color"), ICON_NONE);
|
||||
}
|
||||
|
||||
/* smoothing setting */
|
||||
col = uiLayoutColumn(layout, true);
|
||||
uiItemR(col, &fcu_ptr, "auto_smoothing", 0, "Handle Smoothing", ICON_NONE);
|
||||
uiItemR(col, &fcu_ptr, "auto_smoothing", 0, IFACE_("Handle Smoothing"), ICON_NONE);
|
||||
|
||||
MEM_freeN(ale);
|
||||
}
|
||||
|
@ -8,6 +8,8 @@
|
||||
|
||||
#include "BLI_math.h"
|
||||
|
||||
#include "BLT_translation.h"
|
||||
|
||||
#include "RNA_access.h"
|
||||
#include "RNA_define.h"
|
||||
|
||||
@ -725,6 +727,7 @@ void rna_def_bone_curved_common(StructRNA *srna, bool is_posebone, bool is_editb
|
||||
RNA_def_property_ui_range(prop, -5.0f, 5.0f, 1, 3);
|
||||
RNA_def_property_float_default(prop, 1.0f);
|
||||
RNA_def_property_ui_text(prop, "Ease In", "Length of first Bezier Handle (for B-Bones only)");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_ARMATURE);
|
||||
RNA_DEF_CURVEBONE_UPDATE(prop, is_posebone, is_editbone);
|
||||
|
||||
prop = RNA_def_property(srna, "bbone_easeout", PROP_FLOAT, PROP_NONE);
|
||||
@ -732,6 +735,7 @@ void rna_def_bone_curved_common(StructRNA *srna, bool is_posebone, bool is_editb
|
||||
RNA_def_property_ui_range(prop, -5.0f, 5.0f, 1, 3);
|
||||
RNA_def_property_float_default(prop, 1.0f);
|
||||
RNA_def_property_ui_text(prop, "Ease Out", "Length of second Bezier Handle (for B-Bones only)");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_ARMATURE);
|
||||
RNA_DEF_CURVEBONE_UPDATE(prop, is_posebone, is_editbone);
|
||||
|
||||
if (is_posebone == false) {
|
||||
|
@ -16,6 +16,8 @@
|
||||
|
||||
#include "BLI_math.h"
|
||||
|
||||
#include "BLT_translation.h"
|
||||
|
||||
#include "RNA_define.h"
|
||||
#include "RNA_enum_types.h"
|
||||
|
||||
@ -1324,6 +1326,7 @@ static void rna_def_gpencil_options(BlenderRNA *brna)
|
||||
RNA_def_property_float_sdna(prop, NULL, "draw_jitter");
|
||||
RNA_def_property_range(prop, 0.0f, 1.0f);
|
||||
RNA_def_property_ui_text(prop, "Jitter", "Jitter factor for new strokes");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_BRUSH);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, NULL);
|
||||
|
||||
@ -2606,6 +2609,7 @@ static void rna_def_brush(BlenderRNA *brna)
|
||||
RNA_def_property_range(prop, 0.0f, 1000.0f);
|
||||
RNA_def_property_ui_range(prop, 0.0f, 2.0f, 0.1, 4);
|
||||
RNA_def_property_ui_text(prop, "Jitter", "Jitter the position of the brush while painting");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_BRUSH);
|
||||
RNA_def_property_update(prop, 0, "rna_Brush_update");
|
||||
|
||||
prop = RNA_def_property(srna, "jitter_absolute", PROP_INT, PROP_PIXEL);
|
||||
@ -2613,6 +2617,7 @@ static void rna_def_brush(BlenderRNA *brna)
|
||||
RNA_def_property_range(prop, 0, 1000000);
|
||||
RNA_def_property_ui_text(
|
||||
prop, "Jitter", "Jitter the position of the brush in pixels while painting");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_BRUSH);
|
||||
RNA_def_property_update(prop, 0, "rna_Brush_update");
|
||||
|
||||
prop = RNA_def_property(srna, "spacing", PROP_INT, PROP_PERCENTAGE);
|
||||
|
@ -10,6 +10,8 @@
|
||||
|
||||
#include "BLI_math.h"
|
||||
|
||||
#include "BLT_translation.h"
|
||||
|
||||
#include "RNA_access.h"
|
||||
#include "RNA_define.h"
|
||||
|
||||
@ -369,6 +371,7 @@ static void rna_def_camera_background_image(BlenderRNA *brna)
|
||||
RNA_def_property_enum_bitflag_sdna(prop, NULL, "flag");
|
||||
RNA_def_property_enum_items(prop, bgpic_display_depth_items);
|
||||
RNA_def_property_ui_text(prop, "Depth", "Display under or over everything");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_CAMERA);
|
||||
RNA_def_property_update(prop, NC_CAMERA | ND_DRAW_RENDER_VIEWPORT, NULL);
|
||||
|
||||
/* expose 2 flags as a enum of 3 items */
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include "RNA_define.h"
|
||||
#include "rna_internal.h"
|
||||
|
||||
#include "BLT_translation.h"
|
||||
|
||||
#include "WM_api.h"
|
||||
#include "WM_types.h"
|
||||
|
||||
@ -220,6 +222,7 @@ static void rna_def_curveprofile(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "preset", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "preset");
|
||||
RNA_def_property_enum_items(prop, rna_enum_curveprofile_preset_items);
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_MESH);
|
||||
RNA_def_property_ui_text(prop, "Preset", "");
|
||||
|
||||
prop = RNA_def_property(srna, "use_clip", PROP_BOOLEAN, PROP_NONE);
|
||||
|
@ -8065,6 +8065,7 @@ static void def_cmp_lensdist(StructRNA *srna)
|
||||
prop = RNA_def_property(srna, "use_jitter", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "jit", 1);
|
||||
RNA_def_property_ui_text(prop, "Jitter", "Enable/disable jittering (faster, but also noisier)");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_NODETREE);
|
||||
RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update");
|
||||
|
||||
prop = RNA_def_property(srna, "use_fit", PROP_BOOLEAN, PROP_NONE);
|
||||
|
@ -5817,19 +5817,19 @@ static void rna_def_scene_image_format_data(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "cineon_black", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "cineon_black");
|
||||
RNA_def_property_range(prop, 0, 1024);
|
||||
RNA_def_property_ui_text(prop, "B", "Log conversion reference blackpoint");
|
||||
RNA_def_property_ui_text(prop, "Black", "Log conversion reference blackpoint");
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "cineon_white", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "cineon_white");
|
||||
RNA_def_property_range(prop, 0, 1024);
|
||||
RNA_def_property_ui_text(prop, "W", "Log conversion reference whitepoint");
|
||||
RNA_def_property_ui_text(prop, "White", "Log conversion reference whitepoint");
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "cineon_gamma", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "cineon_gamma");
|
||||
RNA_def_property_range(prop, 0.0f, 10.0f);
|
||||
RNA_def_property_ui_text(prop, "G", "Log conversion gamma");
|
||||
RNA_def_property_ui_text(prop, "Gamma", "Log conversion gamma");
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
/* multiview */
|
||||
|
@ -3546,6 +3546,7 @@ static void rna_def_space_image_uv(BlenderRNA *brna)
|
||||
RNA_def_property_enum_sdna(prop, NULL, "dt_uvstretch");
|
||||
RNA_def_property_enum_items(prop, dt_uvstretch_items);
|
||||
RNA_def_property_ui_text(prop, "Display Stretch Type", "Type of stretch to display");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_MESH);
|
||||
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_IMAGE, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "show_modified_edges", PROP_BOOLEAN, PROP_NONE);
|
||||
|
@ -1898,6 +1898,7 @@ static void rna_def_userdef_theme_spaces_edge(StructRNA *srna)
|
||||
prop = RNA_def_property(srna, "edge_crease", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_ui_text(prop, "Edge Crease", "");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_WINDOWMANAGER);
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "edge_bevel", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
|
Loading…
Reference in New Issue
Block a user