Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-7558

Support multiple date formattings in one string

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Scripting HTL Engine 1.0.52-1.3.1
    • None
    • Scripting
    • None

    Description

      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

      "Open from {hh} to {hh}"
      

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: