After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 307029 - gtranslator parses msgid and msgid_plural string incorrectly in some cases
gtranslator parses msgid and msgid_plural string incorrectly in some cases
Status: RESOLVED FIXED
Product: gtranslator
Classification: Other
Component: Parse engine
1.1.5
Other All
: Normal normal
: 1.1.8
Assigned To: Juan José Sánchez Penas
Fatih Demir
Depends on:
Blocks:
 
 
Reported: 2005-06-09 13:51 UTC by Ye Zhuqiu
Modified: 2009-08-19 13:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ye Zhuqiu 2005-06-09 13:51:57 UTC
Please describe the problem:

If the msgid_plural string in po file contains empty string, the gtranslator
merge msgid and it's corresponding msgid_plural as one string.

Steps to reproduce:
1. creat a simple po file:

msgid ""
msgstr ""
"Project-Id-Version: update-manager HEAD\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2005-05-12 12:08+0000\n"
"PO-Revision-Date: 2005-06-09 21:04+0800\n"
"Last-Translator: Ye Zhuqiu <yezhuqiu@gmail.com>\n"
"Language-Team: zh_CN <i18n-translation@lists.linux.net.cn>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;"

msgid ""
"%s package"
msgid_plural ""
"%s packages"
msgstr[0] ""
msgstr[1] ""

2. open the po file in gtranslator

Actual results:
in the original text window, msgid and msgid_plural merge into one string, such as:

%s package
%s packages

Expected results:

gtranslator should recognise msgid and msgid_plural properly.

Does this happen every time?
yes

Other information:
if msgid_plural contain no empty string, such as:

msgid ""
"%s package"
msgid_plural "%s packages"
msgstr[0] ""
msgstr[1] ""

gtranslator will work properly.
Comment 1 Ignacio Casal Quinteiro (nacho) 2007-07-13 07:45:59 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 2 Pablo Sanxiao 2007-08-29 09:39:48 UTC
I reopened this bug because I know Juan José Sánchez is now working in a patch to stable version.
Comment 3 Pavel Šefránek 2008-02-16 20:30:33 UTC
*ping*

still valid.
Comment 4 André Klapper 2008-08-18 11:35:43 UTC
One translator of our team also ran into this issue.
Any news here?
Comment 5 Ross Golder 2008-08-18 12:59:41 UTC
Reassigning to Juan as I'm not expecting to be able to work on this particular issue in the short to infinite future.

Juan, please close this ticket if you are not working on a patch. Thanks.
Comment 6 Ignacio Casal Quinteiro (nacho) 2009-08-19 13:22:19 UTC
Closing this as fixed as the old gtranslator is not developed anymore.