Skip to content

Instantly share code, notes, and snippets.

@stephane
Created May 14, 2014 14:22
Show Gist options
  • Save stephane/f76b89d030a4444e7fb8 to your computer and use it in GitHub Desktop.
Save stephane/f76b89d030a4444e7fb8 to your computer and use it in GitHub Desktop.
Makefile target to generate PO file from POT (angular-gettext)
makemessagesjs:
grunt nggettext_extract; \
export PO_FILE=locale/fr/LC_MESSAGES/angular.po; \
export POT_FILE=$${PO_FILE}t; \
[ ! -f $$PO_FILE ] && msginit -i $$POT_FILE -o $$PO_FILE || msgmerge --update $$PO_FILE $$POT_FILE; \
rm $$POT_FILE;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment