X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=po%2FRules-lyx;h=5c85657ce2b17125972307bf2094e518285cec28;hb=e08512e7fdfcb34d45c22c132aa7f45fc9303474;hp=f061cd904befcde9511caf0345d26443d547e758;hpb=c372f7ad2351a1206b1d6c1ca5cfc7c25a294c23;p=lyx.git diff --git a/po/Rules-lyx b/po/Rules-lyx index f061cd904b..5c85657ce2 100644 --- a/po/Rules-lyx +++ b/po/Rules-lyx @@ -18,6 +18,7 @@ ${srcdir}/POTFILES.in: $(POTFILE_IN_DEPS) 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 cat $^ | msguniq -o $(DOMAIN).po + rm $^ LYX_POT = LC_ALL=C ; export LC_ALL ; \ $(PYTHON) $(srcdir)/lyx_pot.py -b $(top_srcdir) @@ -27,13 +28,15 @@ qt4_l10n.pot: $(top_srcdir)/src/frontends/qt4/ui/*.ui layouts_l10n.pot: $(top_srcdir)/lib/layouts/*.layout \ $(top_srcdir)/lib/layouts/*.inc \ - $(top_srcdir)/lib/layouts/*.module + $(top_srcdir)/lib/layouts/*.module \ + $(top_srcdir)/lib/citeengines/*.citeengine $(LYX_POT) -o $@ -t layouts $^ -#FIXME: I am not sure what this does. Why read the po files in this case? +# Read translatable strings from layouts and translations from the po files and +# create the layouttranslations file containing all LaTeX relevant translations $(top_srcdir)/lib/layouttranslations: $(POFILES) $(top_srcdir)/lib/layouts/*.layout \ - $(top_srcdir)/lib/layouts/*.inc $(top_srcdir)/lib/layouts/*.module - $(LYX_POT) -o $@ -t layouttranslations ${top_srcdir}/lib/layouts/*.layout ${top_srcdir}/lib/layouts/*.inc ${top_srcdir}/lib/layouts/*.module + $(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 languages_l10n.pot: $(top_srcdir)/lib/languages $(LYX_POT) -o $@ -t languages $^ @@ -47,7 +50,7 @@ encodings_l10n.pot: $(top_srcdir)/lib/encodings ui_l10n.pot: $(top_srcdir)/lib/ui/*.ui $(top_srcdir)/lib/ui/*.inc $(LYX_POT) -o $@ -t ui $^ -external_l10n.pot: $(top_srcdir)/lib/external_templates +external_l10n.pot: $(top_srcdir)/lib/xtemplates/*.xtemplate $(LYX_POT) -o $@ -t external $^ formats_l10n.pot: $(top_srcdir)/lib/configure.py @@ -55,4 +58,4 @@ formats_l10n.pot: $(top_srcdir)/lib/configure.py # LyX specific code to generate l10n statistics for the web site i18n.inc: $(POFILES) postats.py - (cd $(srcdir) ; $(PYTHON) postats.py "$(VERSION)" $(POFILES)) >$@ + $(PYTHON) $(srcdir)/postats.py "$(VERSION)" $(POFILES) >$@