You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Bruno Borges <br...@gmail.com> on 2011/01/16 19:59:10 UTC
Default Locale and Resource Lookup Order
I've searched for this on the mailing list archive but could not find. Sorry
if my search skills are bad. :-)
My application is entirely based on pt_BR, so I create sessions with that
specific locale. All resources are based on the pattern
ResourceFile.extension.
The problem is that Wicket keeps trying to find files like
resources_pt_BR.extension, then resources_pt.extension.
Where should I tell Wicket what is the locale for non-localized-files. ?
Thanks,
Bruno Borges
www.brunoborges.com.br
+55 21 76727099
"The glory of great men should always be
measured by the means they have used to
acquire it."
- Francois de La Rochefoucauld
Re: Default Locale and Resource Lookup Order
Posted by Jeremy Thomerson <je...@wickettraining.com>.
On Sun, Jan 16, 2011 at 12:59 PM, Bruno Borges <br...@gmail.com>wrote:
> I've searched for this on the mailing list archive but could not find.
> Sorry
> if my search skills are bad. :-)
>
> My application is entirely based on pt_BR, so I create sessions with that
> specific locale. All resources are based on the pattern
> ResourceFile.extension.
>
> The problem is that Wicket keeps trying to find files like
> resources_pt_BR.extension, then resources_pt.extension.
>
> Where should I tell Wicket what is the locale for non-localized-files. ?
>
> Thanks,
>
> Bruno Borges
> www.brunoborges.com.br
> +55 21 76727099
>
> "The glory of great men should always be
> measured by the means they have used to
> acquire it."
> - Francois de La Rochefoucauld
>
Bruno,
Here is a thread where I did a simple diagram that shows the search order
[1]. Maybe it will help. What specifically are you seeing? Is this with
images, or text from properties files?
[1] -
http://apache-wicket.1842946.n4.nabble.com/Request-for-input-resource-loading-search-pattern-flowchart-td2549733.html
--
Jeremy Thomerson
http://wickettraining.com
*Need a CMS for Wicket? Use Brix! http://brixcms.org*