aboutsummaryrefslogtreecommitdiffstats
path: root/en/map
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2014-12-02 19:26:35 +0100
committerfilip <filip.komar@gmail.com>2014-12-02 19:26:35 +0100
commitc9f8e04fc0f461f8cb3cc875b95e5d055267065c (patch)
treebab4c7ef59ca2e9537d2f8e75a05404363ddeeb0 /en/map
parente1ee287a65a40c2e58a2c9f488e1b5dbe75c3830 (diff)
downloadwww-c9f8e04fc0f461f8cb3cc875b95e5d055267065c.tar
www-c9f8e04fc0f461f8cb3cc875b95e5d055267065c.tar.gz
www-c9f8e04fc0f461f8cb3cc875b95e5d055267065c.tar.bz2
www-c9f8e04fc0f461f8cb3cc875b95e5d055267065c.tar.xz
www-c9f8e04fc0f461f8cb3cc875b95e5d055267065c.zip
adding a list of resources over treshold for language not in a git
Diffstat (limited to 'en/map')
0 files changed, 0 insertions, 0 deletions
5'>5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
NAME = DrakX
LOCALEDIR = ${prefix}/share/locale
PMSFILES = *.pm share/meta-task/compssUsers.pl*  ../../advertising/*.pl
PMSFILES_HERE = $(wildcard $(PMSFILES:%=../../%))

MAIN_PO_FILES = ../../../share/po/libDrakX.pot

POFILES = $(wildcard *.po)
MOFILES = $(POFILES:%.po=%.mo)
LANGS = $(POFILES:%.po=%)

default: $(MOFILES)

%.mo: %.po
	msgfmt -o $@ $<

update_n_merge: $(NAME).pot merge

merge:
	for n in $(POFILES); do \
	  echo "Merging $$n"; \
	  msgmerge $$n $(NAME).pot > "$$n"t ; \
	  mv -f "$$n"t $$n ; \
	done

$(NAME).pot: $(PMSFILES_HERE)
	cd ../.. ; perl_checker -q --generate-pot share/po/.$@ $(PMSFILES)
	xgettext $(MAIN_PO_FILES:%=-x %) -o $@ .$@
	rm -f .$@

install: $(MOFILES)
	for l in $(LANGS); do \
		install -d $(LOCALEDIR)/$$l/LC_MESSAGES; \
		install -m 644 $$l.mo $(LOCALEDIR)/$$l/LC_MESSAGES/$(NAME).mo; \
	done

clean:
	@rm -rf *.mo $(POFILES:%=%t)