From f2b61b0874ce7f93144624f41c784576b3e19819 Mon Sep 17 00:00:00 2001 From: Damien Picard Date: Sun, 7 Sep 2025 00:26:31 +0200 Subject: [PATCH] UI: Fix and improve a few messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - "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 --- scripts/startup/bl_operators/presets.py | 2 +- source/blender/editors/armature/pose_edit.cc | 2 +- .../editors/grease_pencil/intern/grease_pencil_edit.cc | 2 +- source/blender/editors/object/object_edit.cc | 2 +- source/blender/editors/render/render_internal.cc | 2 +- source/blender/editors/space_image/image_ops.cc | 2 +- source/blender/editors/transform/transform_convert_cursor.cc | 2 +- .../editors/transform/transform_convert_object_texspace.cc | 4 ++-- source/blender/editors/transform/transform_convert_sculpt.cc | 2 +- source/blender/io/usd/intern/usd_asset_utils.cc | 2 +- source/blender/makesrna/intern/rna_animation.cc | 2 +- source/blender/makesrna/intern/rna_node_tree_interface.cc | 4 ++-- source/blender/makesrna/intern/rna_userdef.cc | 2 +- .../nodes/composite/nodes/node_composite_colorcorrection.cc | 4 ++-- source/blender/nodes/composite/nodes/node_composite_split.cc | 2 +- .../blender/nodes/geometry/nodes/node_geo_collection_info.cc | 3 ++- source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc | 2 +- .../nodes/geometry/nodes/node_geo_grease_pencil_to_curves.cc | 2 +- .../nodes/geometry/nodes/node_geo_instances_to_points.cc | 2 +- .../geometry/nodes/node_geo_set_grease_pencil_depth_mode.cc | 2 +- .../blender/nodes/geometry/nodes/node_geo_set_shade_smooth.cc | 2 +- source/blender/windowmanager/intern/wm_files_link.cc | 3 +-- 22 files changed, 26 insertions(+), 26 deletions(-) diff --git a/scripts/startup/bl_operators/presets.py b/scripts/startup/bl_operators/presets.py index 4bebe6083ab..5033f4c1ca7 100644 --- a/scripts/startup/bl_operators/presets.py +++ b/scripts/startup/bl_operators/presets.py @@ -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" diff --git a/source/blender/editors/armature/pose_edit.cc b/source/blender/editors/armature/pose_edit.cc index e74cc50f419..8ec05effcd7 100644 --- a/source/blender/editors/armature/pose_edit.cc +++ b/source/blender/editors/armature/pose_edit.cc @@ -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", diff --git a/source/blender/editors/grease_pencil/intern/grease_pencil_edit.cc b/source/blender/editors/grease_pencil/intern/grease_pencil_edit.cc index eace606b9ea..08dc1c8b300 100644 --- a/source/blender/editors/grease_pencil/intern/grease_pencil_edit.cc +++ b/source/blender/editors/grease_pencil/intern/grease_pencil_edit.cc @@ -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; diff --git a/source/blender/editors/object/object_edit.cc b/source/blender/editors/object/object_edit.cc index 012e0431d5a..e461d7714fe 100644 --- a/source/blender/editors/object/object_edit.cc +++ b/source/blender/editors/object/object_edit.cc @@ -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", diff --git a/source/blender/editors/render/render_internal.cc b/source/blender/editors/render/render_internal.cc index 65f8a7dc950..0a0d209bb80 100644 --- a/source/blender/editors/render/render_internal.cc +++ b/source/blender/editors/render/render_internal.cc @@ -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); } diff --git a/source/blender/editors/space_image/image_ops.cc b/source/blender/editors/space_image/image_ops.cc index 94d2cda3cfb..4ee5d7dfd9f 100644 --- a/source/blender/editors/space_image/image_ops.cc +++ b/source/blender/editors/space_image/image_ops.cc @@ -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; } } diff --git a/source/blender/editors/transform/transform_convert_cursor.cc b/source/blender/editors/transform/transform_convert_cursor.cc index 6092ef03fcc..4fecf92616f 100644 --- a/source/blender/editors/transform/transform_convert_cursor.cc +++ b/source/blender/editors/transform/transform_convert_cursor.cc @@ -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; } diff --git a/source/blender/editors/transform/transform_convert_object_texspace.cc b/source/blender/editors/transform/transform_convert_object_texspace.cc index dc3f4db1a85..77306906900 100644 --- a/source/blender/editors/transform/transform_convert_object_texspace.cc +++ b/source/blender/editors/transform/transform_convert_object_texspace.cc @@ -50,12 +50,12 @@ static void createTransTexspace(bContext * /*C*/, TransInfo *t) id = static_cast(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; } diff --git a/source/blender/editors/transform/transform_convert_sculpt.cc b/source/blender/editors/transform/transform_convert_sculpt.cc index 229c2678b08..f03bb0791d4 100644 --- a/source/blender/editors/transform/transform_convert_sculpt.cc +++ b/source/blender/editors/transform/transform_convert_sculpt.cc @@ -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; } diff --git a/source/blender/io/usd/intern/usd_asset_utils.cc b/source/blender/io/usd/intern/usd_asset_utils.cc index 18e6bff635a..69fb2753d7e 100644 --- a/source/blender/io/usd/intern/usd_asset_utils.cc +++ b/source/blender/io/usd/intern/usd_asset_utils.cc @@ -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; diff --git a/source/blender/makesrna/intern/rna_animation.cc b/source/blender/makesrna/intern/rna_animation.cc index 23f47f2ea75..4643a69f5ee 100644 --- a/source/blender/makesrna/intern/rna_animation.cc +++ b/source/blender/makesrna/intern/rna_animation.cc @@ -233,7 +233,7 @@ static void rna_AnimData_tmpact_set(PointerRNA *ptr, PointerRNA value, ReportLis bAction *action = static_cast(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"); } } diff --git a/source/blender/makesrna/intern/rna_node_tree_interface.cc b/source/blender/makesrna/intern/rna_node_tree_interface.cc index bb485316414..24bbfbad51f 100644 --- a/source/blender/makesrna/intern/rna_node_tree_interface.cc +++ b/source/blender/makesrna/intern/rna_node_tree_interface.cc @@ -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 diff --git a/source/blender/makesrna/intern/rna_userdef.cc b/source/blender/makesrna/intern/rna_userdef.cc index 70d2316b990..98e53b79d00 100644 --- a/source/blender/makesrna/intern/rna_userdef.cc +++ b/source/blender/makesrna/intern/rna_userdef.cc @@ -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); diff --git a/source/blender/nodes/composite/nodes/node_composite_colorcorrection.cc b/source/blender/nodes/composite/nodes/node_composite_colorcorrection.cc index 1ed9266a081..d7983de7c64 100644 --- a/source/blender/nodes/composite/nodes/node_composite_colorcorrection.cc +++ b/source/blender/nodes/composite/nodes/node_composite_colorcorrection.cc @@ -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("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); diff --git a/source/blender/nodes/composite/nodes/node_composite_split.cc b/source/blender/nodes/composite/nodes/node_composite_split.cc index 02787a2c392..849bfc57d06 100644 --- a/source/blender/nodes/composite/nodes/node_composite_split.cc +++ b/source/blender/nodes/composite/nodes/node_composite_split.cc @@ -35,7 +35,7 @@ static void cmp_node_split_declare(NodeDeclarationBuilder &b) b.add_input("Rotation") .default_value(math::numbers::pi_v / 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("Image").structure_type(StructureType::Dynamic); b.add_input("Image", "Image_001").structure_type(StructureType::Dynamic); diff --git a/source/blender/nodes/geometry/nodes/node_geo_collection_info.cc b/source/blender/nodes/geometry/nodes/node_geo_collection_info.cc index 23bf00f3c39..29fb19882b3 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_collection_info.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_collection_info.cc @@ -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("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) diff --git a/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc b/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc index 015b5d5eacc..0ee601bf6e4 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc @@ -35,7 +35,7 @@ static void node_declare(NodeDeclarationBuilder &b) b.allow_any_socket_order(); b.add_input("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("Curve").propagate_all().align_with_previous(); b.add_input("Radius") .min(0.0f) diff --git a/source/blender/nodes/geometry/nodes/node_geo_grease_pencil_to_curves.cc b/source/blender/nodes/geometry/nodes/node_geo_grease_pencil_to_curves.cc index b09bf428ed4..9519d0f90d2 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_grease_pencil_to_curves.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_grease_pencil_to_curves.cc @@ -18,7 +18,7 @@ static void node_declare(NodeDeclarationBuilder &b) { b.add_input("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("Selection") .default_value(true) .hide_value() diff --git a/source/blender/nodes/geometry/nodes/node_geo_instances_to_points.cc b/source/blender/nodes/geometry/nodes/node_geo_instances_to_points.cc index a8b8ac7f27f..d739b5530f0 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_instances_to_points.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_instances_to_points.cc @@ -17,7 +17,7 @@ static void node_declare(NodeDeclarationBuilder &b) { b.add_input("Instances") .only_instances() - .description("Instances that converted to a point per instance"); + .description("Instances to convert to points"); b.add_input("Selection").default_value(true).hide_value().field_on_all(); b.add_input("Position").implicit_field_on_all(NODE_DEFAULT_INPUT_POSITION_FIELD); b.add_input("Radius") diff --git a/source/blender/nodes/geometry/nodes/node_geo_set_grease_pencil_depth_mode.cc b/source/blender/nodes/geometry/nodes/node_geo_set_grease_pencil_depth_mode.cc index 62b1a22794a..27beac40fe8 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_set_grease_pencil_depth_mode.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_set_grease_pencil_depth_mode.cc @@ -24,7 +24,7 @@ static void node_declare(NodeDeclarationBuilder &b) b.add_default_layout(); b.add_input("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("Grease Pencil").propagate_all().align_with_previous(); } diff --git a/source/blender/nodes/geometry/nodes/node_geo_set_shade_smooth.cc b/source/blender/nodes/geometry/nodes/node_geo_set_shade_smooth.cc index 42b548f1f78..36d82aa6ca7 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_set_shade_smooth.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_set_shade_smooth.cc @@ -24,7 +24,7 @@ static void node_declare(NodeDeclarationBuilder &b) b.add_default_layout(); b.add_input("Mesh", "Geometry") .supported_type(GeometryComponent::Type::Mesh) - .description("Description to set the smoothness of"); + .description("Geometry to set the smoothness of"); b.add_output("Mesh", "Geometry").propagate_all().align_with_previous(); b.add_input("Selection").default_value(true).hide_value().field_on_all(); b.add_input("Shade Smooth").default_value(true).field_on_all(); diff --git a/source/blender/windowmanager/intern/wm_files_link.cc b/source/blender/windowmanager/intern/wm_files_link.cc index e5d85d4ffc3..281c78421c3 100644 --- a/source/blender/windowmanager/intern/wm_files_link.cc +++ b/source/blender/windowmanager/intern/wm_files_link.cc @@ -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; } }