diff options
author | Hans Goudey <h.goudey@me.com> | 2021-10-29 17:41:08 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-10-29 17:41:08 +0300 |
commit | 2383628ee11b6e90d34cd010f742c6d0356f5e11 (patch) | |
tree | b79add5831068a45bdf11e0638aeede63bf0d300 /source/blender/nodes/geometry/nodes/node_geo_object_info.cc | |
parent | 7e94499bb3bb64170f826471a86ce0f957eab3a3 (diff) |
Nodes: Add translation markers to new socket names and descriptions
As part of the refactor to the node declaration builders, we had hoped
to add a regular expression specifically for these socket names, but
recent discussions have revealed that using the translation marker
macros is the preferred solution.
If the names and descriptions were exposed to RNA, these would not
be necessary. However, that may be quite complicated, since sockets
are all instances of the same RNA types.
Differential Revision: https://developer.blender.org/D13033
Diffstat (limited to 'source/blender/nodes/geometry/nodes/node_geo_object_info.cc')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_object_info.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_object_info.cc b/source/blender/nodes/geometry/nodes/node_geo_object_info.cc index e61709ed86a..3ba32c4b674 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_object_info.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_object_info.cc @@ -25,15 +25,15 @@ namespace blender::nodes { static void geo_node_object_info_declare(NodeDeclarationBuilder &b) { - b.add_input<decl::Object>("Object").hide_label(); - b.add_input<decl::Bool>("As Instance") + b.add_input<decl::Object>(N_("Object")).hide_label(); + b.add_input<decl::Bool>(N_("As Instance")) .description( - "Output the entire object as single instance. " - "This allows instancing non-geometry object types"); - b.add_output<decl::Vector>("Location"); - b.add_output<decl::Vector>("Rotation"); - b.add_output<decl::Vector>("Scale"); - b.add_output<decl::Geometry>("Geometry"); + N_("Output the entire object as single instance. " + "This allows instancing non-geometry object types")); + b.add_output<decl::Vector>(N_("Location")); + b.add_output<decl::Vector>(N_("Rotation")); + b.add_output<decl::Vector>(N_("Scale")); + b.add_output<decl::Geometry>(N_("Geometry")); } static void geo_node_object_info_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) |