38 |
|
|
39 |
package gnu.java.locale; |
package gnu.java.locale; |
40 |
|
|
|
import java.util.Locale; |
|
41 |
import java.util.Hashtable; |
import java.util.Hashtable; |
42 |
|
import java.util.Locale; |
43 |
import java.util.MissingResourceException; |
import java.util.MissingResourceException; |
44 |
import java.util.ResourceBundle; |
import java.util.ResourceBundle; |
45 |
|
|
48 |
* for handling localized data. |
* for handling localized data. |
49 |
* |
* |
50 |
* @author Andrew John Hughes (gnu_andrew@member.fsf.org) |
* @author Andrew John Hughes (gnu_andrew@member.fsf.org) |
51 |
|
* |
52 |
* @see java.util.Locale |
* @see java.util.Locale |
53 |
* @see java.util.ResourceBundle |
* @see java.util.ResourceBundle |
54 |
*/ |
*/ |
55 |
public class LocaleHelper |
public class LocaleHelper |
56 |
{ |
{ |
|
|
|
57 |
/** |
/** |
58 |
* This method is used by the localized name lookup methods to retrieve |
* This method is used by the localized name lookup methods to retrieve |
59 |
* the localized name of a particular piece of locale data. |
* the localized name of a particular piece of locale data. |
60 |
* If the display name can not be localized to the supplied |
* If the display name can not be localized to the supplied |
61 |
* locale, it will fall back on other output in the following order: |
* locale, it will fall back on other output in the following order: |
62 |
* </p> |
* |
63 |
* <ul> |
* <ul> |
64 |
* <li>the localized name in the default locale</li> |
* <li>the localized name in the default locale</li> |
65 |
* <li>the localized name in English (optional)</li> |
* <li>the localized name in English (optional)</li> |