[ 
https://issues.apache.org/jira/browse/SLING-5138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15151403#comment-15151403
 ] 

Radu Cotescu commented on SLING-5138:
-------------------------------------

Can you please tell me what version of Sightly you're using and on what 
environment?

> When using i18n option in data-sly-text translation is called twice
> -------------------------------------------------------------------
>
>                 Key: SLING-5138
>                 URL: https://issues.apache.org/jira/browse/SLING-5138
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>            Reporter: Michael Kreis
>
> When using the i18n option in the data-sly-text attribute the 
> I18nRuntimeExtension is called twice. 
> To reproduce use following snippet in a sightly template: 
> {code}<div data-sly-text="${'test.key' @ i18n}">test</div>{code}
> Generated java source shows: 
> {code}
> Object var_textcontent4 = renderContext.call("xss", 
> renderContext.call("i18nTranslation", renderContext.call("i18nTranslation", 
> "test.key", obj().with("i18n", null)), obj().with("context", 
> "text").with("i18n", null)), "text");
> {code}
>     



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to