| java.lang.Object net.sf.regain.util.io.Localizer
Localizer | public class Localizer (Code) | | author: Til Schneider, www.murfman.de |
Method Summary | |
public String | msg(String key, String defaultMsg, Object arg1) Gets a localized message.
Parameters: key - The key of the message. Parameters: defaultMsg - The default message. | public String | msg(String key, String defaultMsg, Object arg1, Object arg2) Gets a localized message.
Parameters: key - The key of the message. Parameters: defaultMsg - The default message. | public String | msg(String key, String defaultMsg, Object arg1, Object arg2, Object arg3) Gets a localized message.
Parameters: key - The key of the message. Parameters: defaultMsg - The default message. | public String | msg(String key, String defaultMsg, Object[] args) Gets a localized message.
Parameters: key - The key of the message. Parameters: defaultMsg - The default message. | public String | msg(String key, String defaultMsg) Gets a localized message.
Parameters: key - The key of the message. Parameters: defaultMsg - The default message. |
Localizer | public Localizer(URL baseurl, String basename, Locale locale)(Code) | | Creates a new instance of Localizer.
Parameters: baseurl - The URL to load the resource bundle from. Parameters: basename - The basename of the resource bundle to load. Parameters: locale - the locale to create the localizer for. |
Localizer | public Localizer(Class clazz)(Code) | | Creates a new instance of Localizer.
Parameters: clazz - The class to create the Localizer for. |
Localizer | public Localizer(Class clazz, Locale locale)(Code) | | Creates a new instance of Localizer.
Parameters: clazz - The class to create the Localizer for. Parameters: locale - the locale to create the localizer for. |
msg | public String msg(String key, String defaultMsg, Object arg1)(Code) | | Gets a localized message.
Parameters: key - The key of the message. Parameters: defaultMsg - The default message. (english) Parameters: arg1 - The argument that should replace {0} . a localized message. |
msg | public String msg(String key, String defaultMsg, Object arg1, Object arg2)(Code) | | Gets a localized message.
Parameters: key - The key of the message. Parameters: defaultMsg - The default message. (english) Parameters: arg1 - The argument that should replace {0} . Parameters: arg2 - The argument that should replace {1} . a localized message. |
msg | public String msg(String key, String defaultMsg, Object arg1, Object arg2, Object arg3)(Code) | | Gets a localized message.
Parameters: key - The key of the message. Parameters: defaultMsg - The default message. (english) Parameters: arg1 - The argument that should replace {0} . Parameters: arg2 - The argument that should replace {1} . Parameters: arg3 - The argument that should replace {2} . a localized message. |
msg | public String msg(String key, String defaultMsg, Object[] args)(Code) | | Gets a localized message.
Parameters: key - The key of the message. Parameters: defaultMsg - The default message. (english) Parameters: args - The arguments that should replace the appropriate place holder.See java.text.MessageFormat for details. a localized message. |
msg | public String msg(String key, String defaultMsg)(Code) | | Gets a localized message.
Parameters: key - The key of the message. Parameters: defaultMsg - The default message. (english) a localized message. |
|
|