[Bf-blender-cvs] [2917f550caa] master: Cleanup: Fix capitalization in various UI strings

Yevgeny Makarov noreply at git.blender.org
Thu Dec 24 18:13:48 CET 2020


Commit: 2917f550caa9e7a3724c7597bdeaec989a339138
Author: Yevgeny Makarov
Date:   Thu Dec 24 11:07:32 2020 -0600
Branches: master
https://developer.blender.org/rB2917f550caa9e7a3724c7597bdeaec989a339138

Cleanup: Fix capitalization in various UI strings

Approximately 195 changes of capitalization to conform to MLA title style.
UI labels and property names should use MLA title case, while descriptions
should be capitalized like regular prose, generally with only the start of
a sentence capitalized.

Differential Revision: https://developer.blender.org/D9922

===================================================================

M	intern/ghost/intern/GHOST_WindowCocoa.mm
M	release/scripts/startup/bl_operators/uvcalc_lightmap.py
M	release/scripts/startup/bl_operators/wm.py
M	release/scripts/startup/bl_ui/properties_grease_pencil_common.py
M	release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
M	source/blender/editors/gpencil/gpencil_data.c
M	source/blender/editors/gpencil/gpencil_edit.c
M	source/blender/editors/gpencil/gpencil_fill.c
M	source/blender/editors/gpencil/gpencil_mesh.c
M	source/blender/editors/gpencil/gpencil_uv.c
M	source/blender/editors/interface/interface_eyedropper_colorband.c
M	source/blender/editors/io/io_collada.c
M	source/blender/editors/mesh/editmesh_inset.c
M	source/blender/editors/mesh/editmesh_intersect.c
M	source/blender/editors/mesh/editmesh_tools.c
M	source/blender/editors/mesh/mesh_data.c
M	source/blender/editors/object/object_bake_api.c
M	source/blender/editors/object/object_constraint.c
M	source/blender/editors/object/object_facemap_ops.c
M	source/blender/editors/object/object_select.c
M	source/blender/editors/object/object_vgroup.c
M	source/blender/editors/sculpt_paint/sculpt.c
M	source/blender/editors/sculpt_paint/sculpt_cloth.c
M	source/blender/editors/sculpt_paint/sculpt_mask_expand.c
M	source/blender/editors/sculpt_paint/sculpt_transform.c
M	source/blender/editors/space_buttons/buttons_ops.c
M	source/blender/editors/space_file/file_ops.c
M	source/blender/editors/space_graph/graph_edit.c
M	source/blender/editors/space_image/image_ops.c
M	source/blender/editors/space_info/info_ops.c
M	source/blender/editors/space_nla/nla_select.c
M	source/blender/editors/space_outliner/outliner_edit.c
M	source/blender/editors/space_outliner/outliner_tools.c
M	source/blender/editors/space_sequencer/sequencer_edit.c
M	source/blender/editors/space_sequencer/sequencer_select.c
M	source/blender/editors/space_view3d/view3d_edit.c
M	source/blender/editors/transform/transform_ops.c
M	source/blender/makesrna/intern/rna_brush.c
M	source/blender/makesrna/intern/rna_curve.c
M	source/blender/makesrna/intern/rna_fcurve.c
M	source/blender/makesrna/intern/rna_gpencil.c
M	source/blender/makesrna/intern/rna_main.c
M	source/blender/makesrna/intern/rna_modifier.c
M	source/blender/makesrna/intern/rna_nodetree.c
M	source/blender/makesrna/intern/rna_object.c
M	source/blender/makesrna/intern/rna_particle.c
M	source/blender/makesrna/intern/rna_pose.c
M	source/blender/makesrna/intern/rna_scene.c
M	source/blender/makesrna/intern/rna_sculpt_paint.c
M	source/blender/makesrna/intern/rna_sequencer.c
M	source/blender/makesrna/intern/rna_space.c
M	source/blender/makesrna/intern/rna_texture.c
M	source/blender/makesrna/intern/rna_ui.c
M	source/blender/makesrna/intern/rna_userdef.c
M	source/blender/makesrna/intern/rna_volume.c
M	source/blender/makesrna/intern/rna_wm.c
M	source/blender/makesrna/intern/rna_wm_gizmo.c
M	source/blender/windowmanager/intern/wm_operators.c

===================================================================

diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm
index 3f0ed2a4def..73927317b24 100644
--- a/intern/ghost/intern/GHOST_WindowCocoa.mm
+++ b/intern/ghost/intern/GHOST_WindowCocoa.mm
@@ -905,8 +905,8 @@ GHOST_TSuccess GHOST_WindowCocoa::setProgressBar(float progress)
 static void postNotification()
 {
   NSUserNotification *notification = [[NSUserNotification alloc] init];
-  notification.title = @"Blender progress notification";
-  notification.informativeText = @"Calculation is finished";
+  notification.title = @"Blender Progress Notification";
+  notification.informativeText = @"Calculation is finished.";
   notification.soundName = NSUserNotificationDefaultSoundName;
   [[NSUserNotificationCenter defaultUserNotificationCenter] deliverNotification:notification];
   [notification release];
diff --git a/release/scripts/startup/bl_operators/uvcalc_lightmap.py b/release/scripts/startup/bl_operators/uvcalc_lightmap.py
index 6ebf39af22e..3b936b2f93b 100644
--- a/release/scripts/startup/bl_operators/uvcalc_lightmap.py
+++ b/release/scripts/startup/bl_operators/uvcalc_lightmap.py
@@ -635,7 +635,7 @@ class LightMapPack(Operator):
     )
     PREF_IMG_PX_SIZE: IntProperty(
         name="Image Size",
-        description="Width and Height for the new image",
+        description="Width and height for the new image",
         min=64, max=5000,
         default=512,
     )
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py
index 6915d31f379..e47a27cf6e5 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -893,7 +893,7 @@ class WM_OT_url_open_preset(Operator):
         (('BUG', "Bug",
           "Report a bug with pre-filled version information"),
          _url_from_bug),
-        (('BUG_ADDON', "Add-On Bug",
+        (('BUG_ADDON', "Add-on Bug",
           "Report a bug in an add-on"),
          _url_from_bug_addon),
         (('RELEASE_NOTES', "Release Notes",
@@ -1175,7 +1175,7 @@ rna_use_soft_limits = BoolProperty(
 
 rna_is_overridable_library = BoolProperty(
     name="Is Library Overridable",
-    description="Allow the property to be overridden when the Data-Block is linked",
+    description="Allow the property to be overridden when the data-block is linked",
     default=False,
 )
 
@@ -1604,7 +1604,7 @@ class WM_OT_sysinfo(Operator):
 
 
 class WM_OT_operator_cheat_sheet(Operator):
-    """List all the Operators in a text-block, useful for scripting"""
+    """List all the operators in a text-block, useful for scripting"""
     bl_idname = "wm.operator_cheat_sheet"
     bl_label = "Operator Cheat Sheet"
 
@@ -1726,7 +1726,7 @@ class WM_OT_tool_set_by_index(Operator):
     bl_idname = "wm.tool_set_by_index"
     bl_label = "Set Tool by Index"
     index: IntProperty(
-        name="Index in toolbar",
+        name="Index in Toolbar",
         default=0,
     )
     cycle: BoolProperty(
@@ -2163,7 +2163,7 @@ class WM_OT_batch_rename(Operator):
         object_data_type_attrs_map = {
             'MESH': ("meshes", "Mesh(es)"),
             'CURVE': ("curves", "Curve(s)"),
-            'META': ("metaballs", "MetaBall(s)"),
+            'META': ("metaballs", "Metaball(s)"),
             'ARMATURE': ("armatures", "Armature(s)"),
             'LATTICE': ("lattices", "Lattice(s)"),
             'GPENCIL': ("grease_pencils", "Grease Pencil(s)"),
diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
index de4937a959a..8b404c4a306 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -867,7 +867,7 @@ class GreasePencilLayerDisplayPanel:
 class GreasePencilFlipTintColors(Operator):
     bl_label = "Flip Colors"
     bl_idname = "gpencil.tint_flip"
-    bl_description = "Switch Tint colors"
+    bl_description = "Switch tint colors"
 
     def execute(self, context):
         try:
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
index 0411d5c64bc..a5354ca6bbe 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -1424,7 +1424,7 @@ class _defs_sculpt:
 
         return dict(
             idname="builtin.mask_by_color",
-            label="Mask By Color",
+            label="Mask by Color",
             icon="ops.sculpt.mask_by_color",
             widget=None,
             keymap=(),
diff --git a/source/blender/editors/gpencil/gpencil_data.c b/source/blender/editors/gpencil/gpencil_data.c
index aff109eb98e..ad9b72b713e 100644
--- a/source/blender/editors/gpencil/gpencil_data.c
+++ b/source/blender/editors/gpencil/gpencil_data.c
@@ -1906,7 +1906,7 @@ void GPENCIL_OT_brush_reset(wmOperatorType *ot)
   /* identifiers */
   ot->name = "Reset Brush";
   ot->idname = "GPENCIL_OT_brush_reset";
-  ot->description = "Reset Brush to default parameters";
+  ot->description = "Reset brush to default parameters";
 
   /* api callbacks */
   ot->exec = gpencil_brush_reset_exec;
diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c
index 36e383cf3c2..d1c8eca1be0 100644
--- a/source/blender/editors/gpencil/gpencil_edit.c
+++ b/source/blender/editors/gpencil/gpencil_edit.c
@@ -341,7 +341,7 @@ void GPENCIL_OT_selectmode_toggle(wmOperatorType *ot)
   ot->flag = OPTYPE_UNDO | OPTYPE_REGISTER;
 
   /* properties */
-  prop = RNA_def_int(ot->srna, "mode", 0, 0, 2, "Select mode", "Select mode", 0, 2);
+  prop = RNA_def_int(ot->srna, "mode", 0, 0, 2, "Select Mode", "Select mode", 0, 2);
   RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE);
 }
 
@@ -2759,7 +2759,7 @@ void GPENCIL_OT_dissolve(wmOperatorType *ot)
                           prop_gpencil_dissolve_types,
                           0,
                           "Type",
-                          "Method used for dissolving Stroke points");
+                          "Method used for dissolving stroke points");
 }
 
 /** \} */
@@ -3442,7 +3442,7 @@ void GPENCIL_OT_stroke_caps_set(wmOperatorType *ot)
   /* identifiers */
   ot->name = "Set Caps Mode";
   ot->idname = "GPENCIL_OT_stroke_caps_set";
-  ot->description = "Change Stroke caps mode (rounded or flat)";
+  ot->description = "Change stroke caps mode (rounded or flat)";
 
   /* api callbacks */
   ot->exec = gpencil_stroke_caps_set_exec;
diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c
index 39968aac9fa..1059e37704a 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -1707,6 +1707,6 @@ void GPENCIL_OT_fill(wmOperatorType *ot)
   /* flags */
   ot->flag = OPTYPE_UNDO | OPTYPE_BLOCKING;
 
-  prop = RNA_def_boolean(ot->srna, "on_back", false, "Draw On Back", "Send new stroke to Back");
+  prop = RNA_def_boolean(ot->srna, "on_back", false, "Draw on Back", "Send new stroke to back");
   RNA_def_property_flag(prop, PROP_SKIP_SAVE);
 }
diff --git a/source/blender/editors/gpencil/gpencil_mesh.c b/source/blender/editors/gpencil/gpencil_mesh.c
index 84314202dfc..53beaeaa6a0 100644
--- a/source/blender/editors/gpencil/gpencil_mesh.c
+++ b/source/blender/editors/gpencil/gpencil_mesh.c
@@ -434,7 +434,7 @@ void GPENCIL_OT_bake_mesh_animation(wmOperatorType *ot)
   /* identifiers */
   ot->name = "Bake Mesh Animation to Grease Pencil";
   ot->idname = "GPENCIL_OT_bake_mesh_animation";
-  ot->description = "Bake Mesh Animation to Grease Pencil strokes";
+  ot->description = "Bake mesh animation to grease pencil strokes";
 
   /* callbacks */
   ot->invoke = gpencil_bake_mesh_animation_invoke;
diff --git a/source/blender/editors/gpencil/gpencil_uv.c b/source/blender/editors/gpencil/gpencil_uv.c
index 1d1bc72aaec..ec2ccabddfe 100644
--- a/source/blender/editors/gpencil/gpencil_uv.c
+++ b/source/blender/editors/gpencil/gpencil_uv.c
@@ -452,7 +452,7 @@ void GPENCIL_OT_transform_fill(wmOperatorType *ot)
   /* identifiers */
   ot->name = "Transform Stroke Fill";
   ot->idname = "GPENCIL_OT_transform_fill";
-  ot->description = "Transform Grease Pencil Stroke Fill";
+  ot->description = "Transform grease pencil stroke fill";
 
   /* api callbacks */
   ot->invoke = gpencil_transform_fill_invoke;
diff --git a/source/blender/editors/interface/interface_eyedropper_colorband.c b/source/blender/editors/interface/interface_eyedropper_colorband.c
index 76b361a9e68..d32eb415b19 100644
--- a/source/blender/editors/interface/interface_eyedropper_colorband.c
+++ b/source/blender/editors/interface/interface_eyedropper_colorband.c
@@ -349,7 +349,7 @@ static bool eyedropper_colorband_poll(bContext *C)
 void UI_OT_eyedropper_colorramp(wmOperatorType *ot)
 {
   /* identifiers */
-  ot->name = "Eyedropper colorband";
+  ot->name = "Eyedropper Colorband";
   ot->idname = "UI_OT_eyedropper_colorramp";
   ot->description = "Sample a color band";
 
@@ -369,7 +369,7 @@ void UI_OT_eyedropper_colorramp(wmOperatorType *ot)
 void UI_OT_eyedropper_colorramp_point(wmOperatorType *ot)
 {
   /* identifiers */
-  ot->name = "Eyedropper colorband (points)";
+  ot->name = "Eyedropper Colorband (Points)";
   ot->idname = "UI_OT_eyedropper_colorramp_point";
   ot->description = "Point-sample a color band";
 
diff --git a/source/blender/editors/io/io_collada.c b/source/blender/editors/io/io_collada.c
index af505043e6a..bf22c86ad45 100644
--- a/source/blender/editors/io/io_collada.c
+++ b/source/blender/editors/io/io_collada.c
@@ -481,11 +481,11 @@ void WM_OT_collada_export(wmOperatorType *ot)
       {0, NULL, 0, NULL, NULL}};
 
   static const EnumPropertyItem prop_bc_export_ui_section[] = {
-      {BC_UI_SECTION_MAIN, "main", 0, "Main", "Data Export Section"},
-      {BC_UI_SECTION_GEOMETRY, "geometry", 0, "Geom", "Geometry Export Section"},
-      {BC_UI_SECTION_ARMATURE, "armature", 0, "Arm", "Armature Export Section"},
-      {BC_UI_SECTION_ANIMATION, "animation", 0, "Anim", "Animation Export Section"},
-      {BC_UI_SECTION_COLLADA, "collada

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list