Skip to content

Instantly share code, notes, and snippets.

@anjan-virtism
Last active April 5, 2016 04:50
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 anjan-virtism/f9121542717f53b3bbb6043c31783aa2 to your computer and use it in GitHub Desktop.
Save anjan-virtism/f9121542717f53b3bbb6043c31783aa2 to your computer and use it in GitHub Desktop.
Extract gettext language strings from all php files inside current directory and it's sub directories
find . -name "*.php" ! -path "./tmp/*" | xargs xgettext --default-domain=myapp --output=myapp.pot --language=PHP --indent --no-wrap --sort-output --omit-header
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment