Parsing of format specification error

Bug #57217 reported by Maurizio Moriconi
This bug report is a duplicate of:  Bug #3446: % causes problem in translation strings. Edit Remove
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Invalid
Undecided
Unassigned

Bug Description

In a string like "% of normal size" the part "% o" is with a color background (because the parser think that is a format specification.
When you try to translate an error (format specifications in 'msgid' and 'msgstr' for argument 1 are not the same) is report but there is a space between "%" and the "o" char of the word "of".

I suppose that there is an error with the parser of format.

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

This is most likely a problem in the PO template (upstream package): a string is marked as being c-format, while it's not.

Please tell us exactly where do you see this problem (URL/product/template).

Changed in rosetta:
status: Unconfirmed → Needs Info
Revision history for this message
Maurizio Moriconi (bugman) wrote :
Revision history for this message
James Henstridge (jamesh) wrote :

That string is incorrectly marked as a c-format string. This is a problem that needs fixing in the abiword source code (it should have a comment like /* xgettext:no-c-format */ before the line the string occurs on).

The PO template lists po/tmp/ap_String_Id.h.h as the source for most of the strings, which is probably a generated file. I guess the script that generates it needs updating to add those comments.

Once abiword is fixed and new PO templates are imported, the problem should go away.

Changed in rosetta:
status: Needs Info → Rejected
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.