This is the mail archive of the mailing list for the Mauve project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ResourceBundle variants and child variants

--- Mark Wielaard <> wrote:
> Hi,
> On Mon, 2002-12-09 at 12:27, Andrew Haley wrote:
> > Mark Wielaard writes:
> >  > Mauve contains a couple of
> java.util.ResourceBundle checks that test for
> >  > "child variants". The Java Class Libraries,
> Volume 1, Second Edition
> >  > explains these things and gives some examples.
> e.g
> >  > ErrorResources_de_CH_WIN_95 and
> ErrorResources_de_CH_WIN_311 are both
> >  > child variants of ErrorResources_de_CH_WIN.
> Mauve even contains some
> >  > tests to check that these child variants are
> correctly searched for.
> >  > 
> >  > The API Spec as found online however does not
> talk about child variants
> >  > at all. And a quick test against the Sun JDK
> 1.4.1 implementation seems
> >  > to suggest that it does not implement support
> for these child variants.
> >  > 
> >  > Which specification should we take as
> normative?
> >  > Do the different class libraries
> implementations implement it?
> >  > (GNU Classpath and libgcj don't support them,
> kaffe does.)
> >  > Should these tests be removed from Mauve?
> > 
> > I would think so.  There's no way that Mauve
> should be testing
> > anything outside the specifications.
> But the question is, what is considered The
> Specification?
> I use The Java Class Libraries books a lot when
> implementing classes.
> And since it describes the child variants it could
> also be argued that
> the online API doc (and most implementations except
> for Kaffe) is
> flawed.

I think I remember the time when there were child
variants for *Locales* in wide useage in the EU, due
to pending conversion to a new currency. de_DE_EURO

I don't know if that means anything to ResourceBundle
support, but I'd expect it to match Locale's rules for
resolution. I think one of the examples for Locale in
Java Class Libraries 2n Ed Volume 1 mentions a
norwegian Locale with the child variant "bookmal".

As I understand the spec for Locale, it says "Where
there are two variants, separate them with an
underscore, and put the most important one first." ,
so it is possible to have child variants. They also
give an example in the next sentence,
"Traditional_WIN" . See
, the paragraph just below the country code link.

best regards,

dalibor topic

Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]