convert radiotext to utf8
[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 ca
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/ParentalControlSetup.py \
46                         ../lib/python/Screens/Console.py \
47                         ../lib/python/Screens/MediaPlayer.py \
48                         ../lib/python/Screens/PiPSetup.py \
49                         ../lib/python/Screens/SubservicesQuickzap.py \
50                         ../lib/python/Components/DiskInfo.py \
51                         ../lib/python/Components/ServiceScan.py \
52                         ../lib/python/Components/Lcd.py \
53                         ../lib/python/Components/SetupDevices.py \
54                         ../lib/python/Components/Language.py \
55                         ../lib/python/Components/ParentalControl.py \
56                         ../lib/python/Components/ParentalControlList.py \
57                         ../lib/python/Components/NimManager.py \
58                         ../lib/python/Components/TimerList.py \
59                         ../lib/python/Components/Network.py \
60                         ../lib/python/Components/RecordingConfig.py \
61                         ../lib/python/Plugins/SystemPlugins/PositionerSetup/plugin.py \
62                         ../lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py \
63                         ../lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/plugin.py \
64                         ../lib/python/Plugins/SystemPlugins/ConfigurationBackup/plugin.py \
65                         ../lib/python/Tools/FuzzyDate.py \
66                         ../RecordTimer.py
67         ./xml2po.py     ../data/ >> enigma2.pot
68         msguniq -o enigma2uniq.pot enigma2.pot
69         $(RM) enigma2.pot
70         mv enigma2uniq.pot enigma2.pot
71
72 .PHONY: enigma2.pot
73
74
75 %.mo: %.po
76         $(MSGFMT) -o $@ $<
77
78 %.po:
79         msginit -l $@ -o $@ -i enigma2.pot --no-translator
80
81 clean:
82         $(RM) *.mo *.pot
83
84 install-data-am: default
85         for lang in $(LANGS); do \
86                 mkdir -p $(DESTDIR)$(DATADIR)/enigma2/po/$$lang/LC_MESSAGES; \
87                 cp $$lang.mo $(DESTDIR)$(DATADIR)/enigma2/po/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
88         done