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:
authorHans Goudey <h.goudey@me.com>2022-04-04 16:46:53 +0300
committerHans Goudey <h.goudey@me.com>2022-04-04 16:46:53 +0300
commite7f4aa8f0cb617327e0358c134bc606bfb8742d4 (patch)
tree698dbac158efd08d1dc28869250158956661ed67 /source/blender/nodes/intern
parent81b55d7988c1e1090782eebaa61cc92a7d92c90e (diff)
Fix T96838: Missing translations in link drag search
Diffstat (limited to 'source/blender/nodes/intern')
-rw-r--r--source/blender/nodes/intern/socket_search_link.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/nodes/intern/socket_search_link.cc b/source/blender/nodes/intern/socket_search_link.cc
index 3f9a9ecbacf..0bd838ff002 100644
--- a/source/blender/nodes/intern/socket_search_link.cc
+++ b/source/blender/nodes/intern/socket_search_link.cc
@@ -6,6 +6,8 @@
#include "UI_interface.h"
+#include "BLT_translation.h"
+
#include "NOD_node_declaration.hh"
#include "NOD_socket_search_link.hh"
@@ -16,7 +18,8 @@ void GatherLinkSearchOpParams::add_item(std::string socket_name,
const int weight)
{
- std::string name = std::string(node_type_.ui_name) + " " + UI_MENU_ARROW_SEP + socket_name;
+ std::string name = std::string(IFACE_(node_type_.ui_name)) + " " + UI_MENU_ARROW_SEP +
+ socket_name;
items_.append({std::move(name), std::move(fn), weight});
}
@@ -112,7 +115,7 @@ void search_link_ops_for_declarations(GatherLinkSearchOpParams &params,
* sockets. */
const int weight = (&socket == main_socket) ? 0 : -1 - i;
params.add_item(
- socket.name(),
+ IFACE_(socket.name().c_str()),
[&node_type, &socket](LinkSearchOpParams &params) {
bNode &node = params.add_node(node_type);
socket.make_available(node);