| java.lang.Object org.columba.core.resourceloader.GlobalResourceLoader
All known Subclasses: org.columba.addressbook.util.AddressbookResourceLoader, org.columba.mail.util.MailResourceLoader,
GlobalResourceLoader | public class GlobalResourceLoader (Code) | | This is the core class to handle i18n in columba, loading, handling and
returning localized strings. It should not be used directly, use
MailResourceLoader or AddressbookResourceLoader (or *ResourceLoader) instead.
Behaviour: When a resource is needed, getString() or getMnemonics() are
called. They look for a resource with that name (in the current locale
bundles). If it is not found, they look for the resource in the global
resource bundle (for the current locale). If this is not found, "FIXME" is
returned.
Example of usage: We need to get the text for "my_cool_button" located into
"org/columba/modules/mail/i18n/action/something_else_than_action" sPath:
org/columba/modules/mail/i18n/action/ => The complete package path. sName:
something_else_than_action => the name of the _it_IT.properties file. sID:
my_cool_button => the name to be looked for inside sName file. We can call:
a) MailResourceLoader.getString("action", "something_else_than_action",
"my_cool_button"); b)
ResourceLoader.getString("org/columba/modules/mail/i18n/action",
"something_else_than_action", "my_cool_button"); They'll both work.
We need to gets its mnemonic: a) MailResourceLoader.getMnemonic("action",
"something_else_than_action", "my_cool_button"); b)
ResourceLoader.getMnemonic("org/columba/modules/mail/i18n/action",
"something_else_than_action", "my_cool_button");
|
Inner Class :public static class LangPackFileFilter implements FileFilter | |
getAvailableLocales | public static Locale[] getAvailableLocales()(Code) | | |
initClassLoader | protected static void initClassLoader()(Code) | | |
loadLanguage | public static void loadLanguage()(Code) | | Initialize in org.columba.core.main.Main to use user-definable language
pack.
|
reload | public static void reload()(Code) | | |
|
|