You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2018/03/29 11:23:00 UTC

[jira] [Updated] (SLING-7558) Support multiple date formattings in one string

     [ https://issues.apache.org/jira/browse/SLING-7558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konrad Windszus updated SLING-7558:
-----------------------------------
    Summary: Support multiple date formattings in one string  (was: Support multiple date formattings per string)

> Support multiple date formattings in one string
> -----------------------------------------------
>
>                 Key: SLING-7558
>                 URL: https://issues.apache.org/jira/browse/SLING-7558
>             Project: Sling
>          Issue Type: Improvement
>          Components: Scripting
>    Affects Versions: Scripting HTL Engine 1.0.52-1.3.1
>            Reporter: Konrad Windszus
>            Priority: Major
>
> Currently only string formatting supports a placeholder pattern and can be easily combined with {{i18n}}. The same would be great to be able to use in one i18n string multiple dates. This is e.g. useful when you want to format opening hours.
> There I would like to i18n the following string
> {code}
> "Open from {hh} to {hh}"
> {code}
> Unfortunately it is not possible to combine i18n with date formatting as the full string is always assumed to be the date format specified. A similar placeholder concept as for strings should be supported.



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