diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-20 01:55:16 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-20 01:55:16 +0400 |
commit | 88cf37e9bcb576c7192ec9e0f52caf7fda81d2d4 (patch) | |
tree | 761be499f979ed627a2a26cc3811ab19f263d7e9 /source/blender/editors/space_image/image_buttons.c | |
parent | 579a4a02a54da01a4af98e831f4feb87fba72392 (diff) |
quiet formatting warnings when international was enabled.
Diffstat (limited to 'source/blender/editors/space_image/image_buttons.c')
-rw-r--r-- | source/blender/editors/space_image/image_buttons.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/source/blender/editors/space_image/image_buttons.c b/source/blender/editors/space_image/image_buttons.c index 7989a8e1b34..7d358bcfb8b 100644 --- a/source/blender/editors/space_image/image_buttons.c +++ b/source/blender/editors/space_image/image_buttons.c @@ -106,36 +106,36 @@ static void image_info(Scene *scene, ImageUser *iuser, Image *ima, ImBuf *ibuf, if (ima == NULL) return; if (ibuf == NULL) { - ofs += sprintf(str, IFACE_("Can't Load Image")); + ofs += sprintf(str, "%s", IFACE_("Can't Load Image")); } else { if (ima->source == IMA_SRC_MOVIE) { - ofs += sprintf(str, IFACE_("Movie")); + ofs += sprintf(str, "%s", IFACE_("Movie")); if (ima->anim) ofs += sprintf(str + ofs, IFACE_("%d frs"), IMB_anim_get_duration(ima->anim, IMB_TC_RECORD_RUN)); } else - ofs += sprintf(str, IFACE_("Image")); + ofs += sprintf(str, "%s", IFACE_("Image")); - ofs += sprintf(str + ofs, IFACE_(": size %d x %d,"), ibuf->x, ibuf->y); + ofs += sprintf(str + ofs, ": %s %d x %d,", IFACE_("size"), ibuf->x, ibuf->y); if (ibuf->rect_float) { if (ibuf->channels != 4) { - ofs += sprintf(str + ofs, IFACE_("%d float channel(s)"), ibuf->channels); + ofs += sprintf(str + ofs, "%d %s", ibuf->channels, IFACE_("float channel(s)")); } else if (ibuf->planes == R_IMF_PLANES_RGBA) - ofs += sprintf(str + ofs, IFACE_(" RGBA float")); + ofs += sprintf(str + ofs, "%s", IFACE_(" RGBA float")); else - ofs += sprintf(str + ofs, IFACE_(" RGB float")); + ofs += sprintf(str + ofs, "%s", IFACE_(" RGB float")); } else { if (ibuf->planes == R_IMF_PLANES_RGBA) - ofs += sprintf(str + ofs, IFACE_(" RGBA byte")); + ofs += sprintf(str + ofs, "%s", IFACE_(" RGBA byte")); else - ofs += sprintf(str + ofs, IFACE_(" RGB byte")); + ofs += sprintf(str + ofs, "%s", IFACE_(" RGB byte")); } if (ibuf->zbuf || ibuf->zbuf_float) - ofs += sprintf(str + ofs, IFACE_(" + Z")); + ofs += sprintf(str + ofs, "%s", IFACE_(" + Z")); if (ima->source == IMA_SRC_SEQUENCE) { char *file = BLI_last_slash(ibuf->name); @@ -381,11 +381,11 @@ static char *layer_menu(RenderResult *rr, short *UNUSED(curlay)) /* compo result */ if (rr->rectf) { - a += sprintf(str + a, IFACE_("|Composite %%x0")); + a += sprintf(str + a, "|%s %%x0", IFACE_("Composite")); nr = 1; } else if (rr->rect32) { - a += sprintf(str + a, IFACE_("|Sequence %%x0")); + a += sprintf(str + a, "|%s %%x0", IFACE_("Sequence")); nr = 1; } for (rl = rr->layers.first; rl; rl = rl->next, nr++) { @@ -410,7 +410,7 @@ static char *pass_menu(RenderLayer *rl, short *curpass) /* rendered results don't have a Combined pass */ if (rl == NULL || rl->rectf) { - a += sprintf(str + a, IFACE_("|Combined %%x0")); + a += sprintf(str + a, "|%s %%x0", IFACE_("Combined")); nr = 1; } |