[loc-en-dev] variant field casing
Masayoshi Okutsu
Masayoshi.Okutsu at Sun.COM
Tue Jul 28 19:55:20 PDT 2009
Let me ask another question. If you do:
Locale locale = new
Locale.Builder().setLanguage("es").setRegion("ES").setVariant("Traditional_WIN").create();
System.out.println(locale.getVariant());
what will that produce? ("Traditional_WIN" is an example from the Locale
API doc.)
Thanks,
Masayoshi
On 7/28/2009 8:24 PM, Yoshito Umaoka wrote:
> >Let me confirm.
> >
> >The (existing) Locale variant field and the BCP47 variant value
> (field) are completely separated in the API. Am I correct?
>
> Not correct. At this moment, there is no plan to change existing
> getVariant API and ResourceBundle behavior. New proposed Builder API
> has setVariant and the method set a variant field value (with BCP47
> variant syntax check).
>
> -Yoshito
More information about the locale-enhancement-dev
mailing list