summaryrefslogtreecommitdiff
path: root/www/lang/check_stale_keys.sh
blob: d7a23e20c7c98c0dc53b71aff2f9b2f730afe932 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
stale=0
echo
for i in `cat locale-en.json | awk '/^[[:blank:]]*"k/ {print $1}' | sed s/\"//g`
do
        t=`grep $i ../templates/*.html  ../js/*.js 2>/dev/null | wc -l`
        if [ "$t" -eq "0" ]; then
                ((stale++))
                echo $i occurs $t times
        fi
done
echo "========= TOTAL: ${stale} stale keys ========";
echo