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.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/www/lang/check_stale_keys.sh b/www/lang/check_stale_keys.sh
new file mode 100755
index 00000000..d7a23e20
--- /dev/null
+++ b/www/lang/check_stale_keys.sh
@@ -0,0 +1,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