I18n: translate node panel titles
Nodes recently gained the ability to group inputs into collapsible panels. These were untranslated, so this commit: - Adds the appropriate regex to extract node panels defined with the `add_panel()` callback. - Adds the `IFACE()` translation macro to the drawing code for the nodes, as well as the properties. Pull Request: https://projects.blender.org/blender/blender/pulls/112968
This commit is contained in:
@@ -277,6 +277,10 @@ PYGETTEXT_KEYWORDS = (() +
|
||||
tuple((r"{}\(\s*[^,]+,\s*" + _msg_re + r"\s*\)").format(it)
|
||||
for it in ("node_sock_label",)) +
|
||||
|
||||
# Node panel declarations
|
||||
tuple((r"\.{}\(\s*" + _msg_re + r"\s*\)").format(it)
|
||||
for it in ("add_panel",)) +
|
||||
|
||||
# Geometry Nodes field inputs
|
||||
((r"FieldInput\(CPPType::get<.*?>\(\),\s*" + _msg_re + r"\s*\)"),) +
|
||||
|
||||
|
||||
Reference in New Issue
Block a user