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:
Damien Picard
2023-09-27 19:27:44 +02:00
committed by Gitea
parent 52fcd5fdfd
commit b05db089af
3 changed files with 6 additions and 2 deletions
@@ -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*\)"),) +