You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Radu Cotescu (JIRA)" <ji...@apache.org> on 2016/02/18 00:24:18 UTC

[jira] [Commented] (SLING-5138) When using i18n option in data-sly-text translation is called twice

    [ 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)