|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.aria.helper.DefaultTranslator
public class DefaultTranslator
The default implementation of the Translator interface, providing simplified lookup of strings in the resource bundle and some independance of the individual resource bundle
Copyright (c) Formaria Ltd., 2008
$Revision: 1.1 $
License: see License.txt
| Field Summary | |
|---|---|
protected Project |
currentProject
|
protected java.util.ResourceBundle |
languageResourceBundle
|
| Constructor Summary | |
|---|---|
DefaultTranslator(Project project)
Creates a new instance of DefaultTranslator |
|
| Method Summary | |
|---|---|
void |
setResourceBundle(java.util.ResourceBundle bundle)
Set the resource bundle for this translator. |
java.lang.String |
translate(java.lang.String key)
Look up the translation of a key using the current language resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.ResourceBundle languageResourceBundle
protected Project currentProject
| Constructor Detail |
|---|
public DefaultTranslator(Project project)
| Method Detail |
|---|
public void setResourceBundle(java.util.ResourceBundle bundle)
setResourceBundle in interface Translatorbundle - the translation resource bundlepublic java.lang.String translate(java.lang.String key)
translate in interface Translatorkey - the key string
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||