Fix/disambiguation for some "Clip" i18n messages.
authorBastien Montagne <montagne29@wanadoo.fr>
Fri, 15 Mar 2013 15:13:34 +0000 (15:13 +0000)
committerBastien Montagne <montagne29@wanadoo.fr>
Fri, 15 Mar 2013 15:13:34 +0000 (15:13 +0000)
release/scripts/startup/bl_ui/space_clip.py
source/blender/makesrna/intern/rna_space.c

index 14fbbe15cfd57c193df41e759b4e76af1cd9f231..43761dd439ec0c9e0211bef62dff7474fc5e441a 100644 (file)
@@ -879,6 +879,7 @@ class CLIP_PT_tools_clip(CLIP_PT_clip_view_panel, Panel):
     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_view(Menu):
 
 class CLIP_MT_clip(Menu):
     bl_label = "Clip"
+    bl_translation_context = bpy.app.translations.contexts.id_movieclip
 
     def draw(self, context):
         layout = self.layout
index 10470e2e97ba7829626ad6b1e55a11b517f889ba..d88e8ed782aef854e49dc4752fdbb4b72cf24ea3 100644 (file)
@@ -3338,6 +3338,7 @@ static void rna_def_space_clip(BlenderRNA *brna)
        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 @@ static void rna_def_space_clip(BlenderRNA *brna)
        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 */