2008-06-06 15:25:55 +00:00
|
|
|
# LyX specific code to generate lyx.pot
|
|
|
|
|
|
|
|
DISTFILES.common.extra2 = lyx_pot.py postats.py pocheck.pl Makefile.in \
|
|
|
|
Rules-lyx
|
|
|
|
|
|
|
|
POTFILE_IN_DEPS = $(shell find $(top_srcdir)/src -name Makefile.am)
|
|
|
|
|
|
|
|
$(DOMAIN).pot-update: l10n_pots
|
|
|
|
|
2012-06-29 10:09:50 +00:00
|
|
|
# The ui_*.h and moc_*.cpp filters must match the patterns in src/frontends/qt4/Makefile.am
|
2008-06-06 15:25:55 +00:00
|
|
|
${srcdir}/POTFILES.in: $(POTFILE_IN_DEPS)
|
|
|
|
LC_ALL=C ; export LC_ALL ; \
|
|
|
|
rm -f $@-t \
|
|
|
|
&& ( cd $(top_srcdir); \
|
2012-06-29 10:09:50 +00:00
|
|
|
grep -l "_(\".*\")" `find src \( \( -name '*.h' -a ! -name 'ui_*.h' \) -o \( -name '*.cpp' -a ! -name 'moc_*.cpp' \) \) -print` |\
|
2008-06-06 15:25:55 +00:00
|
|
|
sort | uniq ) > $@-t \
|
|
|
|
&& mv $@-t $@
|
|
|
|
|
2008-07-11 08:56:17 +00:00
|
|
|
l10n_pots: qt4_l10n.pot layouts_l10n.pot languages_l10n.pot encodings_l10n.pot ui_l10n.pot external_l10n.pot formats_l10n.pot
|
2008-06-06 15:25:55 +00:00
|
|
|
cat $^ | \
|
|
|
|
msguniq -o $(DOMAIN).po && rm -f $^
|
|
|
|
|
|
|
|
|
|
|
|
qt4_l10n.pot: $(top_srcdir)/src/frontends/qt4/ui/*.ui
|
|
|
|
LC_ALL=C ; export LC_ALL ; \
|
2011-11-29 23:03:08 +00:00
|
|
|
$(PYTHON) $(srcdir)/lyx_pot.py -b $(top_srcdir) -o $@ -t qt4 ${top_srcdir}/src/frontends/qt4/ui/*.ui
|
2008-06-06 15:25:55 +00:00
|
|
|
|
|
|
|
layouts_l10n.pot: $(top_srcdir)/lib/layouts/*.layout $(top_srcdir)/lib/layouts/*.inc \
|
|
|
|
$(top_srcdir)/lib/layouts/*.module
|
|
|
|
LC_ALL=C ; export LC_ALL ; \
|
2011-11-29 23:03:08 +00:00
|
|
|
$(PYTHON) $(srcdir)/lyx_pot.py -b $(top_srcdir) -o $@ -t layouts ${top_srcdir}/lib/layouts/*.layout ${top_srcdir}/lib/layouts/*.inc ${top_srcdir}/lib/layouts/*.module
|
2011-03-23 19:17:15 +00:00
|
|
|
|
|
|
|
$(top_srcdir)/lib/layouttranslations: $(POFILES) $(top_srcdir)/lib/layouts/*.layout \
|
|
|
|
$(top_srcdir)/lib/layouts/*.inc $(top_srcdir)/lib/layouts/*.module
|
|
|
|
LC_ALL=C ; export LC_ALL ; \
|
2011-11-29 23:03:08 +00:00
|
|
|
$(PYTHON) $(srcdir)/lyx_pot.py -b $(top_srcdir) -o $@ -t layouttranslations ${top_srcdir}/lib/layouts/*.layout ${top_srcdir}/lib/layouts/*.inc ${top_srcdir}/lib/layouts/*.module
|
2008-06-06 15:25:55 +00:00
|
|
|
|
|
|
|
languages_l10n.pot: $(top_srcdir)/lib/languages
|
2011-11-29 23:03:08 +00:00
|
|
|
$(PYTHON) $(srcdir)/lyx_pot.py -b $(top_srcdir) -o $@ -t languages ${top_srcdir}/lib/languages
|
2008-06-06 15:25:55 +00:00
|
|
|
|
2008-07-11 08:56:17 +00:00
|
|
|
encodings_l10n.pot: $(top_srcdir)/lib/encodings
|
2011-11-29 23:03:08 +00:00
|
|
|
$(PYTHON) $(srcdir)/lyx_pot.py -b $(top_srcdir) -o $@ -t encodings ${top_srcdir}/lib/encodings
|
2008-07-11 08:56:17 +00:00
|
|
|
|
2008-06-06 15:25:55 +00:00
|
|
|
ui_l10n.pot: $(top_srcdir)/lib/ui/*.ui $(top_srcdir)/lib/ui/*.inc
|
|
|
|
LC_ALL=C ; export LC_ALL ; \
|
2011-11-29 23:03:08 +00:00
|
|
|
$(PYTHON) $(srcdir)/lyx_pot.py -b $(top_srcdir) -o $@ -t ui ${top_srcdir}/lib/ui/*.ui ${top_srcdir}/lib/ui/*.inc
|
2008-06-06 15:25:55 +00:00
|
|
|
|
|
|
|
external_l10n.pot: $(top_srcdir)/lib/external_templates
|
2011-11-29 23:03:08 +00:00
|
|
|
$(PYTHON) $(srcdir)/lyx_pot.py -b $(top_srcdir) -o $@ -t external ${top_srcdir}/lib/external_templates
|
2008-06-06 15:25:55 +00:00
|
|
|
|
|
|
|
formats_l10n.pot: $(top_srcdir)/lib/configure.py
|
2011-11-29 23:03:08 +00:00
|
|
|
$(PYTHON) $(srcdir)/lyx_pot.py -b $(top_srcdir) -o $@ -t formats ${top_srcdir}/lib/configure.py
|
2008-06-06 15:25:55 +00:00
|
|
|
|
|
|
|
# LyX specific code to generate l10n statistics for the web site
|
|
|
|
i18n.inc: $(POFILES) postats.py
|
2011-11-29 23:03:08 +00:00
|
|
|
(cd $(srcdir) ; $(PYTHON) postats.py "$(VERSION)" $(POFILES)) >$@
|