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

The default locale for date and number formatting should not rely on Locale.getDefault()

    XMLWordPrintableJSON

Details

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

    Description

      Currently for the default and number formatting a locale must be given as otherwise formatting is done without an explicit locale context.
      That means that Locale.getDefault() is taken. Since this is heavily environment specific it is not a wise default. Instead the default locale should rather be similar to the locale being used for i18n purposes (i.e. determined by request's locale).

      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: