| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gudy.azureus2.pluginsimpl.local.utils.LocaleUtilitiesImpl
public class LocaleUtilitiesImpl
| Constructor Summary | |
|---|---|
LocaleUtilitiesImpl(PluginInterface _pi)
 | 
|
| Method Summary | |
|---|---|
 void | 
addListener(LocaleListener l)
 | 
 Locale | 
getCurrentLocale()
Returns the current locale being used.  | 
 LocaleDecoder[] | 
getDecoders()
 | 
 String | 
getLocalisedMessageText(String key)
 | 
 String | 
getLocalisedMessageText(String key,
                        String[] params)
 | 
 boolean | 
hasLocalisedMessageText(String key)
Returns true if there exists a message string with the given key name.  | 
 void | 
integrateLocalisedMessageBundle(Properties p)
Allows plugins to dynamically pass in a properties object to be used for message text translation.  | 
 void | 
integrateLocalisedMessageBundle(ResourceBundle rb)
Allows plugins to dynamically pass in a resource bundle to be used for message text translation.  | 
 void | 
integrateLocalisedMessageBundle(String resource_bundle_prefix)
Allows programatic registration of plugin messages, as opposed to using the plugin.langfile property in plugin.properties If you message base file is, say, a.b.c.Messages.properties, pass a.b.c.Messages  | 
 String | 
localise(String key)
An alias for LocaleUtilities.getLocalisedMessageText(String) which returns
 null if there is no message string definition for the given
 key. | 
 void | 
removeListener(LocaleListener l)
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public LocaleUtilitiesImpl(PluginInterface _pi)
| Method Detail | 
|---|
public void integrateLocalisedMessageBundle(String resource_bundle_prefix)
LocaleUtilities
integrateLocalisedMessageBundle in interface LocaleUtilitiespublic void integrateLocalisedMessageBundle(ResourceBundle rb)
LocaleUtilities
integrateLocalisedMessageBundle in interface LocaleUtilitiespublic void integrateLocalisedMessageBundle(Properties p)
LocaleUtilities
integrateLocalisedMessageBundle in interface LocaleUtilitiespublic String getLocalisedMessageText(String key)
getLocalisedMessageText in interface LocaleUtilities
public String getLocalisedMessageText(String key,
                                      String[] params)
getLocalisedMessageText in interface LocaleUtilitiespublic boolean hasLocalisedMessageText(String key)
LocaleUtilities
hasLocalisedMessageText in interface LocaleUtilitiespublic String localise(String key)
LocaleUtilitiesLocaleUtilities.getLocalisedMessageText(String) which returns
 null if there is no message string definition for the given
 key.
localise in interface LocaleUtilitiespublic Locale getCurrentLocale()
LocaleUtilities
getCurrentLocale in interface LocaleUtilitiespublic LocaleDecoder[] getDecoders()
getDecoders in interface LocaleUtilitiespublic void addListener(LocaleListener l)
addListener in interface LocaleUtilitiespublic void removeListener(LocaleListener l)
removeListener in interface LocaleUtilities
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||