public class TemplateTranslationVisitor extends TemplateVisitor
Constructor and Description |
---|
TemplateTranslationVisitor(String i18nPrefix) |
Modifier and Type | Method and Description |
---|---|
protected void |
visitAttribute(String i18nKeyPrefix,
Element element,
String attributeName)
Translate the text value in an attribute of this element if there is i18n text.
|
protected void |
visitElement(String i18nKeyPrefix,
Element element)
Translate the text in this element if there is i18n text.
|
getElementKey, getI18nValues, getOrGenerateTranslationKey, hasAttribute, isTextOnly, setI18nPrefix, visit
public TemplateTranslationVisitor(String i18nPrefix)
protected void visitElement(String i18nKeyPrefix, Element element)
visitElement
in class TemplateVisitor
i18nKeyPrefix
- The template prefix for the i18n keyelement
- The element to be translatedprotected void visitAttribute(String i18nKeyPrefix, Element element, String attributeName)
visitAttribute
in class TemplateVisitor
i18nKeyPrefix
- The template prefix for the i18n keyelement
- The element containing the attribute to be translatedattributeName
- The name of the attribute to be translatedCopyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.