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