[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40438] trunk/blender: check that descriptions dont end with a '.', for non release builds.

Campbell Barton ideasman42 at gmail.com
Wed Sep 21 19:52:51 CEST 2011


Revision: 40438
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40438
Author:   campbellbarton
Date:     2011-09-21 17:52:51 +0000 (Wed, 21 Sep 2011)
Log Message:
-----------
check that descriptions dont end with a '.', for non release builds.
this is annoying for translators so rather then correct along the way which gives merge conflicts for branches - print a complaint message.

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_operators/mesh.py
    trunk/blender/release/scripts/startup/bl_operators/sequencer.py
    trunk/blender/release/scripts/startup/bl_operators/uvcalc_smart_project.py
    trunk/blender/release/scripts/startup/bl_operators/wm.py
    trunk/blender/source/blender/editors/object/object_vgroup.c
    trunk/blender/source/blender/makesrna/intern/rna_actuator.c
    trunk/blender/source/blender/makesrna/intern/rna_define.c
    trunk/blender/source/blender/windowmanager/intern/wm_operators.c

Modified: trunk/blender/release/scripts/startup/bl_operators/mesh.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_operators/mesh.py	2011-09-21 17:34:50 UTC (rev 40437)
+++ trunk/blender/release/scripts/startup/bl_operators/mesh.py	2011-09-21 17:52:51 UTC (rev 40438)
@@ -25,7 +25,7 @@
 
 
 class MeshSelectInteriorFaces(Operator):
-    '''Select faces where all edges have more then 2 face users.'''
+    '''Select faces where all edges have more then 2 face users'''
 
     bl_idname = "mesh.faces_select_interior"
     bl_label = "Select Interior Faces"

Modified: trunk/blender/release/scripts/startup/bl_operators/sequencer.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_operators/sequencer.py	2011-09-21 17:34:50 UTC (rev 40437)
+++ trunk/blender/release/scripts/startup/bl_operators/sequencer.py	2011-09-21 17:52:51 UTC (rev 40438)
@@ -25,7 +25,7 @@
 
 
 class SequencerCrossfadeSounds(Operator):
-    '''Do crossfading volume animation of two selected sound strips.'''
+    '''Do crossfading volume animation of two selected sound strips'''
 
     bl_idname = "sequencer.crossfade_sounds"
     bl_label = "Crossfade sounds"
@@ -76,7 +76,7 @@
 
 
 class SequencerCutMulticam(Operator):
-    '''Cut multicam strip and select camera.'''
+    '''Cut multicam strip and select camera'''
 
     bl_idname = "sequencer.cut_multicam"
     bl_label = "Cut multicam"

Modified: trunk/blender/release/scripts/startup/bl_operators/uvcalc_smart_project.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_operators/uvcalc_smart_project.py	2011-09-21 17:34:50 UTC (rev 40437)
+++ trunk/blender/release/scripts/startup/bl_operators/uvcalc_smart_project.py	2011-09-21 17:52:51 UTC (rev 40438)
@@ -1105,7 +1105,8 @@
 
 
 class SmartProject(Operator):
-    '''This script projection unwraps the selected faces of a mesh. it operates on all selected mesh objects, and can be used unwrap selected faces, or all faces.'''
+    '''This script projection unwraps the selected faces of a mesh. ''' \
+    '''it operates on all selected mesh objects, and can be used unwrap selected faces, or all faces'''
     bl_idname = "uv.smart_project"
     bl_label = "Smart UV Project"
     bl_options = {'REGISTER', 'UNDO'}

Modified: trunk/blender/release/scripts/startup/bl_operators/wm.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_operators/wm.py	2011-09-21 17:34:50 UTC (rev 40437)
+++ trunk/blender/release/scripts/startup/bl_operators/wm.py	2011-09-21 17:52:51 UTC (rev 40438)
@@ -172,7 +172,7 @@
 
 
 class WM_OT_context_set_boolean(Operator):
-    '''Set a context value.'''
+    '''Set a context value'''
     bl_idname = "wm.context_set_boolean"
     bl_label = "Context Set Boolean"
     bl_options = {'UNDO', 'INTERNAL'}
@@ -188,7 +188,7 @@
 
 
 class WM_OT_context_set_int(Operator):  # same as enum
-    '''Set a context value.'''
+    '''Set a context value'''
     bl_idname = "wm.context_set_int"
     bl_label = "Context Set"
     bl_options = {'UNDO', 'INTERNAL'}
@@ -205,7 +205,7 @@
 
 
 class WM_OT_context_scale_int(Operator):
-    '''Scale an int context value.'''
+    '''Scale an int context value'''
     bl_idname = "wm.context_scale_int"
     bl_label = "Context Set"
     bl_options = {'UNDO', 'INTERNAL'}
@@ -248,7 +248,7 @@
 
 
 class WM_OT_context_set_float(Operator):  # same as enum
-    '''Set a context value.'''
+    '''Set a context value'''
     bl_idname = "wm.context_set_float"
     bl_label = "Context Set Float"
     bl_options = {'UNDO', 'INTERNAL'}
@@ -265,7 +265,7 @@
 
 
 class WM_OT_context_set_string(Operator):  # same as enum
-    '''Set a context value.'''
+    '''Set a context value'''
     bl_idname = "wm.context_set_string"
     bl_label = "Context Set String"
     bl_options = {'UNDO', 'INTERNAL'}
@@ -281,7 +281,7 @@
 
 
 class WM_OT_context_set_enum(Operator):
-    '''Set a context value.'''
+    '''Set a context value'''
     bl_idname = "wm.context_set_enum"
     bl_label = "Context Set Enum"
     bl_options = {'UNDO', 'INTERNAL'}
@@ -297,7 +297,7 @@
 
 
 class WM_OT_context_set_value(Operator):
-    '''Set a context value.'''
+    '''Set a context value'''
     bl_idname = "wm.context_set_value"
     bl_label = "Context Set Value"
     bl_options = {'UNDO', 'INTERNAL'}
@@ -318,7 +318,7 @@
 
 
 class WM_OT_context_toggle(Operator):
-    '''Toggle a context value.'''
+    '''Toggle a context value'''
     bl_idname = "wm.context_toggle"
     bl_label = "Context Toggle"
     bl_options = {'UNDO', 'INTERNAL'}
@@ -337,7 +337,7 @@
 
 
 class WM_OT_context_toggle_enum(Operator):
-    '''Toggle a context value.'''
+    '''Toggle a context value'''
     bl_idname = "wm.context_toggle_enum"
     bl_label = "Context Toggle Values"
     bl_options = {'UNDO', 'INTERNAL'}
@@ -371,7 +371,7 @@
 
 class WM_OT_context_cycle_int(Operator):
     '''Set a context value. Useful for cycling active material, '''
-    '''vertex keys, groups' etc.'''
+    '''vertex keys, groups' etc'''
     bl_idname = "wm.context_cycle_int"
     bl_label = "Context Int Cycle"
     bl_options = {'UNDO', 'INTERNAL'}
@@ -405,7 +405,7 @@
 
 
 class WM_OT_context_cycle_enum(Operator):
-    '''Toggle a context value.'''
+    '''Toggle a context value'''
     bl_idname = "wm.context_cycle_enum"
     bl_label = "Context Enum Cycle"
     bl_options = {'UNDO', 'INTERNAL'}
@@ -458,7 +458,7 @@
 
 class WM_OT_context_cycle_array(Operator):
     '''Set a context array value.
-    Useful for cycling the active mesh edit mode.'''
+    Useful for cycling the active mesh edit mode'''
     bl_idname = "wm.context_cycle_array"
     bl_label = "Context Array Cycle"
     bl_options = {'UNDO', 'INTERNAL'}
@@ -518,7 +518,7 @@
 
 
 class WM_OT_context_set_id(Operator):
-    '''Toggle a context value.'''
+    '''Toggle a context value'''
     bl_idname = "wm.context_set_id"
     bl_label = "Set Library ID"
     bl_options = {'UNDO', 'INTERNAL'}

Modified: trunk/blender/source/blender/editors/object/object_vgroup.c
===================================================================
--- trunk/blender/source/blender/editors/object/object_vgroup.c	2011-09-21 17:34:50 UTC (rev 40437)
+++ trunk/blender/source/blender/editors/object/object_vgroup.c	2011-09-21 17:52:51 UTC (rev 40438)
@@ -2355,7 +2355,7 @@
 	/* identifiers */
 	ot->name= "Fix Vertex Group Deform";
 	ot->idname= "OBJECT_OT_vertex_group_fix";
-	ot->description= "Modify the position of selected vertices by changing only their respective groups' weights (this tool may be slow for many vertices).";
+	ot->description= "Modify the position of selected vertices by changing only their respective groups' weights (this tool may be slow for many vertices)";
 	
 	/* api callbacks */
 	ot->poll= vertex_group_poll;
@@ -2363,9 +2363,9 @@
 	
 	/* flags */
 	ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
-	RNA_def_float(ot->srna, "dist", 0.0f, -FLT_MAX, FLT_MAX, "Distance", "The distance to move to.", -10.0f, 10.0f);	
-	RNA_def_float(ot->srna, "strength", 1.f, -2.0f, FLT_MAX, "Strength", "The distance moved can be changed by this multiplier.", -2.0f, 2.0f);
-	RNA_def_float(ot->srna, "accuracy", 1.0f, 0.05f, FLT_MAX, "Change Sensitivity", "Changes the amount weights are altered with each iteration: lower values are slower.", 0.05f, 1.f);
+	RNA_def_float(ot->srna, "dist", 0.0f, -FLT_MAX, FLT_MAX, "Distance", "The distance to move to", -10.0f, 10.0f);
+	RNA_def_float(ot->srna, "strength", 1.f, -2.0f, FLT_MAX, "Strength", "The distance moved can be changed by this multiplier", -2.0f, 2.0f);
+	RNA_def_float(ot->srna, "accuracy", 1.0f, 0.05f, FLT_MAX, "Change Sensitivity", "Changes the amount weights are altered with each iteration: lower values are slower", 0.05f, 1.f);
 }
 
 

Modified: trunk/blender/source/blender/makesrna/intern/rna_actuator.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_actuator.c	2011-09-21 17:34:50 UTC (rev 40437)
+++ trunk/blender/source/blender/makesrna/intern/rna_actuator.c	2011-09-21 17:52:51 UTC (rev 40438)
@@ -861,7 +861,7 @@
 		{0, NULL, 0, NULL, NULL}};
 	
 	srna= RNA_def_struct(brna, "CameraActuator", "Actuator");
-	RNA_def_struct_ui_text(srna, "Camera Actuator", "Actuator to...");
+	RNA_def_struct_ui_text(srna, "Camera Actuator", "");
 	RNA_def_struct_sdna_from(srna, "bCameraActuator", "data");
 
 	prop= RNA_def_property(srna, "object", PROP_POINTER, PROP_NONE);
@@ -1387,7 +1387,7 @@
 		{0, NULL, 0, NULL, NULL}};	
 		
 	srna= RNA_def_struct(brna, "SceneActuator", "Actuator");
-	RNA_def_struct_ui_text(srna, "Scene Actuator", "Actuator to...");
+	RNA_def_struct_ui_text(srna, "Scene Actuator", "");
 	RNA_def_struct_sdna_from(srna, "bSceneActuator", "data");
 
 	prop= RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE);
@@ -1445,7 +1445,7 @@
 		{0, NULL, 0, NULL, NULL}};	
 
 	srna= RNA_def_struct(brna, "RandomActuator", "Actuator");
-	RNA_def_struct_ui_text(srna, "Random Actuator", "Actuator to...");
+	RNA_def_struct_ui_text(srna, "Random Actuator", "");
 	RNA_def_struct_sdna_from(srna, "bRandomActuator", "data");
 
 	prop= RNA_def_property(srna, "seed", PROP_INT, PROP_NONE);
@@ -1562,7 +1562,7 @@
 		{0, NULL, 0, NULL, NULL}};
 
 	srna= RNA_def_struct(brna, "MessageActuator", "Actuator");
-	RNA_def_struct_ui_text(srna, "Message Actuator", "Actuator to...");
+	RNA_def_struct_ui_text(srna, "Message Actuator", "");
 	RNA_def_struct_sdna_from(srna, "bMessageActuator", "data");
 
 	prop= RNA_def_property(srna, "to_property", PROP_STRING, PROP_NONE);
@@ -1877,7 +1877,7 @@
 		{0, NULL, 0, NULL, NULL}};
 
 	srna= RNA_def_struct(brna, "ArmatureActuator", "Actuator");
-	RNA_def_struct_ui_text(srna, "Armature Actuator", "Actuator to...");
+	RNA_def_struct_ui_text(srna, "Armature Actuator", "");
 	RNA_def_struct_sdna_from(srna, "bArmatureActuator", "data");
 
 	prop= RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE);

Modified: trunk/blender/source/blender/makesrna/intern/rna_define.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_define.c	2011-09-21 17:34:50 UTC (rev 40437)
+++ trunk/blender/source/blender/makesrna/intern/rna_define.c	2011-09-21 17:52:51 UTC (rev 40438)
@@ -58,6 +58,21 @@
 #define MAX2(x,y) ((x)>(y)? (x): (y))

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list