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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.3
    • Fix Version/s: 5.3.1, 6.0
    • Component/s: contrib - Velocity
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: