Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4b9fd45d92 | ||
|
|
42b07fea6a | ||
|
|
04a526e728 | ||
|
|
e28efeab7e |
+1
-1
@@ -1 +1 @@
|
|||||||
1.11.4
|
1.11.6
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ ENV?="dev"
|
|||||||
|
|
||||||
install:
|
install:
|
||||||
#copy config file from template first time only
|
#copy config file from template first time only
|
||||||
# @if [ ! -f config.xml ]; then \
|
@if [ ! -f config.xml ]; then \
|
||||||
# cp config.xml.dist config.xml; \
|
cp config.xml.dist config.xml; \
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
@if [ $(ENV) = "dev" ]; then \
|
@if [ $(ENV) = "dev" ]; then \
|
||||||
make install_dev; \
|
make install_dev; \
|
||||||
@@ -69,12 +69,14 @@ i18n:
|
|||||||
|
|
||||||
#compile templates in each language, required for production env.
|
#compile templates in each language, required for production env.
|
||||||
templates:
|
templates:
|
||||||
mkdir -p lang/master/tmp
|
|
||||||
haxe cagette.hxml -D i18n_generation
|
haxe cagette.hxml -D i18n_generation
|
||||||
@make LANG=fr ctemplates
|
@make LANG=fr ctemplates
|
||||||
|
|
||||||
msgfmt www/lang/texts_fr.po -o www/lang/texts_fr.mo
|
msgfmt www/lang/texts_fr.po -o www/lang/texts_fr.mo
|
||||||
|
mkdir -p lang/master/tmp
|
||||||
|
|
||||||
chown www-data:www-data -R www
|
chown www-data:www-data -R www
|
||||||
chown www-data:www-data -R lang/fr
|
chown www-data:www-data -R lang
|
||||||
|
|
||||||
ctemplates:
|
ctemplates:
|
||||||
(cd lang/$(LANG)/tpl; temploc2 -macros macros.mtt -output ../tmp/ *.mtt */*.mtt */*/*.mtt)
|
(cd lang/$(LANG)/tpl; temploc2 -macros macros.mtt -output ../tmp/ *.mtt */*.mtt */*/*.mtt)
|
||||||
|
|||||||
Reference in New Issue
Block a user