I18n: fix add-on extraction when UI code appears in __init__.py #106435

Merged
Bastien Montagne merged 1 commits from pioverfour/blender:dp_fix_addon_message_extraction into main 2023-04-04 10:07:18 +02:00

1 Commits

Author SHA1 Message Date
Damien Picard 81f9828c37 I18n: fix add-on extraction when UI code appears in __init__.py
The function which collects files to process in add-on extraction
returned only files that did not start with '_', in the case where the
add-on was a module in a directory. This excluded __init__.py, which
may very well contain UI code, so an exception is added for this case.

This change currently allows the extraction of 42 new messages.
2023-04-03 15:59:17 +02:00