org.pentaho.di.ui.i18n
Class LocaleStore
java.lang.Object
org.pentaho.di.ui.i18n.LocaleStore
public class LocaleStore
- extends Object
This class stores all the messages for a locale for all the used packages...
- Author:
- matt
LocaleStore
public LocaleStore(LogChannelInterface log,
String locale,
List<String> messagesPackages,
String mainLocale,
Map<String,List<KeyOccurrence>> packageOccurrences)
- Create a new LocaleStore
- Parameters:
locale - The locale to handlemessagesPackages - the packages to handlepackageOccurrences -
read
public void read(List<String> directories)
throws KettleException
- Read all the messages stores from the specified locale from all the specified packages
- Parameters:
directories - The source directories to reference the packages from
- Throws:
KettleException
getMessagesPackages
public List<String> getMessagesPackages()
- Returns:
- the messagesPackages
setMessagesPackages
public void setMessagesPackages(List<String> messagesPackages)
- Parameters:
messagesPackages - the messagesPackages to set
getLocale
public String getLocale()
- Returns:
- the locale
setLocale
public void setLocale(String locale)
- Parameters:
locale - the locale to set
getMainLocale
public String getMainLocale()
- Returns:
- the mainLocale
setMainLocale
public void setMainLocale(String mainLocale)
- Parameters:
mainLocale - the mainLocale to set
getLocaleMap
public Map<String,MessagesStore> getLocaleMap()
- Returns:
- the localeMap
setLocaleMap
public void setLocaleMap(Map<String,MessagesStore> localeMap)
- Parameters:
localeMap - the localeMap to set
getPackagesOccurrences
public Map<String,List<KeyOccurrence>> getPackagesOccurrences()
- Returns:
- the packagesOccurrences
setPackagesOccurrences
public void setPackagesOccurrences(Map<String,List<KeyOccurrence>> packagesOccurrences)
- Parameters:
packagesOccurrences - the packagesOccurrences to set