manjaro-architect/bin/check-translate.sh

16 lines
434 B
Bash
Raw Normal View History

2017-02-26 20:04:14 +00:00
#!/usr/bin/bash
fns=($(awk -F'=' '/^_/ {print $1}' "../data/translations/english.trans"))
for lg in ../data/translations/*.trans ; do
2017-02-26 23:25:45 +00:00
trans=$(<"${lg}")
not=$(echo "${trans}" | grep -cE "#.*translate me")
2017-02-26 20:04:14 +00:00
echo -e "\n-- $(basename "${lg}") ${not} to translate --"
for key in "${fns[@]}"; do
2017-02-26 23:25:45 +00:00
if [[ ! $trans =~ $key ]]; then
2017-02-26 20:04:14 +00:00
echo -e "\t${key} not exist"
fi
done
done
#echo -e "${fns[*]}"