Commit 68005c2f authored by Tobias Quathamer's avatar Tobias Quathamer

Modify target update-po to clean up po files

parent 39f2eb25
......@@ -14,12 +14,17 @@ check-content:
false; \
fi
# This target merges all po files with the current pot file,
# removes obsolete msgids and substitutes the Project-Id-Version
# header with the correct value
.PHONY: update-po
update-po:
for pofile in $(pofiles); do \
$(MSGMERGE) $$pofile $(DOMAIN).pot > tmpfile; \
mv tmpfile $$pofile; \
msgattrib --no-obsolete tmpfile > $$pofile; \
sed -i -e 's/^\"Project-Id-Version: iso.*/\"Project-Id-Version: $(DOMAIN) $(VERSION)\\n\"/' $$pofile; \
done
rm -f tmpfile
localedir = $(datadir)/locale
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment