wichert / lingua

Translation toolkit for Python
Other
46 stars 33 forks source link

Skip expression-only messages #2

Closed wichert closed 13 years ago

wichert commented 13 years ago

It is possible to force translation of pure strings by using i18n:translate="". This can be combined with expressions and you get something like this:

<span i18n:translate="">${title}</span>

This is currently extracted by lingua and produces this entry in the POT file:

msgid "${title}"
msgstr ""

which is not very useful. Lingua should skip all messages which only consist of expressions.