﻿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
3970	Adding {{{as}}} keyword to {{{trans}}}	axiak@…	hugo	"Currently the {{{ {% trans ... %} }}} tag allows for translating text to be rendered to the template. However, there are cases where allowing this to be written to the context for further processing is useful. An easy example was when a friend in IRC wanted to have multiple cases for the same phrase on the same page. He did not want to clutter his {{{ .po }}} files with alternate case styles. He just wanted to use the provided filters on the translated text (for one case). The {{{ as }}} keyword would be used like so:
{{{

{% trans ""this is a test"" as translated_text %}
{{ translated_text|upper }}

{{ translated_text|lower }}

}}}

Note that the {{{ noop }}} keyword should still work:
{{{

{% trans ""this is a test"" as translated_text noop %}
{{ translated_text|upper }}

{{ translated_text|lower }}

}}}
I have written patches. Please let me know what you think!"		closed	Internationalization	dev		invalid	i18n trans context tags		Unreviewed	1	0	1	0	0	0
