diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2012-10-16 11:53:10 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2012-10-16 11:53:10 +0400 |
commit | 64add7c9c79a8f32f0ca68484040bb749b0b728c (patch) | |
tree | fd348f3aff8fc1c1648be0de5770439374017211 /source/blender/makesrna | |
parent | af6abc8c8040a993d6b4e4daf18b22e030a48d8a (diff) |
More UI messages and BKE_reportf<->BKE_report fixes...
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_main_api.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/source/blender/makesrna/intern/rna_main_api.c b/source/blender/makesrna/intern/rna_main_api.c index be8f84fd2a4..d8f7d48a74f 100644 --- a/source/blender/makesrna/intern/rna_main_api.c +++ b/source/blender/makesrna/intern/rna_main_api.c @@ -97,6 +97,8 @@ #include "ED_screen.h" +#include "BLF_translation.h" + static Camera *rna_Main_cameras_new(Main *UNUSED(bmain), const char *name) { ID *id = BKE_camera_add(name); @@ -289,8 +291,8 @@ static Image *rna_Main_images_load(Main *UNUSED(bmain), ReportList *reports, con ima = BKE_image_load(filepath); if (!ima) - BKE_reportf(reports, RPT_ERROR, "Can't read: \"%s\", %s", filepath, - errno ? strerror(errno) : "Unsupported image format"); + BKE_reportf(reports, RPT_ERROR, "Can't read \"%s\": %s", filepath, + errno ? strerror(errno) : TIP_("Unsupported image format")); return ima; } @@ -358,8 +360,8 @@ static VFont *rna_Main_fonts_load(Main *bmain, ReportList *reports, const char * font = BKE_vfont_load(bmain, filepath); if (!font) - BKE_reportf(reports, RPT_ERROR, "Can't read: \"%s\", %s", filepath, - errno ? strerror(errno) : "Unsupported font format"); + BKE_reportf(reports, RPT_ERROR, "Can't read \"%s\": %s", filepath, + errno ? strerror(errno) : TIP_("Unsupported font format")); return font; @@ -468,8 +470,8 @@ static Text *rna_Main_texts_load(Main *bmain, ReportList *reports, const char *f txt = BKE_text_load(filepath, bmain->name); if (!txt) - BKE_reportf(reports, RPT_ERROR, "Can't read: \"%s\", %s", filepath, - errno ? strerror(errno) : "Unable to load text"); + BKE_reportf(reports, RPT_ERROR, "Can't read \"%s\": %s", filepath, + errno ? strerror(errno) : TIP_("Unable to load text")); return txt; } @@ -534,8 +536,8 @@ static MovieClip *rna_Main_movieclip_load(Main *UNUSED(bmain), ReportList *repor clip = BKE_movieclip_file_add(filepath); if (!clip) - BKE_reportf(reports, RPT_ERROR, "Can't read: \"%s\", %s.", filepath, - errno ? strerror(errno) : "Unable to load movie clip"); + BKE_reportf(reports, RPT_ERROR, "Can't read \"%s\": %s", filepath, + errno ? strerror(errno) : TIP_("Unable to load movie clip")); return clip; } |