I18n: make socket properties from asset nodes translatable #114256

Merged
Bastien Montagne merged 2 commits from pioverfour/blender:dp_extract_node_asset_sockets into main 2023-11-07 18:08:45 +01:00

2 Commits

Author SHA1 Message Date
Damien Picard a9eb697d73 I18n: translate socket properties in the Modifier Properties editor
buildbot/vexp-code-patch-coordinator Build done. Details
Each node group asset exposes various properties through sockets.
Although they can generally be considered user-created data, for
built-in assets they are also part of the UI and should be
translated--especially since more modifiers should be migrated to
Geometry Nodes in the future.

This commit enables the translation of those properties in the
Modifier Properties editor.
2023-10-30 19:39:46 +01:00
Damien Picard 525b792576 I18n: extract node group asset sockets
Each node group asset exposes various properties through sockets.
Although they can generally be considered user-created data, for
built-in assets they are also part of the UI and should be
translated--especially since more modifiers should be migrated to
Geometry Nodes in the future.

This commit allows extraction of such socket names and descriptions.
Since the message extraction script already extracted names and
descriptions for each asset, this commit only adds the socket in the
same loop, so that they are extracted while the asset file is already
being read.

Properties from sockets are not yet translated in the modifier
properties editor, this will be enabled in a follow-up commit.
2023-10-30 19:39:46 +01:00