Package org.pentaho.di.ui.i18n
Class TranslationsStore
java.lang.Object
org.pentaho.di.ui.i18n.TranslationsStore
This class contains and handles all the translations for the keys specified in the Java source code.
- Author:
- matt
-
Constructor Summary
ConstructorDescriptionTranslationsStore
(org.pentaho.di.core.logging.LogChannelInterface log, List<String> localeList, String mainLocale, Map<String, Map<String, List<KeyOccurrence>>> sourcePackageOccurrences) -
Method Summary
Modifier and TypeMethodDescriptionfindMainLocaleMessagesStore
(String sourceFolder, String messagesPackage) getMessagesStores
(String searchLocale, String messagesPackage) lookupKeyValue
(String locale, String messagesPackage, String key) Look up the translation for a key in a certain localevoid
Read all the translated messages for all the specified locale and all the specified localevoid
removeValue
(String locale, String sourceFolder, String messagesPackage, String key) void
setLocaleList
(List<String> localeList) void
setMainLocale
(String mainLocale) void
setSourcePackageOccurrences
(Map<String, Map<String, List<KeyOccurrence>>> sourcePackageOccurrences) void
-
Constructor Details
-
Method Details
-
read
Read all the translated messages for all the specified locale and all the specified locale- Parameters:
directories
- The reference source directories to search packages in- Throws:
org.pentaho.di.core.exception.KettleException
-
getLocaleList
- Returns:
- the localeList
-
setLocaleList
- Parameters:
localeList
- the localeList to set
-
getMainLocale
- Returns:
- the mainLocale
-
setMainLocale
- Parameters:
mainLocale
- the mainLocale to set
-
lookupKeyValue
Look up the translation for a key in a certain locale- Parameters:
locale
- the locale to hunt forsourceFolder
- the source folder to look inmessagesPackage
- the messages package to look inkey
- the key- Returns:
- the translation for the specified key in the desired locale, from the requested package
-
removeValue
-
storeValue
-
getChangedMessagesStores
- Returns:
- the list of changed messages stores.
-
getMessagesStores
- Parameters:
searchLocale
- the locale the filter on.messagesPackage
- the messagesPackage to filter on. Specify null to get all message stores.- Returns:
- the list of messages stores for the main locale
-
findMainLocaleMessagesStore
-
getSourcePackageOccurrences
-
setSourcePackageOccurrences
-