Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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$'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment