You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Craig Randall <cs...@hotmail.com> on 2000/06/21 20:35:24 UTC
.properties fies in Struts framwork & its example
Since the base properties files are currently for the en_US locale,
shouldn't they be so prefaced to explicitly call out that fact and follow
standard naming convention? That is,
ActionResources_en_US.properties
ApplicationResources_en_US.properties
LocalStrings_en_US.properties
This would make it clearer to developers and users alike what they'll need
to do for their L10N work.
Thanks.
-Craig Randall (csrandall@hotmail.com)
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
Re: .properties fies in Struts framwork & its example
Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Craig Randall wrote:
> Since the base properties files are currently for the en_US locale,
> shouldn't they be so prefaced to explicitly call out that fact and follow
> standard naming convention? That is,
>
> ActionResources_en_US.properties
> ApplicationResources_en_US.properties
> LocalStrings_en_US.properties
>
> This would make it clearer to developers and users alike what they'll need
> to do for their L10N work.
>
I haven't tried it lately, but I seem to remember getting
MissingResourceException errors if there was no "default" bundle file (without
the locale suffix stuff). I will try that again to make sure I'm remembering
it right; if so, what you suggest might make sense. On the other hand, it
would also guarantee that someone running Struts in a non-"en_US" locale would
get "missing message" errors on all the message lookups, instead of at least
getting the English versions.
>
> Thanks.
>
> -Craig Randall (csrandall@hotmail.com)
>
Craig McClanahan