blob: 19745805f7543d5804ce9ec165b4ab903c8ca241 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
set -eu
for f in doc/*.en.[1-9]; do
# shellcheck disable=2068
for lang in $@; do
to="$(echo "$f" | sed "s|\.en\.|.$lang.|")"
po4a-updatepo -f man -m "$f" -p "doc/$lang.po"
printf 'Translating %s...\n' "$to" >&2
OUT="$(po4a-translate -f man -m "$f" -p "doc/$lang.po" -l "$to" -k 0 -v 2>&1)"
echo "$OUT" >&2
if ! echo "$OUT" | grep -qF ' is 100% translated ('; then
printf "\n WARNING!\n Missing translations for %s\n\n" "$to" >&2
fi
done
done
|