2 #GETTEXT=./pygettext.py
8 LANGS := de en ar nl es is it da sv no fr fi tr ca cs
9 LANGPO := $(foreach LANG, $(LANGS),$(LANG).po)
10 LANGMO := $(foreach LANG, $(LANGS),$(LANG).mo)
12 default: enigma2.pot $(LANGPO) merge $(LANGMO)
13 for lang in $(LANGS); do \
14 mkdir -p $$lang/LC_MESSAGES; \
15 cp $$lang.mo $$lang/LC_MESSAGES/enigma2.mo; \
19 for lang in $(LANGS); do \
20 msgmerge --no-location -s -N -U $$lang.po enigma2.pot; \
24 $(GETTEXT) -d enigma2 -s -o enigma2.pot ../lib/python/Screens/*.py ../lib/python/Components/*.py \
25 ../lib/python/Tools/*.py \
27 ../lib/python/Plugins/*/*/*.py
29 ./xml2po.py ../data/ >> enigma2.pot
30 msguniq -o enigma2uniq.pot enigma2.pot
32 mv enigma2uniq.pot enigma2.pot
41 msginit -l $@ -o $@ -i enigma2.pot --no-translator
46 install-data-am: default
47 for lang in $(LANGS); do \
48 mkdir -p $(DESTDIR)$(DATADIR)/enigma2/po/$$lang/LC_MESSAGES; \
49 cp $$lang.mo $(DESTDIR)$(DATADIR)/enigma2/po/$$lang/LC_MESSAGES/$(DOMAIN).mo; \