add config option to disable the zap warning message when trying to record
[enigma2.git] / po / Makefile.am
1 DOMAIN=enigma2
2 #GETTEXT=./pygettext.py
3 GETTEXT=xgettext
4
5 #MSGFMT = ./msgfmt.py
6 MSGFMT = msgfmt
7
8 LANGS := de en
9 LANGPO := $(foreach LANG, $(LANGS),$(LANG).po)
10 LANGMO := $(foreach LANG, $(LANGS),$(LANG).mo)
11
12 default: enigma2.pot $(LANGPO) merge $(LANGMO)
13         for lang in $(LANGS); do \
14                 mkdir -p $$lang/LC_MESSAGES; \
15                 cp $$lang.mo de/LC_MESSAGES/enigma2.mo; \
16         done
17
18 merge:
19 #       msgmerge -N -U enigma2.pot menu.pot
20 #       msgmerge -N -U enigma2.pot setup.pot
21         msguniq -o enigma2uniq.pot enigma2.pot
22         rm enigma2.pot
23         mv enigma2uniq.pot enigma2.pot
24         msgmerge -N -U de.po enigma2.pot
25
26 enigma2.pot:
27         $(GETTEXT)      -d enigma2 -s -o enigma2.pot \
28                         ../lib/python/Screens/ScanSetup.py \
29                         ../lib/python/Screens/NetworkSetup.py \
30                         ../lib/python/Screens/Satconfig.py \
31                         ../lib/python/Screens/EventView.py \
32                         ../lib/python/Screens/Ci.py \
33                         ../lib/python/Screens/EpgSelection.py \
34                         ../lib/python/Screens/LanguageSelection.py \
35                         ../lib/python/Screens/About.py \
36                         ../lib/python/Screens/HarddiskSetup.py \
37                         ../lib/python/Screens/MovieSelection.py \
38                         ../lib/python/Screens/InfoBar.py \
39                         ../lib/python/Screens/TimerEdit.py \
40                         ../lib/python/Screens/TimerEntry.py \
41                         ../lib/python/Screens/Wizard.py \
42                         ../lib/python/Screens/ServiceScan.py \
43                         ../lib/python/Screens/InfoBarGenerics.py \
44                         ../lib/python/Screens/ChannelSelection.py \
45                         ../lib/python/Components/DiskInfo.py \
46                         ../lib/python/Components/ServiceScan.py \
47                         ../lib/python/Components/Lcd.py \
48                         ../lib/python/Components/SetupDevices.py \
49                         ../lib/python/Components/Language.py \
50                         ../lib/python/Components/NimManager.py \
51                         ../lib/python/Components/EventInfo.py \
52                         ../lib/python/Components/Network.py \
53                         ../lib/python/Components/RecordingConfig.py \
54                         ../RecordTimer.py
55         ./xml2po.py     ../data/ >> enigma2.pot
56
57
58 %.mo: %.po
59         $(MSGFMT) -o $@ $<
60
61 %.po:
62         msginit -l $@ -o $@ -i enigma2.pot --no-translator
63
64 clean:
65         rm *.mo *.pot
66
67 install-data-am: default
68         for lang in $(LANGS); do \
69                 mkdir -p $(DESTDIR)$(DATADIR)/enigma2/po/$$lang/LC_MESSAGES; \
70                 cp $$lang.mo $(DESTDIR)$(DATADIR)/enigma2/po/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
71         done