mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-02-19 11:16:18 +00:00
add language statistics output for .po files
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
#!/bin/bash
|
||||
.venv/bin/django-admin makemessages -a --ignore=.venv/*
|
||||
.venv/bin/django-admin compilemessages --ignore=.venv/*
|
||||
.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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user