[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53583] trunk/blender/source/blender: Add translation contexts for line, mute and clip
Sv. Lockal
lockalsash at gmail.com
Sat Jan 5 13:06:54 CET 2013
Revision: 53583
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53583
Author: lockal
Date: 2013-01-05 12:06:50 +0000 (Sat, 05 Jan 2013)
Log Message:
-----------
Add translation contexts for line, mute and clip
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_sequencer/sequencer_add.c
trunk/blender/source/blender/editors/space_text/text_ops.c
trunk/blender/source/blender/makesrna/intern/rna_space.c
trunk/blender/source/blender/makesrna/intern/rna_speaker.c
trunk/blender/source/blender/makesrna/intern/rna_text.c
Modified: trunk/blender/source/blender/editors/space_sequencer/sequencer_add.c
===================================================================
--- trunk/blender/source/blender/editors/space_sequencer/sequencer_add.c 2013-01-05 11:56:20 UTC (rev 53582)
+++ trunk/blender/source/blender/editors/space_sequencer/sequencer_add.c 2013-01-05 12:06:50 UTC (rev 53583)
@@ -49,6 +49,8 @@
#include "DNA_mask_types.h"
#include "DNA_userdef_types.h"
+#include "BLF_translation.h"
+
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_library.h"
@@ -400,6 +402,7 @@
sequencer_generic_props__internal(ot, SEQPROP_STARTFRAME);
prop = RNA_def_enum(ot->srna, "clip", DummyRNA_NULL_items, 0, "Clip", "");
RNA_def_enum_funcs(prop, RNA_movieclip_itemf);
+ RNA_def_property_translation_context(prop, BLF_I18NCONTEXT_ID_MOVIECLIP);
ot->prop = prop;
}
Modified: trunk/blender/source/blender/editors/space_text/text_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_text/text_ops.c 2013-01-05 11:56:20 UTC (rev 53582)
+++ trunk/blender/source/blender/editors/space_text/text_ops.c 2013-01-05 12:06:50 UTC (rev 53583)
@@ -1931,6 +1931,8 @@
void TEXT_OT_jump(wmOperatorType *ot)
{
+ PropertyRNA *prop;
+
/* identifiers */
ot->name = "Jump";
ot->idname = "TEXT_OT_jump";
@@ -1942,7 +1944,8 @@
ot->poll = text_edit_poll;
/* properties */
- RNA_def_int(ot->srna, "line", 1, 1, INT_MAX, "Line", "Line number to jump to", 1, 10000);
+ prop = RNA_def_int(ot->srna, "line", 1, 1, INT_MAX, "Line", "Line number to jump to", 1, 10000);
+ RNA_def_property_translation_context(prop, BLF_I18NCONTEXT_ID_TEXT);
}
/******************* delete operator **********************/
Modified: trunk/blender/source/blender/makesrna/intern/rna_space.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_space.c 2013-01-05 11:56:20 UTC (rev 53582)
+++ trunk/blender/source/blender/makesrna/intern/rna_space.c 2013-01-05 12:06:50 UTC (rev 53583)
@@ -2722,6 +2722,7 @@
"rna_ConsoleLine_body_set");
RNA_def_property_ui_text(prop, "Line", "Text in the line");
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_CONSOLE, NULL);
+ RNA_def_property_translation_context(prop, BLF_I18NCONTEXT_ID_TEXT);
prop = RNA_def_property(srna, "current_character", PROP_INT, PROP_NONE); /* copied from text editor */
RNA_def_property_int_sdna(prop, NULL, "cursor");
Modified: trunk/blender/source/blender/makesrna/intern/rna_speaker.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_speaker.c 2013-01-05 11:56:20 UTC (rev 53582)
+++ trunk/blender/source/blender/makesrna/intern/rna_speaker.c 2013-01-05 12:06:50 UTC (rev 53583)
@@ -62,6 +62,7 @@
RNA_def_property_boolean_sdna(prop, NULL, "flag", SPK_MUTED);
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
RNA_def_property_ui_text(prop, "Mute", "Mute the speaker");
+ RNA_def_property_translation_context(prop, BLF_I18NCONTEXT_ID_SOUND);
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
#if 0 /* This shouldn't be changed actually, hiding it! */
Modified: trunk/blender/source/blender/makesrna/intern/rna_text.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_text.c 2013-01-05 11:56:20 UTC (rev 53582)
+++ trunk/blender/source/blender/makesrna/intern/rna_text.c 2013-01-05 12:06:50 UTC (rev 53583)
@@ -30,6 +30,8 @@
#include "MEM_guardedalloc.h"
+#include "BLF_translation.h"
+
#include "BKE_text.h"
#include "RNA_define.h"
@@ -127,6 +129,7 @@
RNA_def_property_string_funcs(prop, "rna_TextLine_body_get", "rna_TextLine_body_length", "rna_TextLine_body_set");
RNA_def_property_ui_text(prop, "Line", "Text in the line");
RNA_def_property_update(prop, NC_TEXT | NA_EDITED, NULL);
+ RNA_def_property_translation_context(prop, BLF_I18NCONTEXT_ID_TEXT);
}
static void rna_def_text(BlenderRNA *brna)
More information about the Bf-blender-cvs
mailing list