Erik Hatcher created SOLR-8041:
----------------------------------

             Summary: SolrVelocityResourceTool .get(key,baseName,locale) 
ignores locale, uses default
                 Key: SOLR-8041
                 URL: https://issues.apache.org/jira/browse/SOLR-8041
             Project: Solr
          Issue Type: Bug
          Components: contrib - Velocity
    Affects Versions: 5.3
            Reporter: Erik Hatcher
            Priority: Critical
             Fix For: Trunk, 5.4, 5.3.1


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):

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

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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to