Skip to content

Instantly share code, notes, and snippets.

@remcotolsma
Created April 8, 2013 10:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remcotolsma/5335793 to your computer and use it in GitHub Desktop.
Save remcotolsma/5335793 to your computer and use it in GitHub Desktop.
Command for creating .POT file for the Pronamic iDEAL plugin.
find . -iname "*.php" -type f | xgettext \
--from-code=UTF-8 \
--keyword=__ \
--keyword=_e \
--keyword=_n:1,2 \
--keyword=_x:1,2c \
--keyword=_ex:1,2c \
--keyword=_nx:1,2,4c \
--default-domain=pronamic_ideal \
--language=PHP \
--copyright-holder="Pronamic" \
--package-name=Pronamic \
--package-version=1.2.6 \
--msgid-bugs-address="Pronamic <info@pronamic.nl>" \
--files-from=- \
--output=languages/pronamic_ideal.pot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment