I18n: Allow translation of "Warning" node label
The Warning geometry node uses its warning type as label. These enum items were extracted using the default context, but translated using "Nodetree". The items Warning, Info and Error, should be quite unambiguous and translated using the default context instead. In addition, a string "Unknown" was translated twice. Replace one of those translations with a simple `N_()` extraction macro.
This commit is contained in:
committed by
Bastien Montagne
parent
c9a1008d51
commit
bec7eadcbf
@@ -93,9 +93,9 @@ static void node_label(const bNodeTree * /*ntree*/,
|
||||
const char *name;
|
||||
bool enum_label = RNA_enum_name(rna_enum_node_warning_type_items, node->custom1, &name);
|
||||
if (!enum_label) {
|
||||
name = IFACE_("Unknown");
|
||||
name = N_("Unknown");
|
||||
}
|
||||
BLI_strncpy_utf8(label, CTX_IFACE_(BLT_I18NCONTEXT_ID_NODETREE, name), label_maxncpy);
|
||||
BLI_strncpy_utf8(label, IFACE_(name), label_maxncpy);
|
||||
}
|
||||
|
||||
static void node_register()
|
||||
|
||||
Reference in New Issue
Block a user