wichert / lingua

Translation toolkit for Python
Other
46 stars 32 forks source link

i18n:attributes and html 5 #48

Closed adroullier closed 9 years ago

adroullier commented 9 years ago

Extracting texts from attributes in chameleon templates silently fails if the tag is not closed with a '/'. I just tried this with the 3.1 release.

title attribute extracted:

<img src="element.png" title="Add a new page element" align="top" i18n:attributes="title"/>

not extracted:

<img src="element.png" title="Add a new page element" align="top" i18n:attributes="title">

Though I'm not sure if this is supported or not?

wichert commented 9 years ago

I've pushed a change which should fix this. Can you check if current git master works for you?

adroullier commented 9 years ago

Yes, confirmed, it works now. Thanks for the fast fix! Arndt.

wichert commented 9 years ago

Thanks for the confirmation. I've just released lingua 3.2 which includes this change.