2 #GETTEXT=./pygettext.py
8 LANGS := de en ar nl es is it da sv no fr fi tr ca
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 -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/SystemPlugins/PositionerSetup/plugin.py \
28 ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py \
29 ../lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/plugin.py \
30 ../lib/python/Plugins/SystemPlugins/ConfigurationBackup/plugin.py
32 ./xml2po.py ../data/ >> enigma2.pot
33 msguniq -o enigma2uniq.pot enigma2.pot
35 mv enigma2uniq.pot enigma2.pot
44 msginit -l $@ -o $@ -i enigma2.pot --no-translator
49 install-data-am: default
50 for lang in $(LANGS); do \
51 mkdir -p $(DESTDIR)$(DATADIR)/enigma2/po/$$lang/LC_MESSAGES; \
52 cp $$lang.mo $(DESTDIR)$(DATADIR)/enigma2/po/$$lang/LC_MESSAGES/$(DOMAIN).mo; \