public class TranslationsStore extends Object
| Constructor and Description |
|---|
TranslationsStore(LogChannelInterface log,
List<String> localeList,
String mainLocale,
Map<String,Map<String,List<KeyOccurrence>>> sourcePackageOccurrences) |
| Modifier and Type | Method and Description |
|---|---|
MessagesStore |
findMainLocaleMessagesStore(String sourceFolder,
String messagesPackage) |
List<MessagesStore> |
getChangedMessagesStores() |
List<String> |
getLocaleList() |
String |
getMainLocale() |
List<MessagesStore> |
getMessagesStores(String searchLocale,
String messagesPackage) |
Map<String,Map<String,List<KeyOccurrence>>> |
getSourcePackageOccurrences() |
String |
lookupKeyValue(String locale,
String messagesPackage,
String key)
Look up the translation for a key in a certain locale
|
void |
read(List<String> directories)
Read all the translated messages for all the specified locale and all the specified locale
|
void |
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 |
storeValue(String locale,
String sourceFolder,
String messagesPackage,
String key,
String value) |
public TranslationsStore(LogChannelInterface log, List<String> localeList, String mainLocale, Map<String,Map<String,List<KeyOccurrence>>> sourcePackageOccurrences)
localeList - messagesPackages - map - public void read(List<String> directories) throws KettleException
directories - The reference source directories to search packages inKettleExceptionpublic void setLocaleList(List<String> localeList)
localeList - the localeList to setpublic String getMainLocale()
public void setMainLocale(String mainLocale)
mainLocale - the mainLocale to setpublic String lookupKeyValue(String locale, String messagesPackage, String key)
locale - the locale to hunt forsourceFolder - the source folder to look inmessagesPackage - the messages package to look inkey - the keypublic void removeValue(String locale, String sourceFolder, String messagesPackage, String key)
public void storeValue(String locale, String sourceFolder, String messagesPackage, String key, String value)
public List<MessagesStore> getChangedMessagesStores()
public List<MessagesStore> getMessagesStores(String searchLocale, String messagesPackage)
searchLocale - the locale the filter on.messagesPackage - the messagesPackage to filter on. Specify null to get all message stores.public MessagesStore findMainLocaleMessagesStore(String sourceFolder, String messagesPackage)
public Map<String,Map<String,List<KeyOccurrence>>> getSourcePackageOccurrences()
Copyright © 2019 Hitachi Vantara. All rights reserved.