WIP: I18n: add per-label translation contexts for nodes #105690

Draft
Damien Picard wants to merge 3 commits from pioverfour/blender:dp_add_i18n_context_socket_label into blender-v3.6-release

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 22ddff63e3 - Show all commits

View File

@ -2,6 +2,8 @@
#include "BLI_assert.h"
#include "BLT_translation.h"
#include "GPU_material.h"
#include "COM_shader_node.hh"
@ -35,7 +37,7 @@ static void node_cmp_combsep_color_label(const ListBase *sockets, CMPNodeCombSep
case CMP_NODE_COMBSEP_COLOR_HSV:
node_sock_label(sock1, "Hue");
node_sock_label(sock2, "Saturation");
node_sock_label(sock3, "Value");
node_sock_label(sock3, "Value", BLT_I18NCONTEXT_COLOR);
break;
case CMP_NODE_COMBSEP_COLOR_HSL:
node_sock_label(sock1, "Hue");

View File

@ -268,7 +268,7 @@ void node_combsep_color_label(const ListBase *sockets, NodeCombSepColorMode mode
case NODE_COMBSEP_COLOR_HSV:
node_sock_label(sock1, "Hue");
node_sock_label(sock2, "Saturation");
node_sock_label(sock3, "Value");
node_sock_label(sock3, "Value", BLT_I18NCONTEXT_COLOR);
break;
default: {
BLI_assert_unreachable();