]> git.lyx.org Git - lyx.git/blobdiff - po/Makefile.in.in
Fixed down movement inside inset text (hopefully).
[lyx.git] / po / Makefile.in.in
index d4115264beceb77ef0cc0315b98a94875971d2a6..025cf5a1830c8d94c3cc0f4c1d89a3c3ae7e251e 100644 (file)
@@ -89,7 +89,7 @@ all-no:
 $(srcdir)/$(PACKAGE).pot: $(POTFILES) $(srcdir)/POTFILES.in l10n_pots
        $(XGETTEXT) --join-existing --default-domain=$(PACKAGE) --directory=$(top_srcdir) \
          --escape --add-comments --keyword=_ --keyword=N_ \
-         --files-from=$(srcdir)/POTFILES.in \
+         --keyword=qt_ --files-from=$(srcdir)/POTFILES.in \
        && test ! -f $(PACKAGE).po \
           || ( rm -f $(srcdir)/$(PACKAGE).pot \
                && mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot )
@@ -201,7 +201,6 @@ ${srcdir}/POTFILES.in: $(POTFILE_IN_DEPS)
             grep -l "_(\".*\")" `find src -name \*.[hHC] -print` |\
             sed -e '/xforms.forms/d' | \
             sort -f -n | uniq ) > $@-t \
-       && echo "src/ext_l10n.h" >> $@-t \
        && mv $@-t $@
 
 
@@ -212,9 +211,12 @@ l10n_pots: xforms_l10n.pot qt_l10n.pot layouts_l10n.pot languages_l10n.pot defau
 xforms_l10n.pot: $(top_srcdir)/src/frontends/xforms/forms/*.fd
        awk ' \
             BEGIN { \
+                    print "#, fuzzy"; \
                     print "msgid \"\""; \
                     print "msgstr \"\""; \
                     print "\"Content-Type: text/plain; charset=ISO-8859-1\\n\""; \
+                    print "\"Content-Transfer-Encoding: 8bit\\n\""; \
+                    print "\n"; \
             } \
             /label: / { \
                     if (NF > 1) { \
@@ -228,16 +230,15 @@ xforms_l10n.pot: $(top_srcdir)/src/frontends/xforms/forms/*.fd
 qt_l10n.pot: $(top_srcdir)/src/frontends/qt2/ui/*.ui
        awk ' \
             /<string>/ { \
-                    if (NF > 1) { \
-                            line=$$0; \
-                            sub(/.*<string>/, "", line); \
-                            sub(/<\/string>.*/, "", line); \
-                            gsub(/&amp;/, "\\&", line); \
-                            gsub(/&lt;/, "<", line); \
-                            gsub(/&gt;/, ">", line); \
-                            printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n",\
-                            FILENAME, FNR, line); \
-                    } \
+                    line=$$0; \
+                    sub(/.*<string>/, "", line); \
+                    sub(/<\/string>.*/, "", line); \
+                    gsub(/&amp;/, "\\&", line); \
+                    gsub(/&lt;/, "<", line); \
+                    gsub(/&gt;/, ">", line); \
+                    if (length(line) > 0) \
+                             printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n",\
+                    FILENAME, FNR, line); \
             }' \
        `find $(top_srcdir)/src/frontends/qt2/ui -name \*.ui` > $@
 
@@ -272,7 +273,7 @@ languages_l10n.pot: $(top_srcdir)/lib/languages
 
 default_ui_l10n.pot: $(top_srcdir)/lib/ui/default.ui
        awk ' \
-           /SubMenu/ { \
+           /Submenu/ { \
                line=$$0; \
                 sub(/[^"]*"/, "", line); \
                 sub(/".*/, "", line); \