Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lang/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
INSTALLDIR = $(shell pwd)
LANGUAGES = `find ./ -name "stripe_*.po" -print | sed 's|^\./stripe_\(.*\).po|\1|'`
DOMAINS = stripe
PHP_SOURCES = $(shell find ../ -maxdepth 1 -name \*.php) \
$(shell find ../lib/GaletteStripe/ -name \*.php) \
$(shell find ../tempcache -name \*.twig)
PHP_SOURCES = $(sort $(shell find ../ -maxdepth 1 -name \*.php)) \
$(sort $(shell find ../lib/GaletteStripe/ -name \*.php)) \
$(sort $(shell find ../tempcache -name \*.twig))

all : extract mo

Expand Down Expand Up @@ -32,5 +32,5 @@ extract : twig ${PHP_SOURCES} Makefile
cd ../../../../ && bin/console galette:twig-pot-references $(CURDIR)/${DOMAINS}.pot $(shell basename $(abspath $(CURDIR)/..))
echo "Generating en_US:"
@for d in ${DOMAINS}; do \
LANG=C msginit --no-translator -i $$d.pot --locale=en_US.utf8 -o $${d}_en_US.po; \
sed 's/charset=CHARSET/charset=UTF-8/' $$d.pot | LANG=C msginit --no-translator -i - --locale=en_US.utf8 -o $${d}_en_US.po; \
done
Loading