Skip to content

Commit f94ca8a

Browse files
committed
Update version from roundup.pot to *.po file when merging.
1 parent e105dfd commit f94ca8a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

locale/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ potest:
7575

7676
%.po: $(TEMPLATE)
7777
${MSGMERGE} -U --suffix=.bak $@ $<
78+
# update Project-Id-Version to match roundup.pot
79+
VER="`sed -ne \"/__version__/s/.*'\(.*\)'.*/\1/p\" \
80+
../roundup/__init__.py`"; \
81+
sed -i.bak -e \
82+
"s/^\(\"Project-Id-Version: Roundup\).*/\1 $${VER}\\\\n\"/" $@
7883

7984
%.mo: %.po
8085
${MSGFMT} --statistics -o $@ $<

0 commit comments

Comments
 (0)