Use msgcat to avoid word-wrapping in .po files

This commit is contained in:
Slavi Pantaleev
2024-12-20 14:33:31 +02:00
parent 36429d8bd3
commit 71e5f1103d
269 changed files with 8438 additions and 39279 deletions

View File

@ -32,3 +32,11 @@ sphinx-intl update \
--pot-dir ${base_path}/i18n/translation-templates \
--locale-dir ${base_path}/i18n/locales \
--language ${LANGUAGE}
# Post-process all .po files to remove word-wrapping.
#
# Tools for editing .po files like Poedit don't use word-wrapping,
# and us not using word-wrapping here means diffs can be smaller.
for po_file in $(find ${base_path}/i18n/locales -name '*.po'); do
msgcat --no-wrap -o "$po_file" "$po_file"
done