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

Konrad Windszus commented on SLING-7430:
----------------------------------------

Actually both values "die Bank" as well as "das Ufer" are valid for key {{the 
bank}} in case no basename is given. That is what I though I had written above 
;-)

> Invalid assumptions in SlingSpecificsSightlyIT#testI18nBasename
> ---------------------------------------------------------------
>
>                 Key: SLING-7430
>                 URL: https://issues.apache.org/jira/browse/SLING-7430
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>            Reporter: Konrad Windszus
>            Assignee: Radu Cotescu
>            Priority: Major
>
> The test at 
> https://github.com/apache/sling-org-apache-sling-scripting-sightly-testing/blob/905ffd59bebd8d9adaa5d172d169e6eac1469a03/src/test/java/org/apache/sling/scripting/sightly/it/SlingSpecificsSightlyIT.java#L342
>  incorrectly assumes that the key being returned when no basename is set is 
> always the key from the dictionary not having the property {{sling:basename}} 
> is set. This is wrong according to both documentation 
> https://sling.apache.org/documentation/bundles/internationalization-support-i18n.html#resourcebundle-with-base-names
>  and implementation in i18n.
> Although the implementation might change in the future (SLING-7429) right now 
> the IT needs to be fixed to also accept value "die Bank" being returned 
> (https://github.com/apache/sling-org-apache-sling-scripting-sightly-testing-content/blob/91e9397133eea906372aae2ea1f4a1e2e46f4c70/src/main/resources/SLING-INF/apps/sightly/locales/de_finance_basename.json#L13)
>  even when no explicit basename is set.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to