In such cases, the mode parameter does not serve any purposes.
I would like to revise translate() so it only takes format_string parameter, and we provide pre-defined format strings for existing translation modes (substitution, combination-text, combination-html). It will look like this:
It is possible to specify a translation mode when calling
translate()
.It is also possible to provide a custom translation mode by supplying
format_string
parameter.In such cases, the
mode
parameter does not serve any purposes.I would like to revise
translate()
so it only takesformat_string
parameter, and we provide pre-defined format strings for existing translation modes (substitution
,combination-text
,combination-html
). It will look like this: