[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [51049] trunk/blender: Add translation context for volume (Audio), pitch (Rotation) and rename tip->tooltip for custom properties
Sv. Lockal
lockalsash at gmail.com
Thu Oct 4 20:21:34 CEST 2012
Revision: 51049
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=51049
Author: lockal
Date: 2012-10-04 18:21:34 +0000 (Thu, 04 Oct 2012)
Log Message:
-----------
Add translation context for volume (Audio), pitch (Rotation) and rename tip->tooltip for custom properties
Tracked in [#31062] [2.6x] Context Ambiguity List & Discussion (keep updating)
Modified Paths:
--------------
trunk/blender/release/scripts/startup/bl_operators/wm.py
trunk/blender/source/blender/makesrna/intern/rna_actuator.c
trunk/blender/source/blender/makesrna/intern/rna_boid.c
trunk/blender/source/blender/makesrna/intern/rna_scene.c
trunk/blender/source/blender/makesrna/intern/rna_sequencer.c
trunk/blender/source/blender/makesrna/intern/rna_speaker.c
Modified: trunk/blender/release/scripts/startup/bl_operators/wm.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_operators/wm.py 2012-10-04 17:52:12 UTC (rev 51048)
+++ trunk/blender/release/scripts/startup/bl_operators/wm.py 2012-10-04 18:21:34 UTC (rev 51049)
@@ -1028,7 +1028,7 @@
min = rna_min
max = rna_max
description = StringProperty(
- name="Tip",
+ name="Tooltip",
)
def execute(self, context):
Modified: trunk/blender/source/blender/makesrna/intern/rna_actuator.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_actuator.c 2012-10-04 17:52:12 UTC (rev 51048)
+++ trunk/blender/source/blender/makesrna/intern/rna_actuator.c 2012-10-04 18:21:34 UTC (rev 51049)
@@ -971,6 +971,7 @@
RNA_def_property_ui_range(prop, 0.0, 1.0, 1, 2);
RNA_def_property_range(prop, 0.0, 2.0);
RNA_def_property_ui_text(prop, "Volume", "Initial volume of the sound");
+ RNA_def_property_translation_context(prop, "Audio");
RNA_def_property_update(prop, NC_LOGIC, NULL);
prop = RNA_def_property(srna, "pitch", PROP_FLOAT, PROP_NONE);
Modified: trunk/blender/source/blender/makesrna/intern/rna_boid.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_boid.c 2012-10-04 17:52:12 UTC (rev 51048)
+++ trunk/blender/source/blender/makesrna/intern/rna_boid.c 2012-10-04 18:21:34 UTC (rev 51049)
@@ -521,6 +521,7 @@
RNA_def_property_float_sdna(prop, NULL, "pitch");
RNA_def_property_range(prop, 0.0, 2.0);
RNA_def_property_ui_text(prop, "Pitch", "Amount of rotation around side vector");
+ RNA_def_property_translation_context(prop, "Rotation");
RNA_def_property_update(prop, 0, "rna_Boids_reset");
prop = RNA_def_property(srna, "height", PROP_FLOAT, PROP_NONE);
Modified: trunk/blender/source/blender/makesrna/intern/rna_scene.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_scene.c 2012-10-04 17:52:12 UTC (rev 51048)
+++ trunk/blender/source/blender/makesrna/intern/rna_scene.c 2012-10-04 18:21:34 UTC (rev 51049)
@@ -3106,6 +3106,7 @@
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
RNA_def_property_range(prop, 0.0f, 1.0f);
RNA_def_property_ui_text(prop, "Volume", "Audio volume");
+ RNA_def_property_translation_context(prop, "Audio");
RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL);
#endif
@@ -4517,6 +4518,7 @@
RNA_def_property_float_sdna(prop, NULL, "audio.volume");
RNA_def_property_range(prop, 0.0f, 1.0f);
RNA_def_property_ui_text(prop, "Volume", "Audio volume");
+ RNA_def_property_translation_context(prop, "Audio");
RNA_def_property_update(prop, NC_SCENE, NULL);
RNA_def_property_float_funcs(prop, NULL, "rna_Scene_volume_set", NULL);
Modified: trunk/blender/source/blender/makesrna/intern/rna_sequencer.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_sequencer.c 2012-10-04 17:52:12 UTC (rev 51048)
+++ trunk/blender/source/blender/makesrna/intern/rna_sequencer.c 2012-10-04 18:21:34 UTC (rev 51049)
@@ -1858,6 +1858,7 @@
RNA_def_property_float_sdna(prop, NULL, "volume");
RNA_def_property_range(prop, 0.0f, 100.0f);
RNA_def_property_ui_text(prop, "Volume", "Playback volume of the sound");
+ RNA_def_property_translation_context(prop, "Audio");
RNA_def_property_float_funcs(prop, NULL, "rna_Sequence_volume_set", NULL);
RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_update");
Modified: trunk/blender/source/blender/makesrna/intern/rna_speaker.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_speaker.c 2012-10-04 17:52:12 UTC (rev 51048)
+++ trunk/blender/source/blender/makesrna/intern/rna_speaker.c 2012-10-04 18:21:34 UTC (rev 51049)
@@ -151,6 +151,7 @@
RNA_def_property_float_sdna(prop, NULL, "volume");
RNA_def_property_range(prop, 0.0f, 1.0f);
RNA_def_property_ui_text(prop, "Volume", "How loud the sound is");
+ RNA_def_property_translation_context(prop, "Audio");
/* RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_volume_set", NULL); */
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
More information about the Bf-blender-cvs
mailing list