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

SolrVelocityResourceTool .get(key,baseName,locale) ignores locale, uses default

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 5.3
    • 5.3.1, 6.0
    • contrib - Velocity
    • None

    Description

      A little obscure, this bug. It surfaces when when trying to look up a resource of a different locale than the v.locale controlled locale. Here's an example (using the example/files resource bundles):

            #set($locales = ["en_US","de_DE","fr_FR"])
            #foreach($locale in $locales)
              <li>$locale: $resource.get("find", "resources", $locale)</li>
            #end
      

      It returns "Find" for every item, but should be three different language values returned.

      Attachments

        1. SOLR-8041.patch
          2 kB
          Erik Hatcher

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: