Package org.pentaho.di.ui.i18n
Class LocaleStore
java.lang.Object
org.pentaho.di.ui.i18n.LocaleStore
This class stores all the messages for a locale for all the used packages...
- Author:
- matt
-
Constructor Summary
ConstructorDescriptionLocaleStore
(org.pentaho.di.core.logging.LogChannelInterface log, String locale, String mainLocale, Map<String, Map<String, List<KeyOccurrence>>> sourcePackageOccurrences) Create a new LocaleStore -
Method Summary
Modifier and TypeMethodDescriptionvoid
Read all the messages stores from the specified locale from all the specified packagesvoid
void
setMainLocale
(String mainLocale)
-
Constructor Details
-
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 Details
-
read
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
- Returns:
- the locale
-
setLocale
- Parameters:
locale
- the locale to set
-
getMainLocale
- Returns:
- the mainLocale
-
setMainLocale
- Parameters:
mainLocale
- the mainLocale to set
-
getSourceMap
-