po export error duplicate message definition

Bug #333281 reported by Adi Roiban
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Jeroen T. Vermeulen

Bug Description

I have exported the evolution po file

http://launchpadlibrarian.net/22978751/po_evolution-2.26-ro.po

Checking the file I got.

$ msgfmt -v -o /dev/null -c po_evolution-2.26-ro-error.po
po_evolution-2.26-ro-error.po:24173: duplicate message definition...
po_evolution-2.26-ro-error.po:7975: ...this is the location of the first definition
msgfmt: found 1 fatal error

This should be an important bug as due to this error you can not create the .mo file for evolution.

I don't know if the language packs are affected.

Revision history for this message
Данило Шеган (danilo) wrote :

The problem is with two messages like:

#: ../calendar/gui/e-itip-control.c:869
#, c-format
msgid "singular"
msgid_plural "plural"

#: ../calendar/gui/e-itip-control.c:869
#, c-format
msgid "singular"
msgid_plural "different plural"

The latter one (with a different plural) is actually marked as obsolete using #~ comments, but that still bugs GNU msgfmt.

We'd probably need to fix PO exporter to simply mark these messages as either fuzzy or remove them completely. We'd also need to investigate if this could happen with two non-obsolete messages as well.

Revision history for this message
Данило Шеган (danilo) wrote :

A workaround is to remove obsolete message from the PO file, but this will cause problems for Ubuntu language pack building.

Changed in rosetta:
importance: Undecided → High
status: New → Triaged
Revision history for this message
Данило Шеган (danilo) wrote :

We'll need to fix this in the next cycle.

Changed in rosetta:
milestone: none → 2.2.3
Changed in rosetta:
assignee: nobody → jtv
Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

Marking the clashing message as fuzzy doesn't seem to work, even when it's also obsolete. So we'll have to filter them out.

Changed in rosetta:
status: Triaged → In Progress
Changed in rosetta:
milestone: 2.2.3 → 2.2.4
Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

Fixed in RF 8152

Changed in rosetta:
status: In Progress → Fix Committed
Changed in rosetta:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.