translations
[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/Wizard.py \
38                         ../lib/python/Screens/ServiceScan.py \
39                         ../lib/python/Components/ServiceScan.py \
40                         ../lib/python/Components/SetupDevices.py \
41                         ../lib/python/Components/Language.py \
42                         ../lib/python/Components/NimManager.py \
43                         ../lib/python/Components/EventInfo.py \
44                         ../lib/python/Components/Network.py 
45         ./xml2po.py     ../data/ >> enigma2.pot
46
47
48 %.mo: %.po
49         $(MSGFMT) -o $@ $<
50
51 %.po:
52         msginit -l $@ -o $@ -i enigma2.pot --no-translator
53         
54
55 clean:
56         rm *.mo *.pot