[Bf-blender-cvs] [20b163b5330] blender-v3.0-release: UIMessages/i18n: Fix incorrect part of rBdabfac37e35274b.

Bastien Montagne noreply at git.blender.org
Tue Nov 2 17:49:37 CET 2021


Commit: 20b163b53309fb6fbbb5aab78cde0d14e163e3b4
Author: Bastien Montagne
Date:   Tue Nov 2 17:20:24 2021 +0100
Branches: blender-v3.0-release
https://developer.blender.org/rB20b163b53309fb6fbbb5aab78cde0d14e163e3b4

UIMessages/i18n: Fix incorrect part of rBdabfac37e35274b.

My bad, forgot lower-level UI code does not handle translations itself.

Thanks to Hans Goudey (@HooglyBoogly) for the heads up.

===================================================================

M	source/blender/modifiers/intern/MOD_nodes.cc

===================================================================

diff --git a/source/blender/modifiers/intern/MOD_nodes.cc b/source/blender/modifiers/intern/MOD_nodes.cc
index 29bfa382674..f87ff844acf 100644
--- a/source/blender/modifiers/intern/MOD_nodes.cc
+++ b/source/blender/modifiers/intern/MOD_nodes.cc
@@ -1409,7 +1409,7 @@ static void panel_draw(const bContext *C, Panel *panel)
 
   if (has_legacy_node) {
     uiLayout *row = uiLayoutRow(layout, false);
-    uiItemL(row, N_("Node tree has legacy node"), ICON_ERROR);
+    uiItemL(row, TIP_("Node tree has legacy node"), ICON_ERROR);
     uiLayout *sub = uiLayoutRow(row, false);
     uiLayoutSetAlignment(sub, UI_LAYOUT_ALIGN_RIGHT);
     uiItemO(sub, "", ICON_VIEWZOOM, "NODE_OT_geometry_node_view_legacy");
@@ -1438,7 +1438,7 @@ static void output_attribute_panel_draw(const bContext *UNUSED(C), Panel *panel)
     }
   }
   if (!has_output_attribute) {
-    uiItemL(layout, N_("No group output attributes connected"), ICON_INFO);
+    uiItemL(layout, TIP_("No group output attributes connected"), ICON_INFO);
   }
 }



More information about the Bf-blender-cvs mailing list