blender-addons/ui_translate
Damien Picard ddc9ecd46f UI Translations: fix add-on translation export
The export of add-on translations to PO files suffered from two
issues:

1. To find the best file candidate for each language, the exporter
   compares ISO codes. One of the codes it tried to compare with is
   the invalid `__POT__` (`settings.PARSER_TEMPLATE_ID`).

   This would raise an assert in
   `bl_i18n_utils.utils.locale_explode()` because its implementation
   is different from the original `bpy_translations.locale_explode()`
   when given invalid values.

   This key is now filtered out to avoid the exception.

2. With "Update Existing" enabled, it tried to update the nonexistant
   `trans.msgs` of the translations. The proper dictionary is
   `trans.trans`.

Pull Request: #104942
2023-10-11 14:26:12 +02:00
..
__init__.py UITranslate: Initial refactor/changes for repositories changes. 2023-09-15 18:08:04 +02:00
edit_translation.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
settings.py UITranslate: Initial refactor/changes for repositories changes. 2023-09-15 18:08:04 +02:00
update_addon.py UI Translations: fix add-on translation export 2023-10-11 14:26:12 +02:00
update_repo.py UI: fix a few messages 2023-09-27 13:20:16 +02:00
update_ui.py UITranslate: Initial refactor/changes for repositories changes. 2023-09-15 18:08:04 +02:00