| 312 | |
| 313 | Note that another tricky case is when you want to use `gettext` and one of the variables is Markup. Using `|safe` is also needed, but that's not enough, as currently `gettext()` doesn't support Markup, you need to use `tgettext()` which is available with the `tag_` shortcut: |
| 314 | {{{#!html+jinja |
| 315 | <em> |
| 316 | # set preferences_link |
| 317 | <a href="${href.prefs()}" class="trac-target-new">${ |
| 318 | _("Preferences")}</a> |
| 319 | # endset |
| 320 | ${tag_("Set your email in %(preferences_link)s", |
| 321 | preferences_link=preferences_link|safe)} |
| 322 | </em> |
| 323 | }}} |
| 324 | |