diff locale/Makefile @ 7421:c23967387bf6

Update version from roundup.pot to *.po file when merging.
author John Rouillard <rouilj@ieee.org>
date Thu, 25 May 2023 20:59:14 -0400
parents eef12ab01f51
children 7d1df030b22f
line wrap: on
line diff
--- a/locale/Makefile	Thu May 25 20:07:27 2023 -0400
+++ b/locale/Makefile	Thu May 25 20:59:14 2023 -0400
@@ -75,6 +75,11 @@
 
 %.po: $(TEMPLATE)
 	${MSGMERGE} -U --suffix=.bak $@ $<
+	# update Project-Id-Version to match roundup.pot
+	VER="`sed -ne \"/__version__/s/.*'\(.*\)'.*/\1/p\" \
+	      ../roundup/__init__.py`"; \
+	sed -i.bak -e \
+          "s/^\(\"Project-Id-Version: Roundup\).*/\1 $${VER}\\\\n\"/" $@
 
 %.mo: %.po
 	${MSGFMT} --statistics -o $@ $<

Roundup Issue Tracker: http://roundup-tracker.org/