Skip to content

Commit 3d950c6

Browse files
committed
Make PO extraction independent of local environment
1 parent 707d0f0 commit 3d950c6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎lang/Makefile‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
INSTALLDIR = $(shell pwd)
22
LANGUAGES = `find ./ -name "maps_*.po" -print | sed 's|^\./maps_\(.*\).po|\1|'`
33
DOMAINS = maps
4-
PHP_SOURCES = $(shell find ../ -maxdepth 1 -name \*.php) \
5-
$(shell find ../lib/GaletteMaps/ -name \*.php) \
6-
$(shell find ../tempcache -name \*.twig)
4+
PHP_SOURCES = $(sort $(shell find ../ -maxdepth 1 -name \*.php)) \
5+
$(sort $(shell find ../lib/GaletteMaps/ -name \*.php)) \
6+
$(sort $(shell find ../tempcache -name \*.twig))
77

88
all : extract mo
99

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

0 commit comments

Comments
 (0)