[Cosmo-dev] Stuff in the message resource files
Matthew Eernisse
mde at osafoundation.org
Mon Jul 30 14:59:16 PDT 2007
Ah, okay. I'll defer to y'all on what is the common practice in the
Java-Webapp world.
I was actually a bit on the fence about mentioning that one, since the
only practical downside I could think of is that it would seem to be
more copy-paste error prone than programmatically appending/parsing the
locale tag on some portion of the URI.
M.
Brian Moseley wrote:
> On 7/30/07, Matthew Eernisse <mde at osafoundation.org> wrote:
>
>> For the URL for a localized file -- when I've ever done this before,
>> we've added a language param to the path so that it grabs the right file
>> automagically.
>
> by specifying localized uris in the message resources, we take
> advantage of the fact that locale negotiation is already handled by
> the message resources framework. we don't need to add code to look for
> locale hints in the request uri and translate that in any way. the way
> we're handling this is common practice in java webapps. if we had any
> localized images, we'd handle them the same way.
> _______________________________________________
> cosmo-dev mailing list
> cosmo-dev at lists.osafoundation.org
> http://lists.osafoundation.org/mailman/listinfo/cosmo-dev
>
More information about the cosmo-dev
mailing list