zotonic/zotonic — pull request #251 by kaos (2011-11-02 22:57:00+00:00)
Title: mod_base/filters/format: new format filter (#193).

Replace any $N in Input with the N'th value from Args.

Example usage: {{ value|format:["first", "second", "third"] }}
For a value of "My $1 trough $3 is not $2 to best"
produces "My first trough third is not second to best"

$ may be escaped by \\ to avoid replacement.
N may be in the range [1..9]. If N is out of range of the provided
args, the $N is left as-is.

For single arg, {{ value|format:"first" }} is also allowed.

I've not yet managed to apply this filter to a trans text, though.
Any good reason why the trans tags use string_literal or the like instead of Value?