[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [55308] trunk/blender: Fix/ disambiguation for some "Clip" i18n messages.
Bastien Montagne
montagne29 at wanadoo.fr
Fri Mar 15 16:13:34 CET 2013
Revision: 55308
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55308
Author: mont29
Date: 2013-03-15 15:13:34 +0000 (Fri, 15 Mar 2013)
Log Message:
-----------
Fix/disambiguation for some "Clip" i18n messages.
Modified Paths:
--------------
trunk/blender/release/scripts/startup/bl_ui/space_clip.py
trunk/blender/source/blender/makesrna/intern/rna_space.c
Modified: trunk/blender/release/scripts/startup/bl_ui/space_clip.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_clip.py 2013-03-15 15:12:46 UTC (rev 55307)
+++ trunk/blender/release/scripts/startup/bl_ui/space_clip.py 2013-03-15 15:13:34 UTC (rev 55308)
@@ -879,6 +879,7 @@
bl_space_type = 'CLIP_EDITOR'
bl_region_type = 'TOOLS'
bl_label = "Clip"
+ bl_translation_context = bpy.app.translations.contexts.id_movieclip
def draw(self, context):
layout = self.layout
@@ -933,6 +934,7 @@
class CLIP_MT_clip(Menu):
bl_label = "Clip"
+ bl_translation_context = bpy.app.translations.contexts.id_movieclip
def draw(self, context):
layout = self.layout
Modified: trunk/blender/source/blender/makesrna/intern/rna_space.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_space.c 2013-03-15 15:12:46 UTC (rev 55307)
+++ trunk/blender/source/blender/makesrna/intern/rna_space.c 2013-03-15 15:13:34 UTC (rev 55308)
@@ -3338,6 +3338,7 @@
RNA_def_property_enum_sdna(prop, NULL, "view");
RNA_def_property_enum_items(prop, view_items);
RNA_def_property_ui_text(prop, "View", "Type of the clip editor view");
+ RNA_def_property_translation_context(prop, BLF_I18NCONTEXT_ID_MOVIECLIP);
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_CLIP, "rna_SpaceClipEditor_view_type_update");
/* show pattern */
@@ -3511,6 +3512,7 @@
RNA_def_property_enum_sdna(prop, NULL, "gpencil_src");
RNA_def_property_enum_items(prop, gpencil_source_items);
RNA_def_property_ui_text(prop, "Grease Pencil Source", "Where the grease pencil comes from");
+ RNA_def_property_translation_context(prop, BLF_I18NCONTEXT_ID_MOVIECLIP);
RNA_def_property_update(prop, NC_MOVIECLIP | ND_DISPLAY, NULL);
/* pivot point */
More information about the Bf-blender-cvs
mailing list