Skip to content

Instantly share code, notes, and snippets.

@sideshowcoder
Created August 5, 2011 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sideshowcoder/1128153 to your computer and use it in GitHub Desktop.
Save sideshowcoder/1128153 to your computer and use it in GitHub Desktop.
quick find all translateable strings in titanium project
find ./ -name "*.js" -exec cat '{}' \; | awk 'match($0,/L\(.+\)/) { print substr($0,RSTART+3,RLENGTH-5) }' | awk 'split($0, M, /\)/) { print M[1] }' | sed 's/\"//g' | sed "s/\'//g" | sort | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment