public class I18nTransformer extends I18nTransformer implements Contextualizable
plugin : when specified and when the given plugin exists, the default catalogue id is set to plugin.plugin
workspace : when specified and when the given workspace exists, the default catalogue id is set to workspace.workspace
I18nTransformer.CatalogueInfo| Modifier and Type | Field and Description |
|---|---|
protected Context |
_context
Cocoon context
|
CURRENCY_LOCALE_ATTRIBUTE, factory, I18N_ATTR_ATTRIBUTE, I18N_CATALOGUE_ATTRIBUTE, I18N_CHOOSE_ELEMENT, I18N_CURRENCY_ELEMENT, I18N_CURRENCY_NO_UNIT_ELEMENT, I18N_DATE_ELEMENT, I18N_DATE_TIME_ELEMENT, I18N_DEFAULT_CATALOGUE_ID, I18N_EXPR_ATTRIBUTE, I18N_FRACTION_DIGITS_ATTRIBUTE, I18N_IF_ELEMENT, I18N_INT_CURRENCY_ELEMENT, I18N_INT_CURRENCY_NO_UNIT_ELEMENT, I18N_KEY_ATTRIBUTE, I18N_LOCALE, I18N_LOCALE_ATTRIBUTE, I18N_NAMESPACE_URI, I18N_NUMBER_ELEMENT, I18N_OLD_NAMESPACE_URI, I18N_OTHERWISE_ELEMENT, I18N_PARAM_ELEMENT, I18N_PARAM_NAME_ATTRIBUTE, I18N_PATTERN_ATTRIBUTE, I18N_PERCENT_ELEMENT, I18N_PRELOAD, I18N_SRC_LOCALE_ATTRIBUTE, I18N_SRC_PATTERN_ATTRIBUTE, I18N_TEXT_ELEMENT, I18N_TIME_ELEMENT, I18N_TRANSLATE_ELEMENT, I18N_TYPE_ATTRIBUTE, I18N_UNTRANSLATED, I18N_VALUE_ATTRIBUTE, I18N_WHEN_ELEMENT, locale, manager, objectModelcontentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumerROLE| Constructor and Description |
|---|
I18nTransformer() |
| Modifier and Type | Method and Description |
|---|---|
private void |
_configurePlugins(DefaultConfiguration catalogues) |
private void |
_configureWorkspaces(DefaultConfiguration catalogues) |
void |
configure(Configuration conf) |
void |
contextualize(Context context) |
protected ParamSaxBuffer |
getMessage(String catalogueID,
String key) |
protected ParamSaxBuffer |
getUntranslatedMessage(String catalogueID,
String key)
Retrieve the message when the key is not found
|
void |
setup(SourceResolver resolver,
Map objModel,
String source,
Parameters parameters) |
characters, dispose, endElement, endPrefixMapping, getKey, getLocale, getValidity, recycle, service, startElement, startPrefixMappingcomment, endCDATA, endDocument, endDTD, endEntity, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startEntitysetConsumer, setContentHandler, setLexicalHandlerenableLogging, getLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitendDocument, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocumentcomment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntitysetConsumerpublic I18nTransformer()
public void contextualize(Context context) throws ContextException
contextualize in interface ContextualizableContextExceptionpublic void configure(Configuration conf) throws ConfigurationException
configure in interface Configurableconfigure in class I18nTransformerConfigurationExceptionprivate void _configurePlugins(DefaultConfiguration catalogues)
private void _configureWorkspaces(DefaultConfiguration catalogues)
public void setup(SourceResolver resolver, Map objModel, String source, Parameters parameters) throws ProcessingException, SAXException, IOException
setup in interface SitemapModelComponentsetup in class I18nTransformerProcessingExceptionSAXExceptionIOExceptionprotected ParamSaxBuffer getMessage(String catalogueID, String key)
getMessage in class I18nTransformerprotected ParamSaxBuffer getUntranslatedMessage(String catalogueID, String key)
catalogueID - The catalogue idkey - The i18n key