summaryrefslogtreecommitdiff
path: root/www/lang/check_stale_keys.sh
diff options
context:
space:
mode:
Diffstat (limited to 'www/lang/check_stale_keys.sh')
-rwxr-xr-xwww/lang/check_stale_keys.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/www/lang/check_stale_keys.sh b/www/lang/check_stale_keys.sh
index d7a23e20..6dddcedb 100755
--- a/www/lang/check_stale_keys.sh
+++ b/www/lang/check_stale_keys.sh
@@ -1,13 +1,18 @@
#!/bin/bash
stale=0
-echo
+clearline='\033[K'
+echo "Checking keys..."
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`
+ echo -en "\r${clearline}${i}..."
if [ "$t" -eq "0" ]; then
((stale++))
+ echo
echo $i occurs $t times
fi
done
+echo -e "\r${clearline}All Done!"
+echo
echo "========= TOTAL: ${stale} stale keys ========";
echo