X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=po%2FRules-lyx;h=5c85657ce2b17125972307bf2094e518285cec28;hb=411f7b38e31b0549b156cc766c8eaca54f016fbc;hp=22fdb26491f5e01656c94e15ce402eaea485a098;hpb=f0a669014f952c8289da6279841cab10f0c3d6c7;p=lyx.git diff --git a/po/Rules-lyx b/po/Rules-lyx index 22fdb26491..5c85657ce2 100644 --- a/po/Rules-lyx +++ b/po/Rules-lyx @@ -13,45 +13,49 @@ ${srcdir}/POTFILES.in: $(POTFILE_IN_DEPS) rm -f $@-t \ && ( cd $(top_srcdir); \ grep -l "_(\".*\")" `find src \( \( -name '*.h' -a ! -name 'ui_*.h' \) -o \( -name '*.cpp' -a ! -name 'moc_*.cpp' \) \) -print` |\ - grep -v -e "src/support/Package.cpp$$" |\ sort | uniq ) > $@-t \ && mv $@-t $@ -l10n_pots: qt4_l10n.pot layouts_l10n.pot languages_l10n.pot encodings_l10n.pot ui_l10n.pot external_l10n.pot formats_l10n.pot - cat $^ | \ - msguniq -o $(DOMAIN).po && rm -f $^ +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) qt4_l10n.pot: $(top_srcdir)/src/frontends/qt4/ui/*.ui - LC_ALL=C ; export LC_ALL ; \ - python $(srcdir)/lyx_pot.py -b $(top_srcdir) -o $@ -t qt4 ${top_srcdir}/src/frontends/qt4/ui/*.ui + $(LYX_POT) -o $@ -t qt4 $^ -layouts_l10n.pot: $(top_srcdir)/lib/layouts/*.layout $(top_srcdir)/lib/layouts/*.inc \ - $(top_srcdir)/lib/layouts/*.module - LC_ALL=C ; export LC_ALL ; \ - 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 +layouts_l10n.pot: $(top_srcdir)/lib/layouts/*.layout \ + $(top_srcdir)/lib/layouts/*.inc \ + $(top_srcdir)/lib/layouts/*.module \ + $(top_srcdir)/lib/citeengines/*.citeengine + $(LYX_POT) -o $@ -t layouts $^ +# 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 - LC_ALL=C ; export LC_ALL ; \ - 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 + $(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 - python $(srcdir)/lyx_pot.py -b $(top_srcdir) -o $@ -t languages ${top_srcdir}/lib/languages + $(LYX_POT) -o $@ -t languages $^ + +latexfonts_l10n.pot: $(top_srcdir)/lib/latexfonts + $(LYX_POT) -o $@ -t latexfonts $^ encodings_l10n.pot: $(top_srcdir)/lib/encodings - python $(srcdir)/lyx_pot.py -b $(top_srcdir) -o $@ -t encodings ${top_srcdir}/lib/encodings + $(LYX_POT) -o $@ -t encodings $^ ui_l10n.pot: $(top_srcdir)/lib/ui/*.ui $(top_srcdir)/lib/ui/*.inc - LC_ALL=C ; export LC_ALL ; \ - python $(srcdir)/lyx_pot.py -b $(top_srcdir) -o $@ -t ui ${top_srcdir}/lib/ui/*.ui ${top_srcdir}/lib/ui/*.inc + $(LYX_POT) -o $@ -t ui $^ -external_l10n.pot: $(top_srcdir)/lib/external_templates - python $(srcdir)/lyx_pot.py -b $(top_srcdir) -o $@ -t external ${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 - python $(srcdir)/lyx_pot.py -b $(top_srcdir) -o $@ -t formats ${top_srcdir}/lib/configure.py + $(LYX_POT) -o $@ -t formats $^ # 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) >$@