|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.common.util.MsgBase
public class MsgBase
A base class for implementing type safe internationalization (i18n) that is
easy for most cases. See org.crosswire.common.util.Msg for an example
of how to inherit from here.
for license details.
The copyright to this program is held by it's authors.| Field Summary | |
|---|---|
private static Logger |
log
The log stream |
private static Map<String,ResourceBundle> |
resourceMap
Resource map maintains a mapping of class names to resources found by that name. |
private ResourceBundle |
resources
If there is any internationalization to be done, it is thru this |
private NumberShaper |
shaper
Internationalize numbers |
| Constructor Summary | |
|---|---|
protected |
MsgBase()
Create a MsgBase object |
| Method Summary | |
|---|---|
protected void |
loadResources()
Initialize any resource bundles |
String |
lookup(String key,
Object... params)
Get the internationalized text, but return key if key is unknown. |
private String |
obtainString(String key)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static Map<String,ResourceBundle> resourceMap
private ResourceBundle resources
private NumberShaper shaper
private static final Logger log
| Constructor Detail |
|---|
protected MsgBase()
| Method Detail |
|---|
public String lookup(String key,
Object... params)
key -
protected final void loadResources()
private String obtainString(String key)
|
Copyright ? 2003-2011 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||