uk.ac.essex.common.lang
Interface LanguageService

All Superinterfaces:
Service
All Known Implementing Classes:
LanguageServiceImpl

public interface LanguageService
extends Service

A language manager looks after the language dependent strings for things such as JButtons, JMenus etc..
Date: 15-Jul-2002


Field Summary
static java.lang.String DEFAULT_LANGUAGE
          The default language to use (ENGLISH)
 
Method Summary
 void add(ResourceConfigXML resourceConfig)
           
 void addResourceConfig(java.lang.String fileName)
          Add a resource config that gives the application localization resources to configure for this service
 java.util.Locale getCurrentLocale()
           
 void setCurrentLocale(java.util.Locale locale)
           
 java.lang.String translate(java.util.Locale locale, java.lang.String s)
           
 java.lang.String translate(java.lang.String s)
           
 
Methods inherited from interface uk.ac.essex.common.Service
destroy, initialise
 

Field Detail

DEFAULT_LANGUAGE

static final java.lang.String DEFAULT_LANGUAGE
The default language to use (ENGLISH)

See Also:
Constant Field Values
Method Detail

add

void add(ResourceConfigXML resourceConfig)
Parameters:
resourceConfig -

addResourceConfig

void addResourceConfig(java.lang.String fileName)
                       throws InitialisationException
Add a resource config that gives the application localization resources to configure for this service

Parameters:
fileName - - The file name, will be loaded from the classpath
Throws:
InitialisationException

translate

java.lang.String translate(java.lang.String s)
Parameters:
s -
Returns:

translate

java.lang.String translate(java.util.Locale locale,
                           java.lang.String s)
Parameters:
s -
Returns:

setCurrentLocale

void setCurrentLocale(java.util.Locale locale)
Parameters:
locale -

getCurrentLocale

java.util.Locale getCurrentLocale()
Returns: