From e3439e1ee33e65bf1d051bf486d18b52a6e90c16 Mon Sep 17 00:00:00 2001 From: Damien Picard Date: Sun, 5 Mar 2023 22:43:57 +0100 Subject: [PATCH] Cleanup: Fix a few messages in the UI Issues reported by @Joan-Pujolar in #43295. - uv -> UV everywhere. - Wrong plurals. --- scripts/startup/bl_operators/uvcalc_transform.py | 4 ++-- source/blender/editors/object/object_hook.c | 2 +- source/blender/editors/sculpt_paint/paint_image_proj.cc | 2 +- source/blender/editors/space_outliner/outliner_tools.cc | 2 +- source/blender/makesrna/intern/rna_gpencil_modifier.c | 4 ++-- source/blender/makesrna/intern/rna_mesh.c | 2 +- source/blender/makesrna/intern/rna_modifier.c | 2 +- source/blender/makesrna/intern/rna_object_force.c | 2 +- source/blender/makesrna/intern/rna_space.c | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/scripts/startup/bl_operators/uvcalc_transform.py b/scripts/startup/bl_operators/uvcalc_transform.py index d52096f5485..957428b0dac 100644 --- a/scripts/startup/bl_operators/uvcalc_transform.py +++ b/scripts/startup/bl_operators/uvcalc_transform.py @@ -249,7 +249,7 @@ def align_uv_rotation(context, method, axis): class AlignUVRotation(Operator): - """Align uv island's rotation""" + """Align the UV island's rotation""" bl_idname = "uv.align_rotation" bl_label = "Align Rotation" bl_options = {'REGISTER', 'UNDO'} @@ -382,7 +382,7 @@ def randomize_uv_transform(context, transform_params): class RandomizeUVTransform(Operator): - """Randomize uv island's location, rotation, and scale""" + """Randomize the UV island's location, rotation, and scale""" bl_idname = "uv.randomize_uv_transform" bl_label = "Randomize" bl_options = {'REGISTER', 'UNDO'} diff --git a/source/blender/editors/object/object_hook.c b/source/blender/editors/object/object_hook.c index d52c7f0b8d4..11973901ad7 100644 --- a/source/blender/editors/object/object_hook.c +++ b/source/blender/editors/object/object_hook.c @@ -657,7 +657,7 @@ void OBJECT_OT_hook_add_selob(wmOperatorType *ot) "use_bone", false, "Active Bone", - "Assign the hook to the hook objects active bone"); + "Assign the hook to the hook object's active bone"); } static int object_add_hook_newob_exec(bContext *C, wmOperator *op) diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.cc b/source/blender/editors/sculpt_paint/paint_image_proj.cc index 1800f8f862b..6d233ab2aef 100644 --- a/source/blender/editors/sculpt_paint/paint_image_proj.cc +++ b/source/blender/editors/sculpt_paint/paint_image_proj.cc @@ -6985,7 +6985,7 @@ void PAINT_OT_add_simple_uvs(wmOperatorType *ot) { /* identifiers */ ot->name = "Add Simple UVs"; - ot->description = "Add cube map uvs on mesh"; + ot->description = "Add cube map UVs on mesh"; ot->idname = "PAINT_OT_add_simple_uvs"; /* api callbacks */ diff --git a/source/blender/editors/space_outliner/outliner_tools.cc b/source/blender/editors/space_outliner/outliner_tools.cc index b1aa58a53b8..a639ccd74ae 100644 --- a/source/blender/editors/space_outliner/outliner_tools.cc +++ b/source/blender/editors/space_outliner/outliner_tools.cc @@ -2861,7 +2861,7 @@ static const EnumPropertyItem outliner_lib_op_type_items[] = { "DELETE", ICON_X, "Delete", - "Delete this library and all its item.\n" + "Delete this library and all its items.\n" "Warning: No undo"}, {OL_LIB_RELOCATE, "RELOCATE", diff --git a/source/blender/makesrna/intern/rna_gpencil_modifier.c b/source/blender/makesrna/intern/rna_gpencil_modifier.c index 8c8a9dc4980..40dbc2ebbd4 100644 --- a/source/blender/makesrna/intern/rna_gpencil_modifier.c +++ b/source/blender/makesrna/intern/rna_gpencil_modifier.c @@ -41,7 +41,7 @@ const EnumPropertyItem rna_enum_object_greasepencil_modifier_type_items[] = { "GP_TEXTURE", ICON_MOD_UVPROJECT, "Texture Mapping", - "Change stroke uv texture values"}, + "Change stroke UV texture values"}, {eGpencilModifierType_Time, "GP_TIME", ICON_MOD_TIME, "Time Offset", "Offset keyframes"}, {eGpencilModifierType_WeightAngle, "GP_WEIGHT_ANGLE", @@ -1031,7 +1031,7 @@ static void rna_def_modifier_gpencilnoise(BlenderRNA *brna) RNA_def_property_float_sdna(prop, NULL, "factor_uvs"); RNA_def_property_range(prop, 0.0, FLT_MAX); RNA_def_property_ui_range(prop, 0.0, 1.0, 0.1, 2); - RNA_def_property_ui_text(prop, "UV Factor", "Amount of noise to apply uv rotation"); + RNA_def_property_ui_text(prop, "UV Factor", "Amount of noise to apply to UV rotation"); RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); prop = RNA_def_property(srna, "use_random", PROP_BOOLEAN, PROP_NONE); diff --git a/source/blender/makesrna/intern/rna_mesh.c b/source/blender/makesrna/intern/rna_mesh.c index 22b2fa7b7da..222a2b19ebd 100644 --- a/source/blender/makesrna/intern/rna_mesh.c +++ b/source/blender/makesrna/intern/rna_mesh.c @@ -3065,7 +3065,7 @@ static void rna_def_mloopuv(BlenderRNA *brna) prop = RNA_def_property(srna, "pin", PROP_COLLECTION, PROP_NONE); RNA_def_property_struct_type(prop, "BoolAttributeValue"); - RNA_def_property_ui_text(prop, "UV Pin", "UV pinned state in the uv editor"); + RNA_def_property_ui_text(prop, "UV Pin", "UV pinned state in the UV editor"); RNA_def_property_collection_funcs(prop, "rna_MeshUVLoopLayer_pin_begin", "rna_iterator_array_next", diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c index c8c1801876b..cb75eb501a8 100644 --- a/source/blender/makesrna/intern/rna_modifier.c +++ b/source/blender/makesrna/intern/rna_modifier.c @@ -4928,7 +4928,7 @@ static void rna_def_modifier_uvwarp(BlenderRNA *brna) PropertyRNA *prop; srna = RNA_def_struct(brna, "UVWarpModifier", "Modifier"); - RNA_def_struct_ui_text(srna, "UVWarp Modifier", "Add target position to uv coordinates"); + RNA_def_struct_ui_text(srna, "UVWarp Modifier", "Add target position to UV coordinates"); RNA_def_struct_sdna(srna, "UVWarpModifierData"); RNA_def_struct_ui_icon(srna, ICON_MOD_UVPROJECT); diff --git a/source/blender/makesrna/intern/rna_object_force.c b/source/blender/makesrna/intern/rna_object_force.c index ca336438a20..8c5f96c1bdb 100644 --- a/source/blender/makesrna/intern/rna_object_force.c +++ b/source/blender/makesrna/intern/rna_object_force.c @@ -1150,7 +1150,7 @@ static void rna_def_collision(BlenderRNA *brna) prop = RNA_def_property(srna, "use", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "deflect", 1); RNA_def_property_ui_text( - prop, "Enabled", "Enable this objects as a collider for physics systems"); + prop, "Enabled", "Enable this object as a collider for physics systems"); RNA_def_property_update(prop, 0, "rna_CollisionSettings_dependency_update"); /* Particle Interaction */ diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index 53e5f3a21aa..8edeb6dd29d 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -3608,7 +3608,7 @@ static void rna_def_space_image_uv(BlenderRNA *brna) prop = RNA_def_property(srna, "show_texpaint", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", SI_NO_DRAW_TEXPAINT); RNA_def_property_ui_text( - prop, "Display Texture Paint UVs", "Display overlay of texture paint uv layer"); + prop, "Display Texture Paint UVs", "Display overlay of texture paint UV layer"); RNA_def_property_update(prop, NC_SPACE | ND_SPACE_IMAGE, NULL); prop = RNA_def_property(srna, "show_pixel_coords", PROP_BOOLEAN, PROP_NONE); -- 2.30.2