~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-05-16 22:28:36 UTC
  • mfrom: (5830.2.22 i18n-msgextract)
  • Revision ID: pqm@pqm.ubuntu.com-20110516222836-prryayncmfqqh6w3
(vila) Extract messages for translation. (INADA Naoki)

Show diffs side-by-side

added added

removed removed

Lines of Context:
420
420
        $(PYTHON) tools/win32/ostools.py remove dist
421
421
 
422
422
 
 
423
# i18n targets
 
424
 
 
425
.PHONY: update-pot po/bzr.pot
 
426
update-pot: po/bzr.pot
 
427
 
 
428
TRANSLATABLE_PYFILES:=$(shell find bzrlib -name '*.py' \
 
429
                | grep -v 'bzrlib/tests/' \
 
430
                | grep -v 'bzrlib/doc' \
 
431
                )
 
432
 
 
433
po/bzr.pot: $(PYFILES) $(DOCFILES)
 
434
        $(PYTHON) ./bzr export-pot > po/bzr.pot
 
435
        echo $(TRANSLATABLE_PYFILES) | xargs \
 
436
          xgettext --package-name "bzr" \
 
437
          --msgid-bugs-address "<bazaar@canonical.com>" \
 
438
          --copyright-holder "Canonical" \
 
439
          --from-code ISO-8859-1 --join --sort-by-file --add-comments=i18n: \
 
440
          -d bzr -p po -o bzr.pot
 
441
 
 
442
 
423
443
### Packaging Targets ###
424
444
 
425
445
.PHONY: dist check-dist-tarball