| java.lang.Object com.jeta.open.i18n.I18N
I18N | public class I18N (Code) | | This is a wrapper class around I18NHelper
author: Jeff Tassin |
Method Summary | |
public static int | compareToIgnoreCase(String str1, String str2) | public static boolean | equals(char[] str1, char[] str2) Compares two string arrays in a Locale independent way. | public static boolean | equals(String str1, String str2) Compares two strings in a Locale independent way. | public static boolean | equalsIgnoreCase(String str1, String str2) Compares two strings in a Locale independent way. | public static String | format(String template, Object[] arguments) A wrapper routine around I18NHelper for formatting locale specific
messages. | public static String | format(String template, Object arg1) | public static String | format(String template, Object arg1, Object arg2) | public static String | format(String template, Object arg1, Object arg2, Object arg3) | public static String | generateCSVList(String[] strs) iterates over the collection of objects and creates a string that
contains the objects separated by a comma (or the locale version of a CSV
list). | public static String | generateCSVList(Collection objs) | public static String | getLocalizedDialogLabel(String resourceName) Returns the locale string for the given resource name with the addition
of a colon on the end (for western languages). | public static String | getLocalizedMessage(String resourceName) Gets the locale string for the given resource name.
Parameters: resourceName - the name of the resource to lookup in the properties files. | public static String | getResource(String resourceName) Gets the locale string for the given resource name.
Parameters: resourceName - the name of the resource to lookup in the properties files. |
equals | public static boolean equals(char[] str1, char[] str2)(Code) | | Compares two string arrays in a Locale independent way.
Parameters: str1 - the first string to compare Parameters: str2 - the second string to compare true if the two strings are equals |
equals | public static boolean equals(String str1, String str2)(Code) | | Compares two strings in a Locale independent way.
Parameters: str1 - the first string to compare Parameters: str2 - the second string to compare true if the two strings are equals |
equalsIgnoreCase | public static boolean equalsIgnoreCase(String str1, String str2)(Code) | | Compares two strings in a Locale independent way.
Parameters: str1 - the first string to compare Parameters: str2 - the second string to compare true if the two strings are equals |
format | public static String format(String template, Object[] arguments)(Code) | | A wrapper routine around I18NHelper for formatting locale specific
messages.
Parameters: template - the template name of the message Parameters: arguments - an array or arguments required for the message the formatted message. |
format | public static String format(String template, Object arg1)(Code) | | This is a helper routine that formats a message string that takes 1
argument in the current locale
Parameters: template - the name of the message template to use Parameters: arg1 - the argument value for the message tempalte the formatted message |
format | public static String format(String template, Object arg1, Object arg2)(Code) | | This is a helper routine that formats a message string that takes 2
arguments in the current locale
Parameters: template - the name of the message template to use Parameters: arg1 - the first argument value for the message tempalte Parameters: arg2 - the second argument value for the message tempalte the formatted message |
format | public static String format(String template, Object arg1, Object arg2, Object arg3)(Code) | | This is a helper routine that formats a message string that takes 3
arguments in the current locale
Parameters: template - the name of the message template to use Parameters: arg1 - the first argument value for the message tempalte Parameters: arg2 - the second argument value for the message tempalte Parameters: arg3 - the third argument value for the message tempalte the formatted message |
generateCSVList | public static String generateCSVList(String[] strs)(Code) | | iterates over the collection of objects and creates a string that
contains the objects separated by a comma (or the locale version of a CSV
list). If an item in the array is null it is skipped.
the generated string |
generateCSVList | public static String generateCSVList(Collection objs)(Code) | | iterates over the collection of objects and creates a string that
contains the objects separated by a comma (or the locale version of a CSV
list)
the generated string |
getLocalizedDialogLabel | public static String getLocalizedDialogLabel(String resourceName)(Code) | | Returns the locale string for the given resource name with the addition
of a colon on the end (for western languages). Dialog labels generally
have a colon at the end of the label.
Parameters: resourceName - the name of the resource to lookup in the properties files. the localized string. If the resourceName is not found, it isreturned. |
getLocalizedMessage | public static String getLocalizedMessage(String resourceName)(Code) | | Gets the locale string for the given resource name.
Parameters: resourceName - the name of the resource to lookup in the properties files. the localized string. If the resourceName is not found, it isreturned. |
getResource | public static String getResource(String resourceName)(Code) | | Gets the locale string for the given resource name.
Parameters: resourceName - the name of the resource to lookup in the properties files. the localized string. If the resourceName is not found, it isreturned. |
|
|