nls: Avoid call to slow msgfilter program.

* Makefile.am (download-po): Replace msgfilter by msgconv.

Change-Id: Ic60af4cd605708a7152dd674182adde212ab0fd0
This commit is contained in:
Florian Pelz 2025-09-13 00:06:17 +02:00
parent bdf1dc9d99
commit 0509bc4cba
No known key found for this signature in database
GPG key ID: 300888CB39C63817

View file

@ -21,6 +21,7 @@
# Copyright © 2023, 2024 Wilko Meyer <w@wmeyer.eu> # Copyright © 2023, 2024 Wilko Meyer <w@wmeyer.eu>
# Copyright © 2024 gemmaro <gemmaro.dev@gmail.com> # Copyright © 2024 gemmaro <gemmaro.dev@gmail.com>
# Copyright © 2025 Brice Waegeneire <brice@waegenei.re> # Copyright © 2025 Brice Waegeneire <brice@waegenei.re>
# Copyright © 2025 Florian Pelz <pelzflorian@pelzflorian.de>
# #
# This file is part of GNU Guix. # This file is part of GNU Guix.
# #
@ -1312,7 +1313,7 @@ download-po:
target="$$domain/$$target"; \ target="$$domain/$$target"; \
msgfmt -c "$$po"; \ msgfmt -c "$$po"; \
if msgfmt -c "$$po" && [ "$$translated" != "0" ] && ([ "$$domain" != "po/doc" ] || [ "$$translated" -gt $$(($$total/10)) ] || [ -f $$target ]); then \ if msgfmt -c "$$po" && [ "$$translated" != "0" ] && ([ "$$domain" != "po/doc" ] || [ "$$translated" -gt $$(($$total/10)) ] || [ -f $$target ]); then \
msgfilter --no-wrap -i "$$po" cat > "$$po".tmp; \ msgconv --no-wrap -o "$$po".tmp "$$po"; \
mv "$$po".tmp "$$target"; \ mv "$$po".tmp "$$target"; \
echo "copied $$target."; \ echo "copied $$target."; \
else \ else \