[
https://issues.apache.org/jira/browse/SLING-5138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Radu Cotescu closed SLING-5138.
-------------------------------
> 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
> Affects Versions: Scripting Sightly Engine 1.0.2
> Reporter: Michael Kreis
> Assignee: Radu Cotescu
> Fix For: Scripting Sightly Engine 1.0.16
>
>
> 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)