diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2018-06-02 12:08:17 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2018-06-02 12:08:17 -0400 |
| commit | 0192513a8738ba1a0181962e593fddd185dc00b6 (patch) | |
| tree | 2a8f6948fda7584f807e5fc494670f7126a392ac /www/lang/check_stale_keys.sh | |
| parent | d567235e90ff9d1835fa501e7714ac4482f63c9c (diff) | |
removed unused keys
Diffstat (limited to 'www/lang/check_stale_keys.sh')
| -rwxr-xr-x | www/lang/check_stale_keys.sh | 13 |
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 |
