koala.dynamicjava.util
Class LocalizedMessageReader
java.lang.Object
koala.dynamicjava.util.LocalizedMessageReader
public class LocalizedMessageReader
- extends Object
The instances of this class read localized messages in resource files.
The messages in the file are templates. Context specific strings are
inserted where '%n' patterns can be found. A '%' character is represented
with '%%'.
- Version:
- 1.0 - 1999/08/04
- Author:
- Stephane Hillion
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalizedMessageReader
public LocalizedMessageReader(String name)
- Creates a new message reader
- Parameters:
name - the name of the resource
getMessage
public String getMessage(String key,
String[] strings)
- Gets a message
- Parameters:
key - the message keystrings - the strings to insert in the message