I18n: Use correct translation context for node socket in side bar

Node socket labels used their declared translation context in the
nodes themselves, but not in the editor side bar.

Pull Request: https://projects.blender.org/blender/blender/pulls/146731
This commit is contained in:
Damien Picard
2025-09-24 10:26:56 +02:00
committed by Gitea
parent e4d5368908
commit 950a2bb8a3

View File

@@ -70,7 +70,8 @@ static void draw_node_input(bContext *C,
PointerRNA socket_ptr = RNA_pointer_create_discrete(
node_ptr->owner_id, &RNA_NodeSocket, &socket);
const StringRefNull text(IFACE_(bke::node_socket_label(socket).c_str()));
const StringRefNull text(
CTX_IFACE_(bke::node_socket_translation_context(socket), bke::node_socket_label(socket)));
uiLayout *row = &layout->row(true);
socket.typeinfo->draw(C, row, &socket_ptr, node_ptr, text);
}