1 dist_noinst_SCRIPTS = xml2po.py
3 LANGS = ar ca cs da de el en es et fi fr fy hr hu is it lt lv nl no pl pt ru sv sk sl sr tr uk
10 # the TRANSLATORS: allows putting translation comments before the to-be-translated line.
11 enigma2-py.pot: $(top_srcdir)/*.py $(top_srcdir)/lib/python/*/*.py $(top_srcdir)/lib/python/Plugins/*/*/*.py
12 $(XGETTEXT) -L Python --from-code=UTF-8 --add-comments="TRANSLATORS:" -d @PACKAGE_NAME@ -s -o $@ $^
14 enigma2-xml.pot: $(srcdir)/xml2po.py $(top_srcdir)/data/*.xml $(top_srcdir)/lib/python/Plugins/SystemPlugins/*/*.xml
17 enigma2.pot: enigma2-py.pot enigma2-xml.pot
18 cat $^ | $(MSGUNIQ) --no-location -o $@ -
22 $(MSGMERGE) --backup=none --no-location -s -N -U $@ $< && touch $@; \
24 $(MSGINIT) -l $@ -o $@ -i $< --no-translator; \
31 BUILT_SOURCES = $(LANGMO)
32 CLEANFILES = $(LANGMO) enigma2-py.pot enigma2-xml.pot enigma2.pot
36 install-data-local: $(LANGMO)
37 for lang in $(LANGS); do \
38 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/po/$$lang/LC_MESSAGES; \
39 $(INSTALL_DATA) $$lang.mo $(DESTDIR)$(pkgdatadir)/po/$$lang/LC_MESSAGES/@PACKAGE_NAME@.mo; \
43 for lang in $(LANGS); do \
44 $(RM) $(DESTDIR)$(pkgdatadir)/po/$$lang/LC_MESSAGES/@PACKAGE_NAME@.mo; \