]> git.lyx.org Git - lyx.git/commitdiff
(Michael Schmitt): fix the extraction of language names from lib/languages.
authorAngus Leeming <leeming@lyx.org>
Mon, 21 Jul 2003 07:48:59 +0000 (07:48 +0000)
committerAngus Leeming <leeming@lyx.org>
Mon, 21 Jul 2003 07:48:59 +0000 (07:48 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7324 a592a061-630c-0410-9148-cb99ea01b6c8

po/ChangeLog
po/Makefile.in.in

index a8bf857664775f7b96f761bac8d52dfc0094f331..658e2c633d593f1402b4389f110fa2383d1093b0 100644 (file)
@@ -1,3 +1,8 @@
+2003-07-21  Michael Schmitt <Michael.Schmitt@teststep.org>
+
+       * Makefile.in.in: fix extraction of language names from lib/languages
+       when the name includes a space.
+
 2003-07-11  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
 
        * pl.po: copy the version from 1.3.x branch, since it contains
index 2c6a1b6b98aa2ae50514f422dacd13a286ccc233..693dc1893d2281d65b6b7e5b56ef0d4db615f6ca 100644 (file)
@@ -266,7 +266,8 @@ $(srcdir)/languages_l10n.pot: $(top_srcdir)/lib/languages
                 next; \
             } \
            { \
-                lang=$$3; \
+                match($$0,"\"[^\"]*\""); \
+                lang=substr($$0,RSTART,RLENGTH); \
                gsub(/\"/, "", lang); \
                printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
                        FILENAME, FNR, lang); \