we don't have positioner support so we don't need a config menu for it
[enigma2.git] / po / Makefile
1 #GETTEXT=./pygettext.py
2 GETTEXT=xgettext
3
4 #MSGFMT = ./msgfmt.py
5 MSGFMT = msgfmt
6
7 LANGS := de en
8 LANGPO := $(foreach LANG, $(LANGS),$(LANG).po)
9 LANGMO := $(foreach LANG, $(LANGS),$(LANG).mo)
10
11 default: enigma2.pot $(LANGPO) merge $(LANGMO)
12         -mkdir -p de/LC_MESSAGES
13         cp de.mo de/LC_MESSAGES/enigma2.mo
14
15         -mkdir -p en/LC_MESSAGES
16         cp en.mo en/LC_MESSAGES/enigma2.mo
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/About.py \
34                         ../lib/python/Screens/HarddiskSetup.py \
35                         ../lib/python/Screens/InfoBar.py \
36                         ../lib/python/Screens/TimerEdit.py \
37                         ../lib/python/Screens/TimerEntry.py \
38                         ../lib/python/Screens/Wizard.py \
39                         ../lib/python/Screens/ServiceScan.py \
40                         ../lib/python/Screens/InfoBarGenerics.py \
41                         ../lib/python/Components/ServiceScan.py \
42                         ../lib/python/Components/Lcd.py \
43                         ../lib/python/Components/SetupDevices.py \
44                         ../lib/python/Components/Language.py \
45                         ../lib/python/Components/NimManager.py \
46                         ../lib/python/Components/EventInfo.py \
47                         ../lib/python/Components/Network.py 
48         ./xml2po.py     ../data/ >> enigma2.pot
49
50
51 %.mo: %.po
52         $(MSGFMT) -o $@ $<
53
54 %.po:
55         msginit -l $@ -o $@ -i enigma2.pot --no-translator
56         
57
58 clean:
59         rm *.mo *.pot