Blender Git Loki

Git Commits -> Revision f53221b

Revision f53221b by Hans Goudey (master)
March 3, 2021, 18:58 (GMT)
UI: Allow translation for node error messages

This commit exposes the strings used in the node error messages for
localization. It also changes the message tooltip creation to
automatically add the period at the end, to be more consistent with
the (arguably bad) design of other tooltips in Blender.

Calling `TIP_` directly in the node implementation files allows us to
continue using `std::string` concatenation instead of passing variadic
arguments. It's also more explicit about which part of the message is
translated and which isn't. The files already include the translation
header anyway.

Commit Details:

Full Hash: f53221bff7ffdcfb3acf03389450ed5ffb8f7964
Parent Commit: 93cdf46
Lines Changed: +10, -11

6 Modified Paths:

/source/blender/editors/space_node/node_draw.cc (+4, -5) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_randomize.cc (+1, -1) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc (+2, -2) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_point_instance.cc (+1, -1) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_subdivision_surface_simple.cc (+1, -1) (Diff)
/source/blender/nodes/intern/node_geometry_exec.cc (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021