UI: Fix and improve a few messages
- "grease pencil" -> "Grease Pencil": title case. - "Display type" -> "Display Type": title case for property name. - "Bezier" -> "Bézier": proper noun. - "Mem:%dM, Peak %dM" -> "Mem:%dM, Peak: %dM": missing colon. - "cannot save image while rendering" -> "Cannot": Sentence case. - "Linked data cannot text-space transform" -> "Cannot create transform on linked data": rephrase strange sentence. - "Unsupported object type for text-space transform" -> "... for texture space transform": unnecessary abbreviation. - "Cannot write to asset %s: %s": remove double space. - "Failed to set tmpact" -> "temporary action": unclear abbreviation. - "luminance at which the midetones of the image" -> "midtones: typo. - "Line angle where the image should be split." -> trailing full stop. - "... instances all the children in the collection" -> "... instances of all the children...": missing "of". - "Curves to generated rounded corners on" -> "generate": typo. - "Instances that converted to a point per instance" -> "Instances to convert to points": rephrase unclear sentence. - "Great Pencil to set the depth order of" -> "Grease Pencil": typo. - "Description to set the smoothness of" -> "Geometry to set the smoothness of": typo. - "A cannot use current file as library" -> "cannot use...": typo. Pull Request: https://projects.blender.org/blender/blender/pulls/145840
This commit is contained in:
committed by
Hans Goudey
parent
6f85f3be2e
commit
f2b61b0874
@@ -955,7 +955,7 @@ class WM_OT_operator_presets_cleanup(Operator):
|
||||
|
||||
|
||||
class AddPresetGpencilBrush(AddPresetBase, Operator):
|
||||
"""Add or remove grease pencil brush preset"""
|
||||
"""Add or remove Grease Pencil brush preset"""
|
||||
bl_idname = "scene.gpencil_brush_preset_add"
|
||||
bl_label = "Add Grease Pencil Brush Preset"
|
||||
preset_menu = "VIEW3D_PT_gpencil_brush_presets"
|
||||
|
||||
@@ -302,7 +302,7 @@ void POSE_OT_paths_calculate(wmOperatorType *ot)
|
||||
"display_type",
|
||||
rna_enum_motionpath_display_type_items,
|
||||
MOTIONPATH_TYPE_RANGE,
|
||||
"Display type",
|
||||
"Display Type",
|
||||
"");
|
||||
RNA_def_enum(ot->srna,
|
||||
"range",
|
||||
|
||||
@@ -4063,7 +4063,7 @@ static void GREASE_PENCIL_OT_set_handle_type(wmOperatorType *ot)
|
||||
{
|
||||
ot->name = "Set Handle Type";
|
||||
ot->idname = "GREASE_PENCIL_OT_set_handle_type";
|
||||
ot->description = "Set the handle type for bezier curves";
|
||||
ot->description = "Set the handle type for Bézier curves";
|
||||
|
||||
ot->invoke = WM_menu_invoke;
|
||||
ot->exec = grease_pencil_set_handle_type_exec;
|
||||
|
||||
@@ -1401,7 +1401,7 @@ void OBJECT_OT_paths_calculate(wmOperatorType *ot)
|
||||
"display_type",
|
||||
rna_enum_motionpath_display_type_items,
|
||||
MOTIONPATH_TYPE_RANGE,
|
||||
"Display type",
|
||||
"Display Type",
|
||||
"");
|
||||
RNA_def_enum(ot->srna,
|
||||
"range",
|
||||
|
||||
@@ -469,7 +469,7 @@ static void make_renderinfo_string(const RenderStats *rs,
|
||||
else {
|
||||
if (rs->mem_peak == 0.0f) {
|
||||
SNPRINTF_UTF8(info_buffers.statistics,
|
||||
RPT_("Mem:%dM, Peak %dM"),
|
||||
RPT_("Mem:%dM, Peak: %dM"),
|
||||
megs_used_memory,
|
||||
megs_peak_memory);
|
||||
}
|
||||
|
||||
@@ -2089,7 +2089,7 @@ static bool image_save_as_poll(bContext *C)
|
||||
Image *ima = image_from_context(C);
|
||||
|
||||
if (ima->source == IMA_SRC_VIEWER) {
|
||||
CTX_wm_operator_poll_msg_set(C, "cannot save image while rendering");
|
||||
CTX_wm_operator_poll_msg_set(C, "Cannot save image while rendering");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ static void createTransCursor_view3d(bContext * /*C*/, TransInfo *t)
|
||||
|
||||
Scene *scene = t->scene;
|
||||
if (!ID_IS_EDITABLE(scene)) {
|
||||
BKE_report(t->reports, RPT_ERROR, "Linked data cannot text-space transform");
|
||||
BKE_report(t->reports, RPT_ERROR, "Cannot create transform on linked data");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -50,12 +50,12 @@ static void createTransTexspace(bContext * /*C*/, TransInfo *t)
|
||||
|
||||
id = static_cast<ID *>(ob->data);
|
||||
if (id == nullptr || !ELEM(GS(id->name), ID_ME, ID_CU_LEGACY, ID_MB)) {
|
||||
BKE_report(t->reports, RPT_ERROR, "Unsupported object type for text-space transform");
|
||||
BKE_report(t->reports, RPT_ERROR, "Unsupported object type for texture space transform");
|
||||
return;
|
||||
}
|
||||
|
||||
if (BKE_object_obdata_is_libdata(ob)) {
|
||||
BKE_report(t->reports, RPT_ERROR, "Linked data cannot text-space transform");
|
||||
BKE_report(t->reports, RPT_ERROR, "Cannot create transform on linked data");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ static void createTransSculpt(bContext *C, TransInfo *t)
|
||||
|
||||
Scene *scene = t->scene;
|
||||
if (!BKE_id_is_editable(CTX_data_main(C), &scene->id)) {
|
||||
BKE_report(t->reports, RPT_ERROR, "Linked data cannot text-space transform");
|
||||
BKE_report(t->reports, RPT_ERROR, "Cannot create transform on linked data");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -445,7 +445,7 @@ bool write_to_path(const void *data, size_t size, const std::string &path, Repor
|
||||
if (!ar.CanWriteAssetToPath(resolved_path, &why_not)) {
|
||||
BKE_reportf(reports,
|
||||
RPT_ERROR,
|
||||
"Cannot write to asset %s: %s",
|
||||
"Cannot write to asset %s: %s",
|
||||
resolved_path.GetPathString().c_str(),
|
||||
why_not.c_str());
|
||||
return false;
|
||||
|
||||
@@ -233,7 +233,7 @@ static void rna_AnimData_tmpact_set(PointerRNA *ptr, PointerRNA value, ReportLis
|
||||
|
||||
bAction *action = static_cast<bAction *>(value.data);
|
||||
if (!blender::animrig::assign_tmpaction(action, {*owner_id, *adt})) {
|
||||
BKE_report(reports, RPT_WARNING, "Failed to set tmpact");
|
||||
BKE_report(reports, RPT_WARNING, "Failed to set temporary action");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -70,12 +70,12 @@ static const EnumPropertyItem node_default_input_items[] = {
|
||||
"HANDLE_LEFT",
|
||||
0,
|
||||
"Left Handle",
|
||||
"The left Bezier control point handle from the context"},
|
||||
"The left Bézier control point handle from the context"},
|
||||
{NODE_DEFAULT_INPUT_HANDLE_RIGHT_FIELD,
|
||||
"HANDLE_RIGHT",
|
||||
0,
|
||||
"Right Handle",
|
||||
"The right Bezier control point handle from the context"},
|
||||
"The right Bézier control point handle from the context"},
|
||||
{0, nullptr, 0, nullptr, nullptr}};
|
||||
|
||||
#ifdef RNA_RUNTIME
|
||||
|
||||
@@ -5759,7 +5759,7 @@ static void rna_def_userdef_edit(BlenderRNA *brna)
|
||||
RNA_def_property_boolean_sdna(prop, nullptr, "dupflag", USER_DUP_GPENCIL);
|
||||
RNA_def_property_ui_text(prop,
|
||||
"Duplicate Grease Pencil",
|
||||
"Causes grease pencil data to be duplicated with the object");
|
||||
"Causes Grease Pencil data to be duplicated with the object");
|
||||
|
||||
prop = RNA_def_property(srna, "use_duplicate_curves", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, nullptr, "dupflag", USER_DUP_CURVES);
|
||||
|
||||
@@ -171,14 +171,14 @@ static void cmp_node_colorcorrection_declare(NodeDeclarationBuilder &b)
|
||||
.min(0.0f)
|
||||
.max(1.0f)
|
||||
.description(
|
||||
"Specifies the luminance at which the midetones of the image start and the shadows end");
|
||||
"Specifies the luminance at which the midtones of the image start and the shadows end");
|
||||
tonal_range_panel.add_input<decl::Float>("Midtones End")
|
||||
.default_value(0.7f)
|
||||
.subtype(PROP_FACTOR)
|
||||
.min(0.0f)
|
||||
.max(1.0f)
|
||||
.description(
|
||||
"Specifies the luminance at which the midetones of the image end and the highlights "
|
||||
"Specifies the luminance at which the midtones of the image end and the highlights "
|
||||
"start");
|
||||
|
||||
PanelDeclarationBuilder &tone_range_panel = b.add_panel("Channels").default_closed(true);
|
||||
|
||||
@@ -35,7 +35,7 @@ static void cmp_node_split_declare(NodeDeclarationBuilder &b)
|
||||
b.add_input<decl::Float>("Rotation")
|
||||
.default_value(math::numbers::pi_v<float> / 4.0f)
|
||||
.subtype(PROP_ANGLE)
|
||||
.description("Line angle where the image should be split.");
|
||||
.description("Line angle where the image should be split");
|
||||
|
||||
b.add_input<decl::Color>("Image").structure_type(StructureType::Dynamic);
|
||||
b.add_input<decl::Color>("Image", "Image_001").structure_type(StructureType::Dynamic);
|
||||
|
||||
@@ -36,7 +36,8 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
"Reset the transforms of every child instance in the output. Only used when Separate "
|
||||
"Children is enabled");
|
||||
b.add_output<decl::Geometry>("Instances")
|
||||
.description("Instance of the collection or instances all the children in the collection");
|
||||
.description(
|
||||
"Instance of the collection or instances of all the children in the collection");
|
||||
}
|
||||
|
||||
static void node_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
|
||||
@@ -35,7 +35,7 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
b.allow_any_socket_order();
|
||||
b.add_input<decl::Geometry>("Curve")
|
||||
.supported_type({GeometryComponent::Type::Curve, GeometryComponent::Type::GreasePencil})
|
||||
.description("Curves to generated rounded corners on");
|
||||
.description("Curves to generate rounded corners on");
|
||||
b.add_output<decl::Geometry>("Curve").propagate_all().align_with_previous();
|
||||
b.add_input<decl::Float>("Radius")
|
||||
.min(0.0f)
|
||||
|
||||
@@ -18,7 +18,7 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
{
|
||||
b.add_input<decl::Geometry>("Grease Pencil")
|
||||
.supported_type(bke::GeometryComponent::Type::GreasePencil)
|
||||
.description("Grease pencil data to convert to curves");
|
||||
.description("Grease Pencil data to convert to curves");
|
||||
b.add_input<decl::Bool>("Selection")
|
||||
.default_value(true)
|
||||
.hide_value()
|
||||
|
||||
@@ -17,7 +17,7 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
{
|
||||
b.add_input<decl::Geometry>("Instances")
|
||||
.only_instances()
|
||||
.description("Instances that converted to a point per instance");
|
||||
.description("Instances to convert to points");
|
||||
b.add_input<decl::Bool>("Selection").default_value(true).hide_value().field_on_all();
|
||||
b.add_input<decl::Vector>("Position").implicit_field_on_all(NODE_DEFAULT_INPUT_POSITION_FIELD);
|
||||
b.add_input<decl::Float>("Radius")
|
||||
|
||||
@@ -24,7 +24,7 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
b.add_default_layout();
|
||||
b.add_input<decl::Geometry>("Grease Pencil")
|
||||
.supported_type(GeometryComponent::Type::GreasePencil)
|
||||
.description("Great Pencil to set the depth order of");
|
||||
.description("Grease Pencil to set the depth order of");
|
||||
b.add_output<decl::Geometry>("Grease Pencil").propagate_all().align_with_previous();
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
b.add_default_layout();
|
||||
b.add_input<decl::Geometry>("Mesh", "Geometry")
|
||||
.supported_type(GeometryComponent::Type::Mesh)
|
||||
.description("Description to set the smoothness of");
|
||||
.description("Geometry to set the smoothness of");
|
||||
b.add_output<decl::Geometry>("Mesh", "Geometry").propagate_all().align_with_previous();
|
||||
b.add_input<decl::Bool>("Selection").default_value(true).hide_value().field_on_all();
|
||||
b.add_input<decl::Bool>("Shade Smooth").default_value(true).field_on_all();
|
||||
|
||||
@@ -227,8 +227,7 @@ static wmOperatorStatus wm_link_append_exec(bContext *C, wmOperator *op)
|
||||
if (BLI_path_cmp(blendfile_path, filepath) == 0 ||
|
||||
BLI_path_cmp(blendfile_path, libname) == 0)
|
||||
{
|
||||
BKE_reportf(
|
||||
op->reports, RPT_ERROR, "'%s': A cannot use current file as library", filepath);
|
||||
BKE_reportf(op->reports, RPT_ERROR, "'%s': cannot use current file as library", filepath);
|
||||
return OPERATOR_CANCELLED;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user