fix deleting the last file from the playlist in the media player
[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
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         msguniq -o enigma2uniq.pot enigma2.pot
20         $(RM) enigma2.pot
21         mv enigma2uniq.pot enigma2.pot
22         for lang in $(LANGS); do \
23                 msgmerge -N -U $$lang.po enigma2.pot; \
24         done
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/Setup.py \
37                         ../lib/python/Screens/HarddiskSetup.py \
38                         ../lib/python/Screens/MovieSelection.py \
39                         ../lib/python/Screens/InfoBar.py \
40                         ../lib/python/Screens/TimerEdit.py \
41                         ../lib/python/Screens/TimerEntry.py \
42                         ../lib/python/Screens/Wizard.py \
43                         ../lib/python/Screens/ServiceScan.py \
44                         ../lib/python/Screens/InfoBarGenerics.py \
45                         ../lib/python/Screens/ChannelSelection.py \
46                         ../lib/python/Screens/PluginBrowser.py \
47                         ../lib/python/Screens/Console.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/TimerList.py \
55                         ../lib/python/Components/EventInfo.py \
56                         ../lib/python/Components/Network.py \
57                         ../lib/python/Components/RecordingConfig.py \
58                         ../lib/python/Plugins/SystemPlugins/PositionerSetup/plugin.py \
59                         ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py \
60                         ../lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/plugin.py \
61                         ../lib/python/Plugins/SystemPlugins/ConfigurationBackup/plugin.py \
62                         ../lib/python/Tools/FuzzyDate.py \
63                         ../RecordTimer.py
64         ./xml2po.py     ../data/ >> enigma2.pot
65
66
67 %.mo: %.po
68         $(MSGFMT) -o $@ $<
69
70 %.po:
71         msginit -l $@ -o $@ -i enigma2.pot --no-translator
72
73 clean:
74         $(RM) *.mo *.pot
75
76 install-data-am: default
77         for lang in $(LANGS); do \
78                 mkdir -p $(DESTDIR)$(DATADIR)/enigma2/po/$$lang/LC_MESSAGES; \
79                 cp $$lang.mo $(DESTDIR)$(DATADIR)/enigma2/po/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
80         done