Dear Lars,

No way.

Something like "^[^#]*Submenu" might be acceptable though.
I can confirm that your second proposal with [[:space:]] works correctly.

A new patch is attached. Ok? Or shall I also test the version above?

Michael


Index: lyx-devel-1.3.Xcvs/po/Makefile.in.in
===================================================================
RCS file: /cvs/lyx/lyx-devel/po/Makefile.in.in,v
retrieving revision 1.27
diff -u -r1.27 Makefile.in.in
--- lyx-devel-1.3.Xcvs/po/Makefile.in.in        2003/01/12 21:48:10     1.27
+++ lyx-devel-1.3.Xcvs/po/Makefile.in.in        2003/01/26 22:12:56
@@ -274,14 +274,14 @@
 
 $(srcdir)/default_ui_l10n.pot: $(top_srcdir)/lib/ui/default.ui
        awk ' \
-           /Submenu/ { \
+           /^[[:space:]]*Submenu/ { \
                line=$$0; \
                 sub(/[^"]*"/, "", line); \
                 sub(/".*/, "", line); \
                printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
                        FILENAME, FNR, line); \
             } \
-            /Item/ { \
+            /^[[:space:]]*(Opt)?Item/ { \
                line=$$0; \
                 sub(/[^"]*"/, "", line); \
                 sub(/".*/, "", line); \

Reply via email to