blender/scripts/modules/bl_i18n_utils
Damien Picard 4719ce5d56 I18n: Allow translation of extension tags and permissions
The new extension system introduces tags, similar to categories from
legacy add-ons, and permissions. A hardcoded list is supported for
each, available in the docs:
- https://docs.blender.org/manual/en/dev/advanced/extensions/tags.html
- https://developer.blender.org/docs/features/extensions/schema/

This change allows extraction of these new metadata to the translation
files.

In order to disambiguate the new messages, tags use the new "Script"
translation context. Permissions are lower case, so there is a low
risk of collision, and they use the default context.

While the tags are defined per-platform, with extensions.blender.org
being the only one available currently, they are extracted as a single
list.

Pull Request: https://projects.blender.org/blender/blender/pulls/123150
2024-06-14 16:35:54 +02:00
..
__init__.py License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
bl_extract_messages.py I18n: Allow translation of extension tags and permissions 2024-06-14 16:35:54 +02:00
merge_po.py License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
settings_user.py License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
settings.py Cleanup: spelling in comments 2024-05-28 13:47:43 +10:00
utils_cli.py I18n Py Module: Update settings after move to Weblate. 2023-09-15 18:08:52 +02:00
utils_languages_menu.py Cleanup: unused imports 2024-04-19 16:09:30 +10:00
utils_rtl.py Cleanup: spelling in comments 2023-09-05 11:04:27 +10:00
utils_spell_check.py Fix/tweak UI messages (typos etc.). 2024-03-04 11:17:55 +01:00
utils.py Fix (unreported) I18N error when generating messages for an add-on. 2024-06-04 18:42:17 +02:00