Skip to content

Instantly share code, notes, and snippets.

  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save hoekiesda/fac483ae9552bae83d49 to your computer and use it in GitHub Desktop.
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