From 911e54496f061ca9cd22bef12a889b70b5bb03a9 Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Tue, 18 Aug 2009 16:10:40 +0200 Subject: [PATCH] move supported language codes to po/LINGUAS --- Makefile.am | 8 ++++---- po/LINGUAS | 1 + po/Makefile.am | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 po/LINGUAS diff --git a/Makefile.am b/Makefile.am index 5e37ca41..38e8ab2d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,9 +7,9 @@ install_PYTHON = \ keyids.py keymapparser.py mytest.py skin.py timer.py tools.py GlobalActions.py \ e2reactor.py -LANGS := ar ca cs da de el en es fi fr fy hr hu is it lt lv nl no pl pt ru sv sk sl sr tr uk +LANGS := $(shell cat $(srcdir)/po/LINGUAS) install-exec-hook: - for lang in ${LANGS}; do \ - python $(srcdir)/tools/genmetaindex.py $$lang $(DESTDIR)$(pkgdatadir)/meta/enigma2/plugin_*.xml > $(DESTDIR)$(pkgdatadir)/meta/enigma2/index_$$lang.xml; \ - done; + for lang in $(LANGS); do \ + $(PYTHON) $(srcdir)/tools/genmetaindex.py $$lang $(DESTDIR)$(pkgdatadir)/meta/enigma2/plugin_*.xml > $(DESTDIR)$(pkgdatadir)/meta/enigma2/index_$$lang.xml; \ + done diff --git a/po/LINGUAS b/po/LINGUAS new file mode 100644 index 00000000..852dc4ac --- /dev/null +++ b/po/LINGUAS @@ -0,0 +1 @@ +ar ca cs da de el en es fi fr fy hr hu is it lt lv nl no pl pt ru sv sk sl sr tr uk diff --git a/po/Makefile.am b/po/Makefile.am index 6f0010e3..b589e70a 100755 --- a/po/Makefile.am +++ b/po/Makefile.am @@ -5,7 +5,7 @@ GETTEXT=xgettext #MSGFMT = ./msgfmt.py MSGFMT = msgfmt -LANGS := ar ca cs da de el en es fi fr fy hr hu is it lt lv nl no pl pt ru sv sk sl sr tr uk +LANGS := $(shell cat $(srcdir)/LINGUAS) LANGPO := $(foreach LANG, $(LANGS),$(LANG).po) LANGMO := $(foreach LANG, $(LANGS),$(LANG).mo) -- 2.30.2