/release/scripts: Removed final points in UI strings and messages.
authorBastien Montagne <montagne29@wanadoo.fr>
Mon, 19 Sep 2011 14:00:42 +0000 (14:00 +0000)
committerBastien Montagne <montagne29@wanadoo.fr>
Mon, 19 Sep 2011 14:00:42 +0000 (14:00 +0000)
16 files changed:
release/scripts/modules/bpy/utils.py
release/scripts/modules/bpy_extras/io_utils.py
release/scripts/modules/bpy_types.py
release/scripts/modules/console_python.py
release/scripts/startup/bl_operators/image.py
release/scripts/startup/bl_operators/object.py
release/scripts/startup/bl_operators/object_quick_effects.py
release/scripts/startup/bl_operators/sequencer.py
release/scripts/startup/bl_operators/uvcalc_follow_active.py
release/scripts/startup/bl_operators/uvcalc_lightmap.py
release/scripts/startup/bl_operators/uvcalc_smart_project.py
release/scripts/startup/bl_operators/wm.py
release/scripts/startup/bl_ui/properties_particle.py
release/scripts/startup/bl_ui/properties_scene.py
release/scripts/startup/bl_ui/space_userpref.py
release/scripts/templates/operator_export.py

index a6304378cc45bc26a813d47d12fb39b37edd3f2c..fdd22f403a49f40fe96fef027c094fc11f4d5ac6 100644 (file)
@@ -63,7 +63,7 @@ def _test_import(module_name, loaded_modules):
         return None
     if "." in module_name:
         print("Ignoring '%s', can't import files containing "
-              "multiple periods." % module_name)
+              "multiple periods" % module_name)
         return None
 
     if use_time:
@@ -159,7 +159,7 @@ def load_scripts(reload_scripts=False, refresh_scripts=False):
                 traceback.print_exc()
         else:
             print("\nWarning! '%s' has no register function, "
-                  "this is now a requirement for registerable scripts." %
+                  "this is now a requirement for registerable scripts" %
                   mod.__file__)
 
     def unregister_module_call(mod):
index 3f6a3682e7cdf2e0ca10439fff597588e32957da..91546e0282909ca0da699e04884629976b518b6e 100644 (file)
@@ -233,8 +233,8 @@ def axis_conversion(from_forward='Y', from_up='Z', to_forward='Y', to_up='Z'):
         return Matrix().to_3x3()
 
     if from_forward[-1] == from_up[-1] or to_forward[-1] == to_up[-1]:
-        raise Exception("invalid axis arguments passed, "
-                        "can't use up/forward on the same axis.")
+        raise Exception("Invalid axis arguments passed, "
+                        "can't use up/forward on the same axis")
 
     value = reduce(int.__or__, (_axis_convert_num[a] << (i * 3)
                    for i, a in enumerate((from_forward,
index b3127733c1eb8d8da655f510b31722a139c0a96a..6b65f720a5c6947319e7f3ba9f260e04ad416829 100644 (file)
@@ -206,7 +206,7 @@ class _GenericBone:
 
     @property
     def children_recursive(self):
-        """a list of all children from this bone."""
+        """A list of all children from this bone."""
         bones_children = []
         for bone in self._other_bones:
             index = bone.parent_index(self)
index 425ea2101040d4d9e60e9a9e4429e15082f0b8ab..94d0c8c8614612906f08b915c82dd77ea3923a7a 100644 (file)
@@ -299,7 +299,7 @@ def banner(context):
     add_scrollback("Builtin Modules:     bpy, bpy.data, bpy.ops, bpy.props, bpy.types, bpy.context, bpy.utils, bgl, blf, mathutils", 'OUTPUT')
     add_scrollback("Convenience Imports: from mathutils import *; from math import *", 'OUTPUT')
     add_scrollback("", 'OUTPUT')
-    # add_scrollback("  WARNING!!! Blender 2.5 API is subject to change, see API reference for more info.", 'ERROR')
+    # add_scrollback("  WARNING!!! Blender 2.5 API is subject to change, see API reference for more info", 'ERROR')
     # add_scrollback("", 'OUTPUT')
     sc.prompt = PROMPT
 
index 9226cbed51b737ba05d1a7860407d90cb75acb34..2b190e1aee177d6ef0d0efb8321d83ce9e2f6ad5 100644 (file)
@@ -74,7 +74,7 @@ class EditExternally(Operator):
         if not os.path.exists(filepath):
             self.report({'ERROR'},
                         "Image path %r not found, image may be packed or "
-                        "unsaved." % filepath)
+                        "unsaved" % filepath)
             return {'CANCELLED'}
 
         cmd = self._editor_guess(context) + [filepath]
index 6c9f27afaa58c531fcf44170b54657206c1e4bc0..d7c6cfc0565302644928a7bd6e10a6d87b0f9790 100644 (file)
@@ -283,11 +283,11 @@ class ShapeTransfer(Operator):
                     ),
                    ('RELATIVE_FACE',
                     "Relative Face",
-                    "Calculate relative position (using faces).",
+                    "Calculate relative position (using faces)",
                     ),
                    ('RELATIVE_EDGE',
                    "Relative Edge",
-                   "Calculate relative position (using edges).",
+                   "Calculate relative position (using edges)",
                    ),
                    ),
             name="Transformation Mode",
@@ -297,7 +297,7 @@ class ShapeTransfer(Operator):
     use_clamp = BoolProperty(
             name="Clamp Offset",
             description=("Clamp the transformation to the distance each "
-                         "vertex moves in the original shape."),
+                         "vertex moves in the original shape"),
             default=False,
             )
 
@@ -503,7 +503,7 @@ class ShapeTransfer(Operator):
             ob_act, objects = objects[0], [ob_act]
 
         if ob_act.type != 'MESH':
-            self.report({'ERROR'}, "Other object is not a mesh.")
+            self.report({'ERROR'}, "Other object is not a mesh")
             return {'CANCELLED'}
 
         if ob_act.active_shape_key is None:
index 48b547980d4b6bd8dbffff4801532ae37891fd90..c13a04eb87aa544062c87f3eeadd757a8679caf2 100644 (file)
@@ -77,7 +77,7 @@ class QuickFur(Operator):
                         if obj.type == 'MESH']
 
         if not mesh_objects:
-            self.report({'ERROR'}, "Select at least one mesh object.")
+            self.report({'ERROR'}, "Select at least one mesh object")
             return {'CANCELLED'}
 
         mat = bpy.data.materials.new("Fur Material")
@@ -157,7 +157,7 @@ class QuickExplode(Operator):
 
     fade = BoolProperty(
             name="Fade",
-            description="Fade the pieces over time.",
+            description="Fade the pieces over time",
             default=True,
             )
 
@@ -307,7 +307,7 @@ class QuickSmoke(Operator):
 
     show_flows = BoolProperty(
             name="Render Smoke Objects",
-            description="Keep the smoke objects visible during rendering.",
+            description="Keep the smoke objects visible during rendering",
             default=False,
             )
 
@@ -319,7 +319,7 @@ class QuickSmoke(Operator):
         max_co = -min_co
 
         if not mesh_objects:
-            self.report({'ERROR'}, "Select at least one mesh object.")
+            self.report({'ERROR'}, "Select at least one mesh object")
             return {'CANCELLED'}
 
         for obj in mesh_objects:
@@ -428,7 +428,7 @@ class QuickFluid(Operator):
             )
     show_flows = BoolProperty(
             name="Render Fluid Objects",
-            description="Keep the fluid objects visible during rendering.",
+            description="Keep the fluid objects visible during rendering",
             default=False,
             )
     start_baking = BoolProperty(
@@ -446,7 +446,7 @@ class QuickFluid(Operator):
         max_co = Vector((-100000, -100000, -100000))
 
         if not mesh_objects:
-            self.report({'ERROR'}, "Select at least one mesh object.")
+            self.report({'ERROR'}, "Select at least one mesh object")
             return {'CANCELLED'}
 
         for obj in mesh_objects:
index 856e182279a02233658421c8626c5f477c7e4109..53654ffbc6fb31d193e2ca43064f3a18c1120a88 100644 (file)
@@ -51,7 +51,7 @@ class SequencerCrossfadeSounds(Operator):
                     seq2 = None
                     break
         if seq2 is None:
-            self.report({'ERROR'}, "Select 2 sound strips.")
+            self.report({'ERROR'}, "Select 2 sound strips")
             return {'CANCELLED'}
         if seq1.frame_final_start > seq2.frame_final_start:
             s = seq1
@@ -71,7 +71,7 @@ class SequencerCrossfadeSounds(Operator):
             context.scene.frame_current = tempcfra
             return {'FINISHED'}
         else:
-            self.report({'ERROR'}, "The selected strips don't overlap.")
+            self.report({'ERROR'}, "The selected strips don't overlap")
             return {'CANCELLED'}
 
 
index 6c258d094e83c453c9d5c31b19797377bbd1177a..05656f5397d4b9b1d2dd2b49e6bffb3c79ae22eb 100644 (file)
@@ -140,7 +140,7 @@ def extend(obj, operator, EXTEND_MODE):
 
     face_act = me.faces.active
     if face_act == -1:
-        operator.report({'ERROR'}, "No active face.")
+        operator.report({'ERROR'}, "No active face")
         return
 
     face_sel = [f for f in me.faces if len(f.vertices) == 4 and f.select]
@@ -152,7 +152,7 @@ def extend(obj, operator, EXTEND_MODE):
             break
 
     if face_act_local_index == -1:
-        operator.report({'ERROR'}, "Active face not selected.")
+        operator.report({'ERROR'}, "Active face not selected")
         return
 
     # Modes
index 060fe400045d03a5beef95f776387a0a3573fcff..d9cdb1794c2d75b74fcdafdb28792d5185511b4c 100644 (file)
@@ -531,7 +531,7 @@ def unwrap(operator, context, **kwargs):
         meshes = list({me for obj in context.selected_objects if obj.type == 'MESH' for me in (obj.data,) if me.faces and me.library is None})
 
     if not meshes:
-        operator.report({'ERROR'}, "No mesh object.")
+        operator.report({'ERROR'}, "No mesh object")
         return {'CANCELLED'}
 
     lightmap_uvpack(meshes, **kwargs)
index 23838588f43992d7235c38fa2ff00ba64bff8af8..c4466e6453f20d089aef49ad07a41e8ea34b788f 100644 (file)
@@ -1070,11 +1070,11 @@ def main(context,
 
     # We want to pack all in 1 go, so pack now
     if USER_SHARE_SPACE:
-#XXX           Window.DrawProgressBar(0.9, "Box Packing for all objects...")
+#XXX        Window.DrawProgressBar(0.9, "Box Packing for all objects...")
         packIslands(collected_islandList)
 
     print("Smart Projection time: %.2f" % (time.time() - time1))
-    # Window.DrawProgressBar(0.9, "Smart Projections done, time: %.2f sec." % (time.time() - time1))
+    # Window.DrawProgressBar(0.9, "Smart Projections done, time: %.2f sec" % (time.time() - time1))
 
     if is_editmode:
         bpy.ops.object.mode_set(mode='EDIT')
index aa09a088c4fc246a15f334f42f9cd5421291036e..861255f167f466f7b41d81c1d3729f9e75d532c0 100644 (file)
@@ -218,7 +218,7 @@ class WM_OT_context_scale_int(Operator):
             )
     always_step = BoolProperty(
             name="Always Step",
-            description="Always adjust the value by a minimum of 1 when 'value' is not 1.0.",
+            description="Always adjust the value by a minimum of 1 when 'value' is not 1.0",
             default=True,
             )
 
@@ -567,7 +567,7 @@ doc_new = StringProperty(
         )
 
 data_path_iter = StringProperty(
-        description="The data path relative to the context, must point to an iterable.")
+        description="The data path relative to the context, must point to an iterable")
 
 data_path_item = StringProperty(
         description="The data path from each iterable to the value (int or float)")
@@ -1175,7 +1175,7 @@ class WM_OT_copy_prev_settings(Operator):
             if bpy.data.is_saved is bpy.data.is_dirty is False:
                 bpy.ops.wm.read_homefile()
             else:
-                self.report({'INFO'}, "Reload Start-Up file to restore settings.")
+                self.report({'INFO'}, "Reload Start-Up file to restore settings")
             return {'FINISHED'}
 
         return {'CANCELLED'}
index 6f58f060504f7d93f567fffbd54015db3f59dbba..d4378b0d094cd383855112d7e53b73136d80ffa3 100644 (file)
@@ -108,7 +108,7 @@ class PARTICLE_PT_context_particles(ParticleButtonsPanel, Panel):
             layout.template_ID(context.space_data, "pin_id")
 
             if part.is_fluid:
-                layout.label(text="Settings used for fluid.")
+                layout.label(text="Settings used for fluid")
                 return
 
             layout.prop(part, "type", text="Type")
@@ -145,7 +145,7 @@ class PARTICLE_PT_context_particles(ParticleButtonsPanel, Panel):
             #row.label(text="Render")
 
             if part.is_fluid:
-                layout.label(text=str(part.count) + " fluid particles for this frame.")
+                layout.label(text=str(part.count) + " fluid particles for this frame")
                 return
 
             row = col.row()
@@ -721,7 +721,7 @@ class PARTICLE_PT_boidbrain(ParticleButtonsPanel, Panel):
                 row.prop(rule, "use_predict")
                 row.prop(rule, "fear_factor")
             elif rule.type == 'FOLLOW_PATH':
-                row.label(text="Not yet functional.")
+                row.label(text="Not yet functional")
             elif rule.type == 'AVOID_COLLISION':
                 row.prop(rule, "use_avoid")
                 row.prop(rule, "use_avoid_collision")
@@ -1050,7 +1050,7 @@ class PARTICLE_PT_children(ParticleButtonsPanel, Panel):
             sub = col.column(align=True)
             sub.label(text="Parting not")
             sub.label(text="available with")
-            sub.label(text="virtual parents.")
+            sub.label(text="virtual parents")
         else:
             sub = col.column(align=True)
             sub.prop(part, "child_parting_factor", text="Parting", slider=True)
index 66f967bb6e1d63ed01b5c4832dff43db6f75cfcb..5a25e608a39251db13bf7a59f5cbc00c335598df 100644 (file)
@@ -228,22 +228,22 @@ class SCENE_PT_custom_props(SceneButtonsPanel, PropertyPanel, Panel):
 
 
 class ANIM_OT_keying_set_export(Operator):
-    "Export Keying Set to a python script."
+    "Export Keying Set to a python script"
     bl_idname = "anim.keying_set_export"
     bl_label = "Export Keying Set..."
 
-    filepath = bpy.props.StringProperty(name="File Path", description="Filepath to write file to.")
+    filepath = bpy.props.StringProperty(name="File Path", description="Filepath to write file to")
     filter_folder = bpy.props.BoolProperty(name="Filter folders", description="", default=True, options={'HIDDEN'})
     filter_text = bpy.props.BoolProperty(name="Filter text", description="", default=True, options={'HIDDEN'})
     filter_python = bpy.props.BoolProperty(name="Filter python", description="", default=True, options={'HIDDEN'})
 
     def execute(self, context):
         if not self.filepath:
-            raise Exception("Filepath not set.")
+            raise Exception("Filepath not set")
 
         f = open(self.filepath, "w")
         if not f:
-            raise Exception("Could not open file.")
+            raise Exception("Could not open file")
 
         scene = context.scene
         ks = scene.keying_sets.active
index 67aca5eb4c151d37d76e7e0eb4060030f8e2c37e..3e3ca913e884a1c212d18165f690189cddcf5761 100644 (file)
@@ -1104,8 +1104,8 @@ class WM_OT_addon_enable(Operator):
             if info_ver > bpy.app.version:
                 self.report({'WARNING'}, ("This script was written Blender "
                                           "version %d.%d.%d and might not "
-                                          "function (correctly).\n"
-                                          "The script is enabled though.") %
+                                          "function (correctly)"
+                                          "though it is enabled") %
                                          info_ver)
             return {'FINISHED'}
         else:
index b1d53e6ee0cbdaaed60ad37d33834430de00914f..3a7040ae2d2ebbfde130dd3cc2280f9aecb73489 100644 (file)
@@ -41,7 +41,7 @@ class ExportSomeData(bpy.types.Operator, ExportHelper):
             name="Example Enum",
             description="Choose between two items",
             items=(('OPT_A', "First Option", "Description one"),
-                   ('OPT_B', "Second Option", "Description two.")),
+                   ('OPT_B', "Second Option", "Description two")),
             default='OPT_A',
             )