|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.briar.i18n.I18nImpl
public class I18nImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface net.sf.briar.api.i18n.I18n |
|---|
I18n.Listener |
| Constructor Summary | |
|---|---|
I18nImpl(FontManager fontManager)
|
|
| Method Summary | |
|---|---|
void |
addListener(I18n.Listener l)
Registers a listener for changes to the i18n locale. |
java.awt.ComponentOrientation |
getComponentOrientation()
Returns the ComponentOrientation of the current i18n locale. |
java.util.Locale |
getLocale()
Returns the i18n locale. |
void |
loadLocale()
Loads the i18n locale from Briar/Data/locale.cfg. |
void |
loadLocale(java.io.File f)
Loads the i18n locale from the given file. |
void |
removeListener(I18n.Listener l)
Unregisters a listener for changes to the i18n locale. |
void |
saveLocale()
Saves the i18n locale to Briar/Data/locale.cfg. |
void |
saveLocale(java.io.File f)
Saves the i18n locale to the given file. |
void |
setLocale(java.util.Locale locale)
Sets the i18n locale. |
java.lang.String |
tr(java.lang.String name)
Returns the named string, translated for the current i18n locale. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject public I18nImpl(FontManager fontManager)
| Method Detail |
|---|
public java.lang.String tr(java.lang.String name)
I18n
tr in interface I18npublic java.util.Locale getLocale()
I18n
getLocale in interface I18npublic void setLocale(java.util.Locale locale)
I18n
setLocale in interface I18n
public void loadLocale()
throws java.io.IOException
I18n
loadLocale in interface I18njava.io.IOException
public void loadLocale(java.io.File f)
throws java.io.IOException
I18n
loadLocale in interface I18njava.io.IOException
public void saveLocale()
throws java.io.IOException
I18n
saveLocale in interface I18njava.io.IOException
public void saveLocale(java.io.File f)
throws java.io.IOException
I18n
saveLocale in interface I18njava.io.IOExceptionpublic java.awt.ComponentOrientation getComponentOrientation()
I18n
getComponentOrientation in interface I18npublic void addListener(I18n.Listener l)
I18n
addListener in interface I18npublic void removeListener(I18n.Listener l)
I18n
removeListener in interface I18n
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||