update NL translation, thanks to kees aerts
[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 es is it da sv no fr fi tr
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         for lang in $(LANGS); do \
20                 msgmerge -N -U $$lang.po enigma2.pot; \
21         done
22
23 enigma2.pot:
24         $(GETTEXT)      -d enigma2 -s -o enigma2.pot \
25                         ../lib/python/Screens/ScanSetup.py \
26                         ../lib/python/Screens/NetworkSetup.py \
27                         ../lib/python/Screens/Satconfig.py \
28                         ../lib/python/Screens/EventView.py \
29                         ../lib/python/Screens/Ci.py \
30                         ../lib/python/Screens/EpgSelection.py \
31                         ../lib/python/Screens/LanguageSelection.py \
32                         ../lib/python/Screens/About.py \
33                         ../lib/python/Screens/Setup.py \
34                         ../lib/python/Screens/HarddiskSetup.py \
35                         ../lib/python/Screens/MovieSelection.py \
36                         ../lib/python/Screens/InfoBar.py \
37                         ../lib/python/Screens/TimerEdit.py \
38                         ../lib/python/Screens/TimerEntry.py \
39                         ../lib/python/Screens/TimeDateInput.py \
40                         ../lib/python/Screens/Wizard.py \
41                         ../lib/python/Screens/ServiceScan.py \
42                         ../lib/python/Screens/InfoBarGenerics.py \
43                         ../lib/python/Screens/ChannelSelection.py \
44                         ../lib/python/Screens/PluginBrowser.py \
45                         ../lib/python/Screens/Console.py \
46                         ../lib/python/Screens/MediaPlayer.py \
47                         ../lib/python/Components/DiskInfo.py \
48                         ../lib/python/Components/ServiceScan.py \
49                         ../lib/python/Components/Lcd.py \
50                         ../lib/python/Components/SetupDevices.py \
51                         ../lib/python/Components/Language.py \
52                         ../lib/python/Components/NimManager.py \
53                         ../lib/python/Components/TimerList.py \
54                         ../lib/python/Components/EventInfo.py \
55                         ../lib/python/Components/Network.py \
56                         ../lib/python/Components/RecordingConfig.py \
57                         ../lib/python/Plugins/SystemPlugins/PositionerSetup/plugin.py \
58                         ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py \
59                         ../lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/plugin.py \
60                         ../lib/python/Plugins/SystemPlugins/ConfigurationBackup/plugin.py \
61                         ../lib/python/Tools/FuzzyDate.py \
62                         ../RecordTimer.py
63         ./xml2po.py     ../data/ >> enigma2.pot
64         msguniq -o enigma2uniq.pot enigma2.pot
65         $(RM) enigma2.pot
66         mv enigma2uniq.pot enigma2.pot
67
68 .PHONY: enigma2.pot
69
70
71 %.mo: %.po
72         $(MSGFMT) -o $@ $<
73
74 %.po:
75         msginit -l $@ -o $@ -i enigma2.pot --no-translator
76
77 clean:
78         $(RM) *.mo *.pot
79
80 install-data-am: default
81         for lang in $(LANGS); do \
82                 mkdir -p $(DESTDIR)$(DATADIR)/enigma2/po/$$lang/LC_MESSAGES; \
83                 cp $$lang.mo $(DESTDIR)$(DATADIR)/enigma2/po/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
84         done