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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user