X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=po%2FMakefile.in.in;h=e98ff482bd074236f43629beb9a5cd74d2e0c752;hb=dab43e77955e5b21fa556f53143d42e09e439f40;hp=eac4bdf7607d0b0ad06a525726da29eeae24b44f;hpb=4c9dc6c513d03e0aff1f3e1655d57fa7e46b1274;p=lyx.git diff --git a/po/Makefile.in.in b/po/Makefile.in.in index eac4bdf760..e98ff482bd 100644 --- a/po/Makefile.in.in +++ b/po/Makefile.in.in @@ -63,7 +63,7 @@ CATALOGS = @CATALOGS@ $(COMPILE) $< .po.pox: - $(MAKE) $(PACKAGE).pot + $(MAKE) $(srcdir)/$(PACKAGE).pot $(MSGMERGE) $< $(srcdir)/$(PACKAGE).pot -o $*.pox .po.mo: @@ -198,9 +198,9 @@ Makefile: Makefile.in.in $(top_builddir)/config.status POTFILES.in ${srcdir}/POTFILES.in: $(POTFILE_IN_DEPS) rm -f $@-t \ && ( cd $(top_srcdir); \ - grep -l "_(\".*\")" `find src -name \*.[hHC]` | \ + grep -l "_(\".*\")" `find src -name \*.[hHC] -print` |\ sed -e '/xforms.forms/d' | \ - sort -f -d | uniq ) > $@-t \ + sort -f -n | uniq ) > $@-t \ && echo "src/ext_l10n.h" >> $@-t \ && mv $@-t $@ @@ -213,6 +213,8 @@ $(top_srcdir)/src/ext_l10n.h: $(top_srcdir)/lib/layouts/*.layout $(top_srcdir)/l sed -n -e 's/^[sS]tyle[ ]*\([^ ]*\)$$/_("\1");/p' | \ sort | uniq >> $@ sed < $(top_srcdir)/lib/languages -e '/^#/d' -e 's/[^"]*\("[A-Za-z0-9][^"]*"\).*/_(\1);/' >> $@ + cat $(top_srcdir)/src/frontends/qt2/ui/*.ui | grep '..*' | \ + sed 's,&,\&,;s,^.*,_(",;s,,"),;' | uniq >> $@ # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded.