public class GrammaticalLocalizerFactory extends LocalizerFactory
| Constructor and Description |
|---|
GrammaticalLocalizerFactory(GrammaticalLabelSetLoader loader) |
| Modifier and Type | Method and Description |
|---|---|
void |
doLabelProviderPostInit() |
LabelSet |
findLabelSet(HumanLanguage language) |
URL |
getLabelsDirectory() |
static GrammaticalLabelSetLoader |
getLoader(LanguageLabelSetDescriptor.GrammaticalLabelSetDescriptor desc,
GrammaticalLabelSetProvider parent)
Helper method you can use to correctly provide the right "loader" for your labels
|
BaseLocalizer |
getLocalizer(Locale locale,
Locale currencyLocale,
HumanLanguage language,
TimeZone timeZone)
Get a localizer based on a locale, a currency, a language and a timezone.
|
void |
initEnglishLabelProvider() |
void |
initLabelProvider() |
void |
resetLabels()
This is for debugging purposes only! Do not call this if you don't know why this is here.
|
get, getDefaultLanguage, getDefaultLocale, getDefaultLocalizer, getEnglishLocalizer, getLabelLocalizer, getLocalizer, getLocalizer, getTranslatedLanguageLabel, setpublic GrammaticalLocalizerFactory(GrammaticalLabelSetLoader loader)
public static GrammaticalLabelSetLoader getLoader(LanguageLabelSetDescriptor.GrammaticalLabelSetDescriptor desc, GrammaticalLabelSetProvider parent)
desc - the label set descriptor to loadparent - the optional parent of the label set for fallback labelspublic LabelSet findLabelSet(HumanLanguage language)
public BaseLocalizer getLocalizer(Locale locale, Locale currencyLocale, HumanLanguage language, TimeZone timeZone)
LocalizerProviderpublic void initLabelProvider()
public void initEnglishLabelProvider()
public URL getLabelsDirectory()
public void resetLabels()
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.