Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8128

Current locale not set on LocaleConfig-based Velocity tools

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.4, 6.0
    • None
    • None

    Description

      The locale feature of VelocityResponseWriter is currently used to set the locale for the $resource tool. However, there are some other tools that leverage the locale setting that are falling back to the default system locale.

      For example, $number.format should allow $number.format("integer",50000) to render the number in the v.locale specified locale but always uses the default system locale.

      A workaround for number formatting is to use the $resource.locale setting like this: $number.format("integer",50000,$resource.locale)

      Attachments

        1. SOLR-8128.patch
          6 kB
          Erik Hatcher

        Activity

          People

            ehatcher Erik Hatcher
            ehatcher Erik Hatcher
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: