1 CATEGORY ?= "SystemPlugins"
3 plugindir = $(libdir)/enigma2/python/Plugins/$(CATEGORY)/$(PLUGIN)
9 # the TRANSLATORS: allows putting translation comments before the to-be-translated line.
10 $(PLUGIN)-py.pot: $(srcdir)/../*.py
11 $(XGETTEXT) -L python --from-code=UTF-8 --add-comments="TRANSLATORS:" -d $(PLUGIN) -s -o $@ $^
13 $(PLUGIN)-xml.pot: $(top_srcdir)/xml2po.py $(srcdir)/../*.xml
16 $(PLUGIN).pot: $(PLUGIN)-py.pot $(PLUGIN)-xml.pot
17 cat $^ | $(MSGUNIQ) --no-location -o $@ -
21 $(MSGMERGE) --backup=none --no-location -s -N -U $@ $< && touch $@; \
23 $(MSGINIT) -l $@ -o $@ -i $< --no-translator; \
30 BUILT_SOURCES = $(LANGMO)
31 CLEANFILES = $(LANGMO) $(PLUGIN)-py.pot $(PLUGIN)-xml.pot $(PLUGIN).pot
35 install-data-local: $(LANGMO)
36 for lang in $(LANGS); do \
37 $(mkinstalldirs) $(DESTDIR)$(plugindir)/locale/$$lang/LC_MESSAGES; \
38 $(INSTALL_DATA) $$lang.mo $(DESTDIR)$(plugindir)/locale/$$lang/LC_MESSAGES/$(PLUGIN).mo; \
42 for lang in $(LANGS); do \
43 $(RM) $(DESTDIR)$(plugindir)/locale/$$lang/LC_MESSAGES/$(PLUGIN).mo; \