#594197 poedit does not handle po file with simgular/plural combination strings

Package:
poedit
Source:
poedit
Description:
gettext catalog editor
Submitter:
Osamu Aoki
Date:
2013-12-12 19:21:04 UTC
Severity:
normal
#594197#5
Date:
2010-08-24 14:13:42 UTC
From:
To:
po file such as one containing:

#: cmdline/apt-get.cc:1653
#, fuzzy
msgid ""
"The following package is automatically installed and is no longer required:"
msgid_plural ""
"The following packages were automatically installed and are no longer "
"required:"
msgstr[0] ""
"以下のパッケージが自動でインストールされましたが、もう必要とされていません:"
msgstr[1] ""
"以下のパッケージが自動でインストールされましたが、もう必要とされていません:"

poedit fails to parse and display.  This happens when source has set of strings.

#594197#10
Date:
2013-11-05 11:18:57 UTC
From:
To:
Hi,

Osamu Aoki wrote (24 Aug 2010 14:13:42 GMT) :

Can you reproduce this issue with the latest version of poedit one may
find in Debian?

Cheers,
--
  intrigeri
  | GnuPG key @ https://gaffer.ptitcanardnoir.org/intrigeri/intrigeri.asc
  | OTR fingerprint @ https://gaffer.ptitcanardnoir.org/intrigeri/otr.asc

#594197#15
Date:
2013-11-05 11:18:57 UTC
From:
To:
Hi,

Osamu Aoki wrote (24 Aug 2010 14:13:42 GMT) :

Can you reproduce this issue with the latest version of poedit one may
find in Debian?

Cheers,
--
  intrigeri
  | GnuPG key @ https://gaffer.ptitcanardnoir.org/intrigeri/intrigeri.asc
  | OTR fingerprint @ https://gaffer.ptitcanardnoir.org/intrigeri/otr.asc

#594197#20
Date:
2013-11-05 15:47:53 UTC
From:
To:
control: found 594197 1.5.4-1

ii  poedit                                1.5.4-1                            amd64        gettext catalog editor

Hi,

Yes.  It display 2 English source but only one Japanese translation.
short example.  (Japanese text replaced with English for ease of
testing.)

You see only msgstr[0] is shown in Form0.  No Form1 as I expected.

I also get annoying syntax error message for "Plural-Forms: Plural-Forms:
nplurals=1; plural=0;\n".

Please test attached example to reproduce my experience.

Osamu

#594197#27
Date:
2013-11-05 17:23:19 UTC
From:
To:
Osamu Aoki wrote (05 Nov 2013 15:47:53 GMT) :

Thanks for the minimal testcase, this will make it easy for anyone
picks up poedit maintenance to take this upstream :)

Cheers,

#594197#32
Date:
2013-11-06 23:42:54 UTC
From:
To:
Osamu, your test file has an extra "Plural-Forms" on the header, i guess
its what poedit is complaining. If you clean that with a text-editor you'll
get a valid file and no complains from poedit.

I've attached the "cleaned" file, so that you can confirm the behaviour...

Pedro "m42" Ribeiro

#594197#37
Date:
2013-11-07 11:13:03 UTC
From:
To:
Hi,

Good.

I confirm I only get translation input field for msgstr[0] displayed but
not for msgstr[1].

Screenshot attached.

Osamu