X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=po%2FRules-lyx;h=42998f2ca510f09ece00a9f99a502274c3ee456f;hb=cb6c40a07b275f62cb641f02f377c54a821837fb;hp=9ea79193a1997e79beae5aa0e54090d6ce1c6d8d;hpb=a57a2d9acfc2a36084d2f322f5089203ae89fc9e;p=lyx.git diff --git a/po/Rules-lyx b/po/Rules-lyx index 9ea79193a1..42998f2ca5 100644 --- a/po/Rules-lyx +++ b/po/Rules-lyx @@ -18,9 +18,10 @@ ${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) + $(PYTHON) $(srcdir)/lyx_pot.py -b $(top_srcdir) qt4_l10n.pot: $(top_srcdir)/src/frontends/qt4/ui/*.ui $(LYX_POT) -o $@ -t qt4 $^ @@ -30,10 +31,11 @@ layouts_l10n.pot: $(top_srcdir)/lib/layouts/*.layout \ $(top_srcdir)/lib/layouts/*.module $(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 + $(LYX_POT) -o $@ -t layouttranslations ${top_srcdir}/lib/layouts/*.layout ${top_srcdir}/lib/layouts/*.inc ${top_srcdir}/lib/layouts/*.module languages_l10n.pot: $(top_srcdir)/lib/languages $(LYX_POT) -o $@ -t languages $^ @@ -55,4 +57,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) >$@