Skip to content

Commit

Permalink
Run msgmerge after importing translations from Transifex
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jun 20, 2012
1 parent b23672b commit efd5571
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile.am
Expand Up @@ -101,11 +101,15 @@ tag: uncommitted-check
@git tag v$(VERSION)
@cd $(srcdir) && ./autogen.sh

update-translations:
update-translations: po/$(PACKAGE).pot
@cd $(top_srcdir); if ! git diff-index --name-only --exit-code HEAD -- po/; then \
echo "*** ERROR: Uncommitted changes in above files"; exit 1; \
else \
tx pull -af ; git commit -s -m "Update translations from Transifex" -- po/ ; \
tx pull -af && \
for a in po/*.po; do \
msgmerge -F $$a $(abs_builddir)/po/$(PACKAGE).pot > $$a.new && mv $$a.new $$a ; \
done && \
git commit -s -m "Update translations from Transifex" -- po/ ; \
fi

upload-pot: po/$(PACKAGE).pot
Expand Down

0 comments on commit efd5571

Please sign in to comment.