intltool fails to extract comments from glade-type files when not last attributes

Bug #705420 reported by Claude Paroz
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
intltool
Triaged
Medium
Данило Шеган

Bug Description

If you have some element with a comments not at the last position, intltool fails to extract the comment.

Work:
<property name="label" translatable="yes" context="infinitive" comments="my comment">

Fail:
<property name="label" translatable="yes" comments="my comment" context="infinitive">

For example, just swap the translatable and comments properties in tests/cases/extract8.glade and the test will fail.

Changed in intltool:
status: New → Triaged
assignee: nobody → Данило Шеган (danilo)
importance: Undecided → Medium
milestone: none → 0.42.0
Revision history for this message
Данило Шеган (danilo) wrote :

I believe we should just fall back on the native xgettext glade support, which seems to work correctly. The one difference I see is that intltool currently keeps the newlines in XML attributes, whereas xgettext -L glade doesn't. I don't think this is a big deal.

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

Except that gtkbuilder files context is not supported :(

Revision history for this message
Данило Шеган (danilo) wrote :
Changed in intltool:
milestone: 0.42.0 → none
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.