public class IlpI18NUtil extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static String | getDefaultBundleName()Returns the default bundle name used by the application. | 
| static Object | getObject(String key,
         Object defaultValue,
         Locale locale)Returns the resource value for a given key, or the default value
 if the no entry is found for the key. | 
| static ResourceBundle | getResourceBundle(String baseName,
                 Locale locale,
                 String productName)Returns the requested resource bundle for the given locale. | 
| static String | getString(String msgid,
         String enDefault,
         IlpContext context,
         String bundle)Returns the translation for the given string, or the original string
 if no translation is available. | 
| static String | getString(String msgid,
         String enDefault,
         Locale locale,
         String bundle)Returns the translation for the given string, or the original string
 if no translation is available. | 
| static ResourceBundle | loadResourceBundle(String baseName,
                  Locale locale,
                  String productName)Loads a resource bundle. | 
| static void | setDefaultBundleName(String name)Sets the default bundle name used by the application. | 
public static void setDefaultBundleName(String name)
Compatibility Note: In JViews 8.0, this method was renamed from 
 SetDefaultBundleName to setDefaultBundleName.
public static String getDefaultBundleName()
Compatibility Note: In JViews 8.0, this method was renamed from 
 GetDefaultBundleName to getDefaultBundleName.
public static ResourceBundle getResourceBundle(String baseName, Locale locale, String productName)
The resource bundle will be automatically loaded.
Compatibility Note: In JViews 8.0, this method was renamed from 
 GetResourceBundle to getResourceBundle.
baseName - Resource bundle namelocale - Locale to be used when loading the resource bundleproductName - Product name to log messages during load operationpublic static ResourceBundle loadResourceBundle(String baseName, Locale locale, String productName)
nullpublic static String getString(String msgid, String enDefault, Locale locale, String bundle)
msgid - The message id.enDefault - The default English message, if no translation is found.locale - The locale to be used.bundle - The resource bundle to search for the translations.public static String getString(String msgid, String enDefault, IlpContext context, String bundle)
msgid - The message id.enDefault - The default English message, if no translation is found.context - The context containing a locale.bundle - The resource bundle to search for the translations.public static Object getObject(String key, Object defaultValue, Locale locale)
key - The message id.defaultValue - The default English message, if no translation is found.locale - The locale.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.