Cleanup: do not use _reportf() when not doing any string formating!
authorBastien Montagne <montagne29@wanadoo.fr>
Mon, 13 Apr 2015 19:00:06 +0000 (21:00 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Mon, 13 Apr 2015 19:00:45 +0000 (21:00 +0200)
Also usual minor i18n messages stuff...

release/scripts/modules/bl_i18n_utils/settings.py
source/blender/makesrna/intern/rna_color.c
source/blender/makesrna/intern/rna_nodetree.c
source/blender/makesrna/intern/rna_scene.c
source/blender/windowmanager/intern/wm_stereo.c

index 920a56a628b10017ffe5d3dc25432e94053c9717..c1d9b92692436259260bef5a44bbb057d4d877db 100644 (file)
@@ -324,6 +324,7 @@ WARN_MSGID_NOT_CAPITALIZED_ALLOWED = {
     "y",
     # Sub-strings.
     "available with",
+    "brown fox",
     "can't save image while rendering",
     "expected a timeline/animation area to be active",
     "expected a view3d region",
@@ -332,6 +333,8 @@ WARN_MSGID_NOT_CAPITALIZED_ALLOWED = {
     "image file not found",
     "image path can't be written to",
     "in memory to enable editing!",
+    "jumps over",
+    "the lazy dog",
     "unable to load movie clip",
     "unable to load text",
     "unable to open the file",
index 0c871317d04bb0fecea090a64364dd888042bb0f..8ea67a34fbb47c6779065ccd69a4d2e8c111a586 100644 (file)
@@ -673,7 +673,7 @@ static void rna_ColorManagement_update(Main *UNUSED(bmain), Scene *UNUSED(scene)
 static float rna_CurveMap_evaluateF(struct CurveMap *cuma, ReportList *reports, float value)
 {
        if (!cuma->table) {
-               BKE_reportf(reports, RPT_ERROR, "CurveMap table not initialized, call initialize() on CurveMapping owner of the CurveMap");
+               BKE_report(reports, RPT_ERROR, "CurveMap table not initialized, call initialize() on CurveMapping owner of the CurveMap");
                return 0.0f;
        }
        return curvemap_evaluateF(cuma, value);
index 075b139c6c4d30f3e959a1cbfb9e818513f03d38..da77b9ee6ea8a65b42d591bd305364a67f93c70f 100644 (file)
@@ -1578,7 +1578,7 @@ static bNodeSocket *rna_Node_outputs_new(ID *id, bNode *node, ReportList *report
        sock = nodeAddSocket(ntree, node, SOCK_OUT, type, identifier, name);
        
        if (sock == NULL) {
-               BKE_reportf(reports, RPT_ERROR, "Unable to create socket");
+               BKE_report(reports, RPT_ERROR, "Unable to create socket");
        }
        else {
                ntreeUpdateTree(G.main, ntree);
index f93cdc5715dfefb35497dfb867e9b1d7342cfdc4..ee77bccc340a5e9b7e4a7828185bcdc02c75a124 100644 (file)
@@ -1907,7 +1907,7 @@ static void rna_FreestyleSettings_module_remove(
                if (module->script)
                        BKE_reportf(reports, RPT_ERROR, "Style module '%s' could not be removed", module->script->id.name + 2);
                else
-                       BKE_reportf(reports, RPT_ERROR, "Style module could not be removed");
+                       BKE_report(reports, RPT_ERROR, "Style module could not be removed");
                return;
        }
 
index c619b2ed72794f4a9b5bde4f693dd9f692ed265e..328223645bc3096f8a55812e395cb044fd7893f7 100644 (file)
@@ -464,8 +464,7 @@ int wm_stereo3d_set_exec(bContext *C, wmOperator *op)
        /* pageflip requires a new window to be created with the proper OS flags */
        if (win->stereo3d_format->display_mode == S3D_DISPLAY_PAGEFLIP) {
                if (wm_stereo3d_quadbuffer_supported() == false) {
-                       BKE_reportf(op->reports, RPT_ERROR,
-                                   "Quadbuffer not supported by the system");
+                       BKE_report(op->reports, RPT_ERROR, "Quad-buffer not supported by the system");
                        win->stereo3d_format->display_mode = display_mode;
                        return OPERATOR_CANCELLED;
                }
@@ -474,8 +473,8 @@ int wm_stereo3d_set_exec(bContext *C, wmOperator *op)
                        win = wm->windows.last;
                }
                else {
-                       BKE_reportf(op->reports, RPT_ERROR,
-                                   "Fail to create a window compatible with time sequential (page-flip) display method");
+                       BKE_report(op->reports, RPT_ERROR,
+                                  "Fail to create a window compatible with time sequential (page-flip) display method");
                        win->stereo3d_format->display_mode = display_mode;
                        return OPERATOR_CANCELLED;
                }
@@ -483,7 +482,7 @@ int wm_stereo3d_set_exec(bContext *C, wmOperator *op)
 
        if (wm_stereo3d_is_fullscreen_required(win->stereo3d_format->display_mode)) {
                if (!is_fullscreen) {
-                       BKE_reportf(op->reports, RPT_INFO, "Stereo 3D Mode requires the window to be fullscreen");
+                       BKE_report(op->reports, RPT_INFO, "Stereo 3D Mode requires the window to be fullscreen");
                }
        }