Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2021-11-02 19:50:18 +0300
committerBastien Montagne <bastien@blender.org>2021-11-02 19:50:18 +0300
commit29dff8f84423852f01570334abf08fb922ffb51e (patch)
tree0ace98fe2d22cca12052350e861006c6b2486a7b /source/blender/modifiers/intern/MOD_subsurf.c
parent20b163b53309fb6fbbb5aab78cde0d14e163e3b4 (diff)
Fix lots of missing messages i18n handling in `uiItemL` calls.
Also fix several wrong usages of `IFACE_` (as a reminder, error/info messages should use `TIP_`, not `IFACE_`).
Diffstat (limited to 'source/blender/modifiers/intern/MOD_subsurf.c')
-rw-r--r--source/blender/modifiers/intern/MOD_subsurf.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/modifiers/intern/MOD_subsurf.c b/source/blender/modifiers/intern/MOD_subsurf.c
index db0b769684e..7470f2abb15 100644
--- a/source/blender/modifiers/intern/MOD_subsurf.c
+++ b/source/blender/modifiers/intern/MOD_subsurf.c
@@ -27,6 +27,7 @@
#include "MEM_guardedalloc.h"
+#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
@@ -414,8 +415,12 @@ static void panel_draw(const bContext *C, Panel *panel)
float preview = MAX2(RNA_float_get(&cycles_ptr, "preview_dicing_rate") *
RNA_float_get(&ob_cycles_ptr, "dicing_rate"),
0.1f);
- char output[64];
- snprintf(output, 64, "Final Scale: Render %.2f px, Viewport %.2f px", render, preview);
+ char output[256];
+ BLI_snprintf(output,
+ sizeof(output),
+ TIP_("Final Scale: Render %.2f px, Viewport %.2f px"),
+ render,
+ preview);
uiItemL(layout, output, ICON_NONE);
uiItemS(layout);