1

From this book "Oracle Certified Professional Java SE 7 Programmer Exams 1Z0-804 and 1Z0-805: A Comprehensive OCPJP 7"

A fully qualified resource bundle has the following form:
packagequalifier.bundlename + "" + language + "" + country + "" + (variant + "#" | "#") + script + "-" + extensions

However I cannot put the hyphen in a class name... maybe it's an error and they wanted to put another underscore? Or is there something I am missing about the extensions? As far as I know for the extension the hyphen serves to separate the sub key-value pair of a certain category.. for example "ca-buddhist". What would be the fully qualified name of a ResourceBundle with an unicode extension 'u' "ca-buddhist"?

Thanks in advance.

Rollerball
  • 12,618
  • 23
  • 92
  • 161

1 Answers1

2

A fully qualified resource bundle has the following form: packagequalifier.bundlename + "" + language + "" + country + "" + (variant + "#" | "#") + script + "-" + extensions

I don't think this definition is correct.

Have a look at the Javadoc.

Strangely, extensions (defined in Locale) don't get mentioned...

Puce
  • 37,247
  • 13
  • 80
  • 152
  • Would you be able to provide me with an example of a fully qualified name (ResourceBundle-wise) with a unicode extension? let's say 'u' "ca-buddhist"? – Rollerball Jun 06 '13 at 11:41