1 INSTALLDIR = $(LIBDIR)/enigma2/python/Plugins/SystemPlugins/SetPasswd
3 #GETTEXT=./pygettext.py
9 LANGS := de en ar nl es is it da sv no fr fi tr ca cs hr hu ru pt el lt pl
10 LANGPO := $(foreach LANG, $(LANGS),$(LANG).po)
11 LANGMO := $(foreach LANG, $(LANGS),$(LANG).mo)
13 default: SetPasswd.pot $(LANGPO) merge $(LANGMO)
14 for lang in $(LANGS); do \
15 mkdir -p $$lang/LC_MESSAGES; \
16 cp $$lang.mo $$lang/LC_MESSAGES/SetPasswd.mo; \
20 for lang in $(LANGS); do \
21 msgmerge --no-location -s -N -U $$lang.po SetPasswd.pot; \
25 # the TRANSLATORS: allows putting translation comments before the to-be-translated line.
27 $(GETTEXT) -L python --add-comments="TRANSLATORS:" -d SetPasswd -s -o SetPasswd.pot ../src/*.py
29 msguniq -o SetPasswduniq.pot SetPasswd.pot
31 mv SetPasswduniq.pot SetPasswd.pot
40 msginit -l $@ -o $@ -i SetPasswd.pot --no-translator
42 CLEANFILES = $(foreach LANG, $(LANGS),$(LANG).mo)
47 install-data-am: default
48 for lang in $(LANGS); do \
49 mkdir -p $(DESTDIR)$(INSTALLDIR)/po/$$lang/LC_MESSAGES; \
50 cp $$lang.mo $(DESTDIR)$(INSTALLDIR)/po/$$lang/LC_MESSAGES/$(DOMAIN).mo; \