|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.util.IlpI18NUtil
public class IlpI18NUtil
Utility functions for internationalization.
| Method Summary | |
|---|---|
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)
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 operation
public static ResourceBundle loadResourceBundle(String baseName,
Locale locale,
String productName)
null
public 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)
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.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||