Package 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
-
-
Constructor Summary
Constructors Constructor Description LocaleStore(org.pentaho.di.core.logging.LogChannelInterface log, String locale, String mainLocale, Map<String,Map<String,List<KeyOccurrence>>> sourcePackageOccurrences)
Create a new LocaleStore
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLocale()
String
getMainLocale()
Map<String,SourceStore>
getSourceMap()
void
read(List<String> directories)
Read all the messages stores from the specified locale from all the specified packagesvoid
setLocale(String locale)
void
setMainLocale(String mainLocale)
-
-
-
Constructor Detail
-
LocaleStore
public LocaleStore(org.pentaho.di.core.logging.LogChannelInterface log, String locale, String mainLocale, Map<String,Map<String,List<KeyOccurrence>>> sourcePackageOccurrences)
Create a new LocaleStore- Parameters:
locale
- The locale to handlemessagesPackages
- the packages to handle per source folderpackageOccurrences
-
-
-
Method Detail
-
read
public void read(List<String> directories) throws org.pentaho.di.core.exception.KettleException
Read all the messages stores from the specified locale from all the specified packages- Parameters:
directories
-directories
- The source directories to reference the packages from- Throws:
org.pentaho.di.core.exception.KettleException
-
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
-
getSourceMap
public Map<String,SourceStore> getSourceMap()
-
-