From b5826b2641fefb4a2c55ed96c52ef789d55943bc Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 29 Dec 2003 14:11:57 +0000 Subject: [PATCH] fix extraction of language names git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@8283 a592a061-630c-0410-9148-cb99ea01b6c8 --- po/ChangeLog | 6 ++++++ po/Makefile.in.in | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/po/ChangeLog b/po/ChangeLog index 20e04e79c1..f688bd6519 100644 --- a/po/ChangeLog +++ b/po/ChangeLog @@ -1,3 +1,9 @@ +2003-12-22 Michael Schmitt + + * Makefile.in.in: fix extraction of language names from + lib/languages when the name includes a space (patch backported + from main branch) + 2003-12-23 Jean-Marc Lasgouttes * wa.po: remove bad e-mail address diff --git a/po/Makefile.in.in b/po/Makefile.in.in index eea4fb75da..0c1a505443 100644 --- a/po/Makefile.in.in +++ b/po/Makefile.in.in @@ -247,6 +247,7 @@ $(srcdir)/qt_l10n.pot: $(top_srcdir)/src/frontends/qt2/ui/*.ui gsub(/&/, "\\&", line); \ gsub(/</, "<", line); \ gsub(/>/, ">", line); \ + gsub(/\"/, "\\\"", line); \ if (length(line) > 0) \ printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n",\ FILENAME, FNR, line); \ @@ -278,7 +279,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); \