On Wed, 23 Jan 2008, Łukasz Serwatka wrote:
> >> I think I'd prefer (for now), the following syntax:
> >>
> >> {_ "Hello #%nr (%nr2)" context "test" vars nr = $nr + 8, nr2 = 98}
> >
> > My take on it:
> >
> > {tr "Hello #%nr (%nr2)" context "test" comment "Helping text" vars nr
> > = $nr + 8, nr2 = 98}
> >
> Beside of translation operator name I have question about translation
> string manipulation.
>
> In current eZ Publish template syntax it is possible to:
> {'My string.'|i18n( 'design/ezwebin/test' )|upcase()}
>
> where output is translated MY STRING.
>
> How does it look with new ezcTemplate component and new syntax?
<span style="text-transform: uppercase;">{tr "My string."
context="design/ezwebin/test"}</span>
It is not possible to use the output of the {tr} block as it's not a
function. It can not be a function as then it would not be possible to
cache the translated string.
regards,
Derick--
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components