id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 16717 Add optional [as VARNAME] to trans template tag Jannis Leidel nobody "Part of this year's SoC about form rendering (https://github.com/gregmuellegger/django/tree/soc2011/form-rendering) had to deal with dynamically changing the label of a form field in the template. For that purpose it's required to easily set a context variable with a translated string. E.g.: {{{ {% trans ""Your full name"" as full_name %} ... {% formfield form.full_name with label=full_name %} ... }}}" New feature closed Internationalization dev Normal fixed Accepted 0 0 0 0 0 0