add netherlands
[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 ar nl
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 $$lang/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         msgmerge -N -U ar.po enigma2.pot
26         msgmerge -N -U nl.po enigma2.pot
27
28 enigma2.pot:
29         $(GETTEXT)      -d enigma2 -s -o enigma2.pot \
30                         ../lib/python/Screens/ScanSetup.py \
31                         ../lib/python/Screens/NetworkSetup.py \
32                         ../lib/python/Screens/Satconfig.py \
33                         ../lib/python/Screens/EventView.py \
34                         ../lib/python/Screens/Ci.py \
35                         ../lib/python/Screens/EpgSelection.py \
36                         ../lib/python/Screens/LanguageSelection.py \
37                         ../lib/python/Screens/About.py \
38                         ../lib/python/Screens/Setup.py \
39                         ../lib/python/Screens/HarddiskSetup.py \
40                         ../lib/python/Screens/MovieSelection.py \
41                         ../lib/python/Screens/InfoBar.py \
42                         ../lib/python/Screens/TimerEdit.py \
43                         ../lib/python/Screens/TimerEntry.py \
44                         ../lib/python/Screens/Wizard.py \
45                         ../lib/python/Screens/ServiceScan.py \
46                         ../lib/python/Screens/InfoBarGenerics.py \
47                         ../lib/python/Screens/ChannelSelection.py \
48                         ../lib/python/Components/DiskInfo.py \
49                         ../lib/python/Components/ServiceScan.py \
50                         ../lib/python/Components/Lcd.py \
51                         ../lib/python/Components/SetupDevices.py \
52                         ../lib/python/Components/Language.py \
53                         ../lib/python/Components/NimManager.py \
54                         ../lib/python/Components/EventInfo.py \
55                         ../lib/python/Components/Network.py \
56                         ../lib/python/Components/RecordingConfig.py \
57                         ../lib/python/Plugins/update/plugin.py \
58                         ../RecordTimer.py
59         ./xml2po.py     ../data/ >> enigma2.pot
60
61
62 %.mo: %.po
63         $(MSGFMT) -o $@ $<
64
65 %.po:
66         msginit -l $@ -o $@ -i enigma2.pot --no-translator
67
68 clean:
69         rm *.mo *.pot
70
71 install-data-am: default
72         for lang in $(LANGS); do \
73                 mkdir -p $(DESTDIR)$(DATADIR)/enigma2/po/$$lang/LC_MESSAGES; \
74                 cp $$lang.mo $(DESTDIR)$(DATADIR)/enigma2/po/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
75         done