From 0e8f9e48b97328e747d2d4f3ffd2eb23579c1b78 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Thu, 12 Feb 2026 13:18:19 -0300 Subject: [PATCH] add language statistics output for .po files --- update_messages.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/update_messages.sh b/update_messages.sh index c988550..1a05e55 100755 --- a/update_messages.sh +++ b/update_messages.sh @@ -1,3 +1,11 @@ #!/bin/bash .venv/bin/django-admin makemessages -a --ignore=.venv/* -.venv/bin/django-admin compilemessages --ignore=.venv/* \ No newline at end of file +.venv/bin/django-admin compilemessages --ignore=.venv/* +echo +for po in locale/*/LC_MESSAGES/django.po; do + lang=${po#locale/} + lang=${lang%%/*} + echo -n "$lang: " + msgfmt --statistics "$po" -o /dev/null 2>&1 +done +