On 21.08.2012, at 14:50, Alexander Klimetschek <[email protected]> wrote:

> Reconsidering, I now think that might be the most stable approach. To make it 
> simple, a ResourceBundleProvider [0] would not indicate its supported locales 
> through a separate method, but they would simply be called in order 
> (depending on service.ranking) and the first one returning something from a 
> getResourceBundle() call would win.

See https://issues.apache.org/jira/browse/SLING-2576

> Not sure what to do with getDefaultLocale(). Isn't that rather something for 
> the (Request)LocaleResolver [1]? In the I18nFilter, which uses this method, 
> it's used right next to the locale resolver and I think this one would be 
> better suited to define the default. The provider's purpose is to provide 
> dictionaries, but not to define what the default locale would be.

See https://issues.apache.org/jira/browse/SLING-2577

Cheers,
Alex

Reply via email to