From 29dff8f84423852f01570334abf08fb922ffb51e Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 2 Nov 2021 17:50:18 +0100 Subject: 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_`). --- .../blender/gpencil_modifiers/intern/MOD_gpencillineart.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'source/blender/gpencil_modifiers') diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c b/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c index fa31aec2b5b..b35ebd4be9a 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c @@ -388,7 +388,7 @@ static void options_panel_draw(const bContext *UNUSED(C), Panel *panel) uiLayoutSetEnabled(layout, !is_baked); if (use_cache && !is_first) { - uiItemL(layout, "Cached from the first line art modifier.", ICON_INFO); + uiItemL(layout, TIP_("Cached from the first line art modifier"), ICON_INFO); return; } @@ -439,7 +439,7 @@ static void occlusion_panel_draw(const bContext *UNUSED(C), Panel *panel) uiLayoutSetEnabled(layout, !is_baked); if (!show_in_front) { - uiItemL(layout, IFACE_("Object is not in front"), ICON_INFO); + uiItemL(layout, TIP_("Object is not in front"), ICON_INFO); } layout = uiLayoutColumn(layout, false); @@ -568,7 +568,7 @@ static void face_mark_panel_draw(const bContext *UNUSED(C), Panel *panel) uiLayoutSetEnabled(layout, !is_baked); if (use_cache && !is_first) { - uiItemL(layout, "Cached from the first line art modifier.", ICON_INFO); + uiItemL(layout, TIP_("Cached from the first line art modifier"), ICON_INFO); return; } @@ -596,7 +596,7 @@ static void chaining_panel_draw(const bContext *UNUSED(C), Panel *panel) uiLayoutSetEnabled(layout, !is_baked); if (use_cache && !is_first) { - uiItemL(layout, "Cached from the first line art modifier.", ICON_INFO); + uiItemL(layout, TIP_("Cached from the first line art modifier"), ICON_INFO); return; } @@ -633,7 +633,7 @@ static void vgroup_panel_draw(const bContext *UNUSED(C), Panel *panel) uiLayoutSetEnabled(layout, !is_baked); if (use_cache && !is_first) { - uiItemL(layout, "Cached from the first line art modifier.", ICON_INFO); + uiItemL(layout, TIP_("Cached from the first line art modifier"), ICON_INFO); return; } @@ -666,7 +666,7 @@ static void bake_panel_draw(const bContext *UNUSED(C), Panel *panel) if (is_baked) { uiLayout *col = uiLayoutColumn(layout, false); uiLayoutSetPropSep(col, false); - uiItemL(col, IFACE_("Modifier has baked data"), ICON_NONE); + uiItemL(col, TIP_("Modifier has baked data"), ICON_NONE); uiItemR( col, ptr, "is_baked", UI_ITEM_R_TOGGLE, IFACE_("Continue Without Clearing"), ICON_NONE); } @@ -696,7 +696,7 @@ static void composition_panel_draw(const bContext *UNUSED(C), Panel *panel) uiItemR(layout, ptr, "use_image_boundary_trimming", 0, NULL, ICON_NONE); if (show_in_front) { - uiItemL(layout, IFACE_("Object is shown in front"), ICON_ERROR); + uiItemL(layout, TIP_("Object is shown in front"), ICON_ERROR); } uiLayout *col = uiLayoutColumn(layout, false); -- cgit v1.2.3