Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n including tags #189

Closed
Turbo87 opened this issue Feb 23, 2013 · 0 comments
Closed

i18n including tags #189

Turbo87 opened this issue Feb 23, 2013 · 0 comments
Labels

Comments

@Turbo87
Copy link

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.
</p>

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 as completed Jun 25, 2015
@davidism davidism added the i18n label Oct 19, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants