From cc588156d711071eeae5eec4e9d916c3a50cddb5 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 8 May 2010 20:31:57 +0200 Subject: [PATCH] po-mode: Fix po-get-msgid function in plural entries. --- gettext-tools/misc/ChangeLog | 9 +++++++++ gettext-tools/misc/po-mode.el | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gettext-tools/misc/ChangeLog b/gettext-tools/misc/ChangeLog index f066aacab..2b200db23 100644 --- a/gettext-tools/misc/ChangeLog +++ b/gettext-tools/misc/ChangeLog @@ -1,3 +1,12 @@ +2010-05-08 Noritada Kobayashi + Bruno Haible + + po-mode: Fix po-get-msgid function in plural entries. + * po-mode.el (po-get-msgid): Use po-start-of-msgid_plural as end + pointer, if it is set. + Reported in + . + 2010-05-08 Noritada Kobayashi Bruno Haible diff --git a/gettext-tools/misc/po-mode.el b/gettext-tools/misc/po-mode.el index b76bdf8d8..246ace590 100644 --- a/gettext-tools/misc/po-mode.el +++ b/gettext-tools/misc/po-mode.el @@ -1901,7 +1901,8 @@ If FORM is itself a string, then this string is used for insertion." "Extract and return the unquoted msgid string." (let ((string (po-extract-unquoted (current-buffer) po-start-of-msgid - po-start-of-msgstr-block))) + (or po-start-of-msgid_plural + po-start-of-msgstr-block)))) string)) (defun po-get-msgstr-flavor () -- 2.47.3