提交 611e0312 编写于 作者: D Daniel P. Berrangé

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: NPavel Hrdina <phrdina@redhat.com>
Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
上级 35d68db5
...@@ -14,7 +14,7 @@ POTFILE := $(DOMAIN).pot ...@@ -14,7 +14,7 @@ POTFILE := $(DOMAIN).pot
POFILES := $(LANGS:%=%.po) POFILES := $(LANGS:%=%.po)
GMOFILES := $(LANGS:%=%.gmo) GMOFILES := $(LANGS:%=%.gmo)
CLEANFILES = $(POTFILE) $(GMOFILES) POTFILES CLEANFILES = $(GMOFILES) POTFILES
EXTRA_DIST = \ EXTRA_DIST = \
LINGUAS \ LINGUAS \
...@@ -68,10 +68,10 @@ pull-po: $(POTFILE) ...@@ -68,10 +68,10 @@ pull-po: $(POTFILE)
$(MAKE) update-po $(MAKE) update-po
$(MAKE) update-gmo $(MAKE) update-gmo
$(POTFILE): POTFILES $(POTFILE_DEPS) $(POTFILE): POTFILES
$(XGETTEXT) -o $@-t $(XGETTEXT_ARGS) \ $(XGETTEXT) -o $@-t $(XGETTEXT_ARGS) \
--files-from=$(abs_builddir)/POTFILES --files-from=$(abs_builddir)/POTFILES
$(SED) $(SED_PO_FIXUP_ARGS) < $@-t > $@ $(SED) $(SED_PO_FIXUP_ARGS) < $@-t > $(srcdir)/$@
rm -f $@-t rm -f $@-t
%.gmo: %.po %.gmo: %.po
...@@ -79,7 +79,7 @@ $(POTFILE): POTFILES $(POTFILE_DEPS) ...@@ -79,7 +79,7 @@ $(POTFILE): POTFILES $(POTFILE_DEPS)
$(MSGFMT) -c -o $@-t $< $(MSGFMT) -c -o $@-t $<
mv $@-t $@ mv $@-t $@
.PRECIOUS: $(POTFILE) .PHONY: $(POTFILE)
endif HAVE_GNU_GETTEXT_TOOLS endif HAVE_GNU_GETTEXT_TOOLS
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册