I18n: Translate missing sockets from gather node searches
When connecting node sockets, a search menu opens. Its items need to be added, and translated manually. This commits adds a few missing items from recent nodes. It does the same for sockets coming from node group assets. Reported by Ye Gui in #43295. Pull Request: https://projects.blender.org/blender/blender/pulls/148079
This commit is contained in:
committed by
Bastien Montagne
parent
91e83d94c5
commit
6e5d12151d
@@ -156,7 +156,7 @@ static void node_gather_link_searches(GatherLinkSearchOpParams ¶ms)
|
||||
{
|
||||
return;
|
||||
}
|
||||
params.add_item("Item", [](LinkSearchOpParams ¶ms) {
|
||||
params.add_item(IFACE_("Item"), [](LinkSearchOpParams ¶ms) {
|
||||
bNode &node = params.add_node("NodeCombineBundle");
|
||||
const auto *item =
|
||||
socket_items::add_item_with_socket_type_and_name<CombineBundleItemsAccessor>(
|
||||
@@ -168,7 +168,7 @@ static void node_gather_link_searches(GatherLinkSearchOpParams ¶ms)
|
||||
if (other_socket.type != SOCK_BUNDLE) {
|
||||
return;
|
||||
}
|
||||
params.add_item("Bundle", [](LinkSearchOpParams ¶ms) {
|
||||
params.add_item(IFACE_("Bundle"), [](LinkSearchOpParams ¶ms) {
|
||||
bNode &node = params.add_node("NodeCombineBundle");
|
||||
params.connect_available_socket(node, "Bundle");
|
||||
|
||||
|
||||
@@ -162,7 +162,7 @@ static void node_gather_link_searches(GatherLinkSearchOpParams ¶ms)
|
||||
{
|
||||
const bNodeSocket &other_socket = params.other_socket();
|
||||
if (other_socket.in_out == SOCK_IN) {
|
||||
params.add_item("Item", [](LinkSearchOpParams ¶ms) {
|
||||
params.add_item(IFACE_("Item"), [](LinkSearchOpParams ¶ms) {
|
||||
bNode &node = params.add_node("NodeEvaluateClosure");
|
||||
const auto *item =
|
||||
socket_items::add_item_with_socket_type_and_name<EvaluateClosureOutputItemsAccessor>(
|
||||
@@ -172,7 +172,7 @@ static void node_gather_link_searches(GatherLinkSearchOpParams ¶ms)
|
||||
return;
|
||||
}
|
||||
if (other_socket.type == SOCK_CLOSURE) {
|
||||
params.add_item("Closure", [](LinkSearchOpParams ¶ms) {
|
||||
params.add_item(IFACE_("Closure"), [](LinkSearchOpParams ¶ms) {
|
||||
bNode &node = params.add_node("NodeEvaluateClosure");
|
||||
params.connect_available_socket(node, "Closure");
|
||||
|
||||
@@ -184,7 +184,7 @@ static void node_gather_link_searches(GatherLinkSearchOpParams ¶ms)
|
||||
params.node_tree().type))
|
||||
{
|
||||
params.add_item(
|
||||
"Item",
|
||||
IFACE_("Item"),
|
||||
[](LinkSearchOpParams ¶ms) {
|
||||
bNode &node = params.add_node("NodeEvaluateClosure");
|
||||
const auto *item =
|
||||
|
||||
@@ -202,7 +202,7 @@ static void node_gather_link_searches(GatherLinkSearchOpParams ¶ms)
|
||||
{
|
||||
return;
|
||||
}
|
||||
params.add_item("Item", [](LinkSearchOpParams ¶ms) {
|
||||
params.add_item(IFACE_("Item"), [](LinkSearchOpParams ¶ms) {
|
||||
bNode &node = params.add_node("NodeSeparateBundle");
|
||||
const auto *item =
|
||||
socket_items::add_item_with_socket_type_and_name<SeparateBundleItemsAccessor>(
|
||||
@@ -214,7 +214,7 @@ static void node_gather_link_searches(GatherLinkSearchOpParams ¶ms)
|
||||
if (other_socket.type != SOCK_BUNDLE) {
|
||||
return;
|
||||
}
|
||||
params.add_item("Bundle", [](LinkSearchOpParams ¶ms) {
|
||||
params.add_item(IFACE_("Bundle"), [](LinkSearchOpParams ¶ms) {
|
||||
bNode &node = params.add_node("NodeSeparateBundle");
|
||||
params.connect_available_socket(node, "Bundle");
|
||||
|
||||
|
||||
@@ -287,7 +287,7 @@ static void node_gather_link_searches(GatherLinkSearchOpParams ¶ms)
|
||||
{
|
||||
const bNodeSocket &other_socket = params.other_socket();
|
||||
if (other_socket.in_out == SOCK_OUT) {
|
||||
params.add_item("Value", [](LinkSearchOpParams ¶ms) {
|
||||
params.add_item(IFACE_("Value"), [](LinkSearchOpParams ¶ms) {
|
||||
bNode &node = params.add_node("GeometryNodeViewer");
|
||||
const auto *item = socket_items::add_item_with_socket_type_and_name<GeoViewerItemsAccessor>(
|
||||
params.node_tree, node, params.socket.typeinfo->type, params.socket.name);
|
||||
|
||||
Reference in New Issue
Block a user