in the event of failure of the extract_characters_from_babel_mo.py script. Log the error and move on

This commit is contained in:
Nick Klockenga 2026-03-04 23:39:43 -05:00
parent 7f1faf39c3
commit df8c0fd903
No known key found for this signature in database
GPG Key ID: D32B8BF28121ADF6

View File

@ -63,7 +63,7 @@ compile_translations_and_fonts() {
for f in ${ss_translations_repo}/l10n/*/LC_MESSAGES/messages.mo; do
# extract just the locale name from the path (e.g. "ca" from ".../l10n/ca/LC_MESSAGES/messages.mo")
locale=$(basename "$(dirname "$(dirname "$f")")")
output_chars=$(cd ${ss_translations_repo}/tools && python3 extract_characters_from_babel_mo.py "$locale")
output_chars=$(cd ${ss_translations_repo}/tools && python3 extract_characters_from_babel_mo.py "$locale") || echo "Warning: failed to extract chars for locale: $locale" >&2
all_chars="${all_chars}${output_chars}"
done