i18n including tags #189

Turbo87 opened this Issue Feb 23, 2013 · 0 comments


None yet

1 participant

Turbo87 commented Feb 23, 2013

the support for i18n including HTML tags is currently rather thin as the tags are directly exported into the pot files. Genshi uses an alternative syntax for inline tags, that works very well.

For example:

<p i18n:msg="name">
  Please visit <a href="${site.url}">${site.name}</a> for help.

will be extracted to:

Please visit [1:%(name)s] for help.

it would be great if this or something like this could be supported by jinja2 too. I might even implement it myself if someone would help me to get started in the right direction...

@Turbo87 Turbo87 closed this Jun 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment