Update the POT generation in Makefile
Really delete the older POT file to avoid merge with old entry
This commit is contained in:
parent
a28604ae4f
commit
c2207452bd
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@ src/IDF/gettexttemplates
|
||||
indefero-*.zip
|
||||
src/IDF/conf/path.php
|
||||
.tx/config
|
||||
src/IDF/locale/idf.pot.bak
|
||||
|
5
Makefile
5
Makefile
@ -42,7 +42,10 @@ all help:
|
||||
.PHONY: pot-update po-update
|
||||
pot-update:
|
||||
# Backup pot file
|
||||
cd src; cp -f IDF/locale/idf.pot IDF/locale/idf.pot.bak
|
||||
@if [ -e src/IDF/locale/idf.pot ]; then \
|
||||
mv -f src/IDF/locale/idf.pot src/IDF/locale/idf.pot.bak; \
|
||||
fi
|
||||
touch src/IDF/locale/idf.pot;
|
||||
# Extract string
|
||||
@cd src; php $(PLUF_PATH)/extracttemplates.php IDF/conf/idf.php IDF/gettexttemplates
|
||||
@cd src; for phpfile in `find . -iname "*.php"`; do \
|
||||
|
Loading…
Reference in New Issue
Block a user