~ubuntu-core-dev/ubuntu-release-upgrader/trunk

« back to all changes in this revision

Viewing changes to po/Makefile

  • Committer: Balint Reczey
  • Date: 2019-12-17 20:29:55 UTC
  • Revision ID: balint.reczey@canonical.com-20191217202955-nqe4xz2c54s60y59
Moved to git at https://git.launchpad.net/ubuntu-release-upgrader

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
top_srcdir=`pwd`/..
3
 
 
4
 
DOMAIN=ubuntu-release-upgrader
5
 
PO_FILES := $(wildcard *.po)
6
 
CONTACT=sebastian.heinlein@web.de
7
 
XGETTEXT_ARGS = --msgid-bugs-address=$(CONTACT)
8
 
XGETTEXT_ARGS += --keyword=unicode_gettext:2 --keyword=unicode_ngettext:2,3
9
 
 
10
 
all: update-po
11
 
 
12
 
# update the pot
13
 
$(DOMAIN).pot:
14
 
        XGETTEXT_ARGS="$(XGETTEXT_ARGS)" intltool-update -p -g $(DOMAIN)
15
 
 
16
 
# merge the new stuff into the po files
17
 
merge-po: $(PO_FILES)
18
 
        XGETTEXT_ARGS="$(XGETTEXT_ARGS)" intltool-update -r -g $(DOMAIN); 
19
 
 
20
 
# create mo from the pos
21
 
%.mo : %.po
22
 
        mkdir -p mo/$(subst .po,,$<)/LC_MESSAGES/ 
23
 
        msgfmt $< -o mo/$(subst .po,,$<)/LC_MESSAGES/$(DOMAIN).mo 
24
 
 
25
 
# dummy target 
26
 
update-po: $(DOMAIN).pot merge-po $(patsubst %.po,%.mo,$(wildcard *.po))
27