po: go back to storing the .pot file in git

To integrate with weblate the only practical option currently is to
store the .pot file in git. This is required so that it can add new
languages by cloning the .pot file. It also enables weblate to run
msgmerge on the languages whenever pulling in new changes from git.

The pot file will have to be the full content including the source
locations, so this is going to result in unpleasant diffs when it
is updated periodically.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2020-05-18 18:11:15 +01:00
parent 35d68db5b1
commit 611e03127f
2 changed files with 48597 additions and 4 deletions

View File

@ -14,7 +14,7 @@ POTFILE := $(DOMAIN).pot
POFILES := $(LANGS:%=%.po)
GMOFILES := $(LANGS:%=%.gmo)
CLEANFILES = $(POTFILE) $(GMOFILES) POTFILES
CLEANFILES = $(GMOFILES) POTFILES
EXTRA_DIST = \
LINGUAS \
@ -68,10 +68,10 @@ pull-po: $(POTFILE)
$(MAKE) update-po
$(MAKE) update-gmo
$(POTFILE): POTFILES $(POTFILE_DEPS)
$(POTFILE): POTFILES
$(XGETTEXT) -o $@-t $(XGETTEXT_ARGS) \
--files-from=$(abs_builddir)/POTFILES
$(SED) $(SED_PO_FIXUP_ARGS) < $@-t > $@
$(SED) $(SED_PO_FIXUP_ARGS) < $@-t > $(srcdir)/$@
rm -f $@-t
%.gmo: %.po
@ -79,7 +79,7 @@ $(POTFILE): POTFILES $(POTFILE_DEPS)
$(MSGFMT) -c -o $@-t $<
mv $@-t $@
.PRECIOUS: $(POTFILE)
.PHONY: $(POTFILE)
endif HAVE_GNU_GETTEXT_TOOLS

48593
po/libvirt.pot Normal file

File diff suppressed because it is too large Load Diff