[loc-en-dev] [Fwd: [Fwd: Locale RFE]]
Yoshito Umaoka
y.umaoka at gmail.com
Wed Sep 16 05:11:44 PDT 2009
I got a warning message from the ML, when I sent out the message below
(originally with some attachments). I'm not sure the message actually
got through or not - so I'm resending the message without attachment files.
I posted all of update JavaDocs to the OpenJDK LE site -
http://sites.google.com/site/openjdklocale/apis
Thanks,
Yoshito
--------------------------------------------
Your mail to 'locale-enhancement-dev' with the subject
[Fwd: Locale RFE]
Is being held until the list moderator can review it for approval.
The reason it is being held:
Message body is too big: 183752 bytes with a limit of 40 KB
Either the message will get posted to the list, or you will receive
notification of the moderator's decision. If you would like to cancel
this posting, please visit the following URL:
http://mail.openjdk.java.net/mailman/confirm/locale-enhancement-dev/640d8d78f0b53681c9980c6523acc458d91d870e
--------------------------------------------
-------- Original Message --------
Subject: [Fwd: Locale RFE]
Date: Wed, 16 Sep 2009 07:57:39 -0400
From: Yoshito Umaoka <y.umaoka at gmail.com>
To: locale-enhancement-dev at openjdk.java.net
<locale-enhancement-dev at openjdk.java.net>
Hi folks,
I updated the API specification of resource bundle/locale service lookup
- ResourceBundle, ResourceBundle.Control and LocaleServiceProvider.
There are no API signature changes proposed, but I updated following API
descriptions to match the changes in Locale.
ResourceBundle.html#getBundle(java.lang.String, java.util.Locale,
java.lang.ClassLoader)
ResourceBundle.Control.html#getCandidateLocales(java.lang.String,
java.util.Locale)
LocaleServiceProvider.html (class description)
Note:
- LocaleServiceProvider takes into account fallbacks within variant when
variant has multiple subtags separated by underscore. I updated
ResourceBundle to match the design. I think this is a right thing to
do, but if you have any concerns, please provide your comments.
- I did not include special handling of Locales with deprecated language
code. We discussed about MyResource_he.class should be included in the
lookup path when Locale "iw" is requested. This behavior does not quite
fit to the design of ResourceBundle.Control. We could state this as the
special JRE implementation only behavior, or extending
ResourceBundle.Control to add a new API which returns "alternative"
bundle name. But I start feeling that the feature does not make people
happy - at least, introducing such a hacky spec would not match the
outcome. If someone really need to use "he" for bundle naming for some
reasons, he/she can still override Control#toBundleName to support
bundle name with "he". It cannot support both, but I do not think there
is a strong requirement.
Please take a look at these updates and provide your feedback.
Thanks,
Yoshito
-------- Original Message --------
Subject: Locale RFE
Date: Mon, 14 Sep 2009 03:49:21 -0400
From: Yoshito Umaoka <y.umaoka at gmail.com>
To: locale-enhancement-dev at openjdk.java.net
<locale-enhancement-dev at openjdk.java.net>
Hi folks,
After the conference call last week and some additional sub discussions
with Mark, Doug and Steven, I update the API specification. I'm
attaching the latest proposal (API doc) in this message.
Since the last revision, followings were updated.
- toString() to include script/extensions after variant prefixed by
"#". For example, "en_US_#Latn", "th_TH_TH_#nu-thai", etc.
- toLanguageTag() to preserve variant which does not conform the BCP 47
syntax using private use with special subtag "jvariant". For example,
Locale en_US_WIN will be transformed to a language tag
"en-US-x-jvariant-WIN".
- Builder to check variant syntax to be conformed to the BCP 47 variant
by default. Another Builder constructor - Builder(boolean
isLenientVariant) allows people who want to use any arbitrary variants.
With isLenientVariant true, Buidler#setVariant will skip all syntax
checks and never normalize the input value to lowercase letters.
- The class description to refer the Unicode language and locale
identifiers as the reference design of java.util.Locale
- Clarify Locale and its methods won't check validity of each subtag
values - only checks syntactical restrictions in Builder to support
"well-formedness".
Last week, we revisited toString() issues. Mark, Doug and myself really
want to see all internal fields written by toString(). The proposal
above should not break any practical code parsing toString() values
(recognized as a segment of variant and usually discarded while
processing). But if this is not really acceptable, we could give up
this change and back up some explanation about this in the previous
revision.
Please take your time to review this revision and provide your comments
by the end of Tuesday September 15.
I could not finish some necessary changes in ResouceBundle /
LocaleServiceProvider class (no API changes, but the description should
be updated. I'm still struggling to select proper wording...) I'll
provide this part by Tuesday morning.
BTW, the new language tag RFC got the number assigned -
http://www.rfc-editor.org/rfc/rfc5646.txt
-Yoshito
More information about the locale-enhancement-dev
mailing list