Created
May 14, 2014 14:22
-
-
Save stephane/f76b89d030a4444e7fb8 to your computer and use it in GitHub Desktop.
Makefile target to generate PO file from POT (angular-gettext)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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