| Package | Description |
|---|---|
| com.force.i18n | |
| com.force.i18n.grammar | |
| com.force.i18n.grammar.impl | |
| com.force.i18n.grammar.parser |
| Modifier and Type | Method and Description |
|---|---|
<L extends HumanLanguage,T> |
LanguageProviderFactory.getNewMap() |
<L extends HumanLanguage,T> |
LanguageProvider.getNewMap() |
<L extends HumanLanguage,T> |
LanguageProvider.Helper.getNewMap() |
| Modifier and Type | Method and Description |
|---|---|
static HumanLanguage |
HumanLanguage.Helper.get(Locale locale) |
static HumanLanguage |
HumanLanguage.Helper.get(String localeString) |
HumanLanguage |
LanguageProviderFactory.getBaseLanguage() |
HumanLanguage |
LanguageProvider.getBaseLanguage() |
HumanLanguage |
LanguageProvider.Helper.getBaseLanguage() |
static HumanLanguage |
LocalizerFactory.getDefaultLanguage() |
HumanLanguage |
HumanLanguage.getFallbackLanguage()
NOTE: You must ensure that the fallback language returned has a lower ordinal than this language in the
enum (i.e.
|
HumanLanguage |
LanguageLabelSetDescriptor.getLanguage() |
HumanLanguage |
LabelSetDescriptorImpl.getLanguage() |
HumanLanguage |
LanguageProviderFactory.getLanguage(Locale loc) |
HumanLanguage |
LanguageProvider.getLanguage(Locale loc) |
HumanLanguage |
LanguageProvider.Helper.getLanguage(Locale loc) |
HumanLanguage |
LanguageProviderFactory.getLanguage(String isoCode) |
HumanLanguage |
LanguageProvider.getLanguage(String isoCode) |
HumanLanguage |
LanguageProvider.Helper.getLanguage(String isoCode) |
HumanLanguage |
LanguageProviderFactory.getLanguageForLocale(Locale loc) |
HumanLanguage |
LanguageProvider.getLanguageForLocale(Locale loc) |
HumanLanguage |
LanguageProvider.Helper.getLanguageForLocale(Locale loc) |
HumanLanguage |
LanguageProviderFactory.getLanguageForLocale(String localeString) |
HumanLanguage |
LanguageProvider.getLanguageForLocale(String localeString) |
HumanLanguage |
LanguageProvider.Helper.getLanguageForLocale(String localeString) |
HumanLanguage |
HumanLanguage.getTranslationFallbackLanguage() |
HumanLanguage |
BaseLocalizer.getUserLanguage() |
| Modifier and Type | Method and Description |
|---|---|
List<? extends HumanLanguage> |
LanguageProviderFactory.getAll() |
List<? extends HumanLanguage> |
LanguageProvider.getAll() |
List<? extends HumanLanguage> |
LanguageProvider.Helper.getAll() |
static com.google.common.base.Function<HumanLanguage,URL> |
LabelSetDescriptorImpl.getLabelRootFunction(String rootPath,
String labelName,
ClassLoader resourceLocator) |
| Modifier and Type | Method and Description |
|---|---|
LabelSet |
LocalizerProvider.findLabelSet(HumanLanguage language) |
static String |
HumanLanguage.Helper.getDefaultFileEncoding(HumanLanguage language) |
static String |
HumanLanguage.Helper.getDefaultUserEmailEncoding(HumanLanguage language)
Return the user email encoding, which differs from the email encoding for
Thai and Korean for reasons I don't understand.
|
static List<URL> |
LabelUtils.getFileNames(HumanLanguage language,
URL rootDirectory,
String basename) |
static String |
HumanLanguage.Helper.getFileNameServletEncoding(HumanLanguage language,
boolean forWindows)
Method used to make sure that file names are encoded specially for japanese users on AP0
|
LanguageLabelSetDescriptor |
LanguageLabelSetDescriptor.getForOtherLanguage(HumanLanguage otherLanguage)
Return a label set descriptor for the other language.
|
LanguageLabelSetDescriptor.GrammaticalLabelSetDescriptor |
LanguageLabelSetDescriptor.GrammaticalLabelSetDescriptor.getForOtherLanguage(HumanLanguage otherLanguage) |
LabelSetDescriptorImpl |
LabelSetDescriptorImpl.getForOtherLanguage(HumanLanguage otherLanguage) |
BaseLocalizer |
LocalizerProvider.getLabelLocalizer(HumanLanguage language)
NOTE: DO NOT USE THIS FOR CULTURE LOCALIZATION
This really should be deprecated
|
BaseLocalizer |
LocalizerFactory.getLabelLocalizer(HumanLanguage language) |
BaseLocalizer |
LocalizerProvider.getLocalizer(HumanLanguage language) |
BaseLocalizer |
LocalizerFactory.getLocalizer(HumanLanguage language) |
BaseLocalizer |
LocalizerProvider.getLocalizer(Locale locale,
Locale currencyLocale,
HumanLanguage language,
TimeZone timeZone)
Get a localizer based on a locale, a currency, a language and a timezone.
|
LabelSet |
LabelSetProvider.getSet(HumanLanguage language) |
String |
Renameable.getStandardFieldLabel(HumanLanguage language,
Renameable.StandardField field) |
Noun |
Renameable.getStandardNoun(HumanLanguage language) |
static String |
HumanLanguage.Helper.getSystemEmailEncoding(HumanLanguage language) |
static String |
LocalizerFactory.getTranslatedLanguageLabel(HumanLanguage language)
Return the translated name of the language.
|
static LabelSetDescriptorImpl |
LabelSetDescriptorImpl.getWithMultipleRoots(com.google.common.base.Function<HumanLanguage,URL> rootMap,
HumanLanguage baseLanguage,
String setName,
String basename,
String dictionaryName)
Construct a LabelSetDescriptor with a function to determine the root per language
instead of a fixed one
|
static boolean |
HumanLanguage.Helper.hasTurkicCaseFolding(HumanLanguage language) |
static boolean |
HumanLanguage.Helper.isSimplifiedChinese(HumanLanguage language) |
static String |
HumanLanguage.Helper.toFoldedCase(HumanLanguage language,
String input)
Return the value with the "case folded" using the unicode algorithm
for lowercase based on the current user language
|
| Modifier and Type | Method and Description |
|---|---|
static LabelSetDescriptorImpl |
LabelSetDescriptorImpl.getWithMultipleRoots(com.google.common.base.Function<HumanLanguage,URL> rootMap,
HumanLanguage baseLanguage,
String setName,
String basename,
String dictionaryName)
Construct a LabelSetDescriptor with a function to determine the root per language
instead of a fixed one
|
| Constructor and Description |
|---|
BaseLocalizer(Locale locale,
Locale currencyLocale,
TimeZone timeZone,
HumanLanguage language,
SharedLabelSet labelSet)
This constructor is used to create a BaseLocalizer
|
Helper(HumanLanguage base,
List<? extends HumanLanguage> languages) |
LabelSetDescriptorImpl(URL rootDirectory,
HumanLanguage language,
String labelSetName)
Construct a LabelSetDescriptor for the given labelSetName.
|
LabelSetDescriptorImpl(URL rootDirectory,
HumanLanguage language,
String setName,
String basename,
String dictionaryName)
Constructor to override the default file basename with the specified basename.
|
| Constructor and Description |
|---|
Helper(HumanLanguage base,
List<? extends HumanLanguage> languages) |
| Modifier and Type | Method and Description |
|---|---|
HumanLanguage |
LanguageDictionary.getLanguage() |
HumanLanguage |
LanguageDeclension.getLanguage() |
| Modifier and Type | Method and Description |
|---|---|
LabelSet |
GrammaticalLocalizerFactory.findLabelSet(HumanLanguage language) |
BaseLocalizer |
GrammaticalLocalizerFactory.getLocalizer(Locale locale,
Locale currencyLocale,
HumanLanguage language,
TimeZone timeZone) |
Noun |
RenamingProvider.getNoun(HumanLanguage language,
Renameable key)
Get a renamed noun for the given renameable, or the standard noun if there isn't
a renamed noun for that object.
|
Noun |
RenamingProvider.getPackagedNoun(HumanLanguage language,
String key)
Get the "original" noun for a non standard key, in case there is some other "standard" label for it
|
Noun |
RenamingProvider.getRenamedNoun(HumanLanguage language,
String key)
Get a renamed "standard" noun
|
GrammaticalLabelSet |
GrammaticalLabelSetProvider.getSet(HumanLanguage language) |
boolean |
RenamingProvider.isRenamed(HumanLanguage language,
String key) |
| Constructor and Description |
|---|
ArticledDeclension(HumanLanguage language) |
GrammaticalLocalizer(Locale locale,
Locale currencyLocale,
TimeZone timeZone,
HumanLanguage language,
GrammaticalLabelSet labelSet) |
LanguageDeclension(HumanLanguage language) |
LanguageDictionary(HumanLanguage language) |
| Modifier and Type | Method and Description |
|---|---|
LanguageDeclension |
LanguageDeclensionFactory.getDeclension(HumanLanguage language) |
| Constructor and Description |
|---|
AlbanianDeclension(HumanLanguage language) |
EsperantoDeclension(HumanLanguage language) |
TamilDeclension(HumanLanguage language) |
| Modifier and Type | Method and Description |
|---|---|
HumanLanguage |
TestLanguageLabelSetDescriptor.getLanguage() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
LabelValidator.getDuplicates(HumanLanguage language) |
LanguageLabelSetDescriptor.GrammaticalLabelSetDescriptor |
TestLanguageLabelSetDescriptor.getForOtherLanguage(HumanLanguage otherLanguage) |
List<String> |
LabelValidator.getInvalidAliases(HumanLanguage language) |
List<String> |
LabelValidator.getInvalidLabels(HumanLanguage language) |
GrammaticalLabelFileParser |
LabelValidator.getParser(HumanLanguage language,
boolean trackDupes) |
GrammaticalLabelSet |
GrammaticalLabelSetLoader.getSet(HumanLanguage userLanguage) |
GrammaticalLabelSet |
LabelValidator.getTestLabelSet(HumanLanguage language,
String text,
String grammarOverride) |
String |
LabelValidator.renderDynamicLabel(HumanLanguage language,
String text,
Renameable... entities) |
String |
LabelValidator.renderLabel(HumanLanguage language,
String text) |
String |
LabelValidator.renderLabel(HumanLanguage language,
String text,
String grammarOverride)
Render the label for the given language with the appropriate override
|
| Modifier and Type | Method and Description |
|---|---|
long |
GrammaticalLabelSetFileCacheLoader.getLastModifiedDate(Collection<HumanLanguage> languages)
Returns the most recent last modified date for the given language and other metadata files such as the udd.
|
| Constructor and Description |
|---|
LanguageDictionaryParser(LanguageLabelSetDescriptor.GrammaticalLabelSetDescriptor dictDesc,
HumanLanguage language,
GrammaticalLabelSetProvider parentProvider)
Parse and load the dictionary for the descriptor with the given language
|
Copyright (c) 2016-2017, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE.txt file in the repository.