Update the POT generation in Makefile

Really delete the older POT file to avoid merge with old entry
feature.better-home
William MARTIN 2011-02-22 14:26:09 +01:00
parent a28604ae4f
commit c2207452bd
2 changed files with 5 additions and 1 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ src/IDF/gettexttemplates
indefero-*.zip
src/IDF/conf/path.php
.tx/config
src/IDF/locale/idf.pot.bak

View File

@ -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 \