You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Erik Hatcher (JIRA)" <ji...@apache.org> on 2015/09/11 18:41:46 UTC
[jira] [Updated] (SOLR-8041) SolrVelocityResourceTool
.get(key,baseName,locale) ignores locale, uses default
[ https://issues.apache.org/jira/browse/SOLR-8041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Erik Hatcher updated SOLR-8041:
-------------------------------
Attachment: SOLR-8041.patch
> 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
>
> Attachments: SOLR-8041.patch
>
>
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org