Skip to content

Instantly share code, notes, and snippets.

@hoekiesda
hoekiesda / oxid_find-multilangkeys-without-translationstring.sh
Last active February 23, 2021 15:56
OXID find multilang keys in ./tpl/ *.tpl without translation string in ./ *.php
grep -R --include=*.tpl '\boxmultilang\b' tpl/ | sed -r "s/ident=([^$])/\\nident=\1/g" | grep ^ident= | sed -r 's/}.*$//' | tr "'" '"' | sort -u | while read LINE; do KEY=$(echo "$LINE" | awk -F'"' '{print$2}'); echo -e $LINE"\t"$KEY"\t"$(grep -Rl --include=*.php $KEY {./,../../translations/} | wc -l); done | grep '\b 0$'