From dd9cd9f7516ef1d2c6ed4f5cf1f4ab9f98d0fe69 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Mon, 21 Jul 2003 07:48:59 +0000 Subject: [PATCH] (Michael Schmitt): fix the extraction of language names from lib/languages. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7324 a592a061-630c-0410-9148-cb99ea01b6c8 --- po/ChangeLog | 5 +++++ po/Makefile.in.in | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/po/ChangeLog b/po/ChangeLog index a8bf857664..658e2c633d 100644 --- a/po/ChangeLog +++ b/po/ChangeLog @@ -1,3 +1,8 @@ +2003-07-21 Michael Schmitt + + * Makefile.in.in: fix extraction of language names from lib/languages + when the name includes a space. + 2003-07-11 Jean-Marc Lasgouttes * pl.po: copy the version from 1.3.x branch, since it contains diff --git a/po/Makefile.in.in b/po/Makefile.in.in index 2c6a1b6b98..693dc1893d 100644 --- a/po/Makefile.in.in +++ b/po/Makefile.in.in @@ -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); \ -- 2.39.2