﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
299,"i18n:msg wrongly extracted twice, as a whole and by pieces",cboos,palgarvio,"Feel free to adjust the summary...

What happens is that a given element with i18n:msg attribute gets extracted ''twice'' in the resulting catalog template.

See [trac:changeset:8106#file2] for the .html source and 
[trac:changeset:8106#file1] for the .pot file.

This is seen with the advanced-i18n branch 0.6dev-r1028 and older revisions up to the beginning of the branch.

It should be noted that Genshi trunk successfully extracts ''only'' the whole content. Here's a diff based on trac:source:trunk/trac/locale/messages.pot@8106 after running a `python setup.py extract_messages` using Genshi trunk (r1052):
{{{
#!diff
Index: trac/locale/messages.pot
===================================================================
--- trac/locale/messages.pot    (revision 8106)
+++ trac/locale/messages.pot    (working copy)
@@ -2723,23 +2723,11 @@
 msgstr """"

 #: trac/ticket/templates/ticket.html:128
-msgid ""Opened""
-msgstr """"
-
-#: trac/ticket/templates/ticket.html:128 trac/ticket/templates/ticket.html:129
-msgid ""ago""
-msgstr """"
-
-#: trac/ticket/templates/ticket.html:128
 #, python-format
 msgid ""Opened %(created)s ago""
 msgstr """"

 #: trac/ticket/templates/ticket.html:129
-msgid ""Last modified""
-msgstr """"
-
-#: trac/ticket/templates/ticket.html:129
 #, python-format
 msgid ""Last modified %(modified)s ago""
 msgstr """"
}}}",defect,closed,critical,0.6,Internationalization,devel,fixed,i18n:msg,
