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
|
|
|
|
|
2011-05-04 18:51:15 +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); \
|
2011-05-04 18:51:15 +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 $@
|
|
|
|
|
2019-03-19 08:08:44 +00:00
|
|
|
l10n_pots: qt4_l10n.pot layouts_l10n.pot languages_l10n.pot latexfonts_l10n.pot encodings_l10n.pot ui_l10n.pot external_l10n.pot formats_l10n.pot examples_templates_l10n.pot
|
2012-09-10 09:55:52 +00:00
|
|
|
cat $^ | msguniq -o $(DOMAIN).po
|
2013-09-09 09:41:28 +00:00
|
|
|
rm $^
|
2008-06-06 15:25:55 +00:00
|
|
|
|
2012-09-10 09:55:52 +00:00
|
|
|
LYX_POT = LC_ALL=C ; export LC_ALL ; \
|
2013-05-14 19:59:07 +00:00
|
|
|
$(PYTHON) $(srcdir)/lyx_pot.py -b $(top_srcdir)
|
2008-06-06 15:25:55 +00:00
|
|
|
|
|
|
|
qt4_l10n.pot: $(top_srcdir)/src/frontends/qt4/ui/*.ui
|
2012-09-10 09:55:52 +00:00
|
|
|
$(LYX_POT) -o $@ -t qt4 $^
|
2008-06-06 15:25:55 +00:00
|
|
|
|
2012-09-10 09:55:52 +00:00
|
|
|
layouts_l10n.pot: $(top_srcdir)/lib/layouts/*.layout \
|
|
|
|
$(top_srcdir)/lib/layouts/*.inc \
|
2017-01-09 08:50:34 +00:00
|
|
|
$(top_srcdir)/lib/layouts/*.module \
|
|
|
|
$(top_srcdir)/lib/citeengines/*.citeengine
|
2012-09-10 09:55:52 +00:00
|
|
|
$(LYX_POT) -o $@ -t layouts $^
|
2011-03-23 19:17:15 +00:00
|
|
|
|
2016-03-25 09:32:53 +00:00
|
|
|
# Read translatable strings from layouts and translations from the po files and
|
|
|
|
# create the layouttranslations file containing all LaTeX relevant translations
|
2011-03-23 19:17:15 +00:00
|
|
|
$(top_srcdir)/lib/layouttranslations: $(POFILES) $(top_srcdir)/lib/layouts/*.layout \
|
2017-07-19 10:38:13 +00:00
|
|
|
$(top_srcdir)/lib/layouts/*.inc $(top_srcdir)/lib/layouts/*.module $(top_srcdir)/lib/citeengines/*.citeengine
|
|
|
|
$(LYX_POT) -o $@ -t layouttranslations ${top_srcdir}/lib/layouts/*.layout ${top_srcdir}/lib/layouts/*.inc ${top_srcdir}/lib/layouts/*.module $(top_srcdir)/lib/citeengines/*.citeengine
|
2008-06-06 15:25:55 +00:00
|
|
|
|
|
|
|
languages_l10n.pot: $(top_srcdir)/lib/languages
|
2012-09-10 09:55:52 +00:00
|
|
|
$(LYX_POT) -o $@ -t languages $^
|
2008-06-06 15:25:55 +00:00
|
|
|
|
2012-08-16 11:23:39 +00:00
|
|
|
latexfonts_l10n.pot: $(top_srcdir)/lib/latexfonts
|
2012-09-10 09:55:52 +00:00
|
|
|
$(LYX_POT) -o $@ -t latexfonts $^
|
2012-08-16 11:23:39 +00:00
|
|
|
|
2008-07-11 08:56:17 +00:00
|
|
|
encodings_l10n.pot: $(top_srcdir)/lib/encodings
|
2012-09-10 09:55:52 +00:00
|
|
|
$(LYX_POT) -o $@ -t 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
|
2012-09-10 09:55:52 +00:00
|
|
|
$(LYX_POT) -o $@ -t ui $^
|
2008-06-06 15:25:55 +00:00
|
|
|
|
2017-03-26 13:32:01 +00:00
|
|
|
external_l10n.pot: $(top_srcdir)/lib/xtemplates/*.xtemplate
|
2012-09-10 09:55:52 +00:00
|
|
|
$(LYX_POT) -o $@ -t external $^
|
2008-06-06 15:25:55 +00:00
|
|
|
|
|
|
|
formats_l10n.pot: $(top_srcdir)/lib/configure.py
|
2012-09-10 09:55:52 +00:00
|
|
|
$(LYX_POT) -o $@ -t formats $^
|
2008-06-06 15:25:55 +00:00
|
|
|
|
2019-03-19 08:08:44 +00:00
|
|
|
examples_templates_l10n.pot: $(top_srcdir)/lib/examples/* \
|
|
|
|
$(top_srcdir)/lib/templates/*
|
2019-03-22 10:10:49 +00:00
|
|
|
$(LYX_POT) -o $@ -t examples_templates $^
|
2019-03-19 08:08:44 +00:00
|
|
|
|
2008-06-06 15:25:55 +00:00
|
|
|
# LyX specific code to generate l10n statistics for the web site
|
|
|
|
i18n.inc: $(POFILES) postats.py
|
2016-07-17 19:59:56 +00:00
|
|
|
$(PYTHON) $(srcdir)/postats.py "$(VERSION)" $(POFILES) >$@
|