|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.kmelia.export.ODTDocumentTextTranslator
public class ODTDocumentTextTranslator
It is a translator of text containing in some parts of an ODT documents. It is instanciated for a given localized resource bundle from which it will fetch the translated text. Currently it translates all the header, footer, paragraphs and tables in an ODT document. Instances of this class are mainly used to translate predefined text in templates in the ODT format. The text to translate is refered in the document as a key in the backed resource bundle. If the key exists, it is replaced in the ODT document by its associated translation.
Method Summary | |
---|---|
static ODTDocumentTextTranslator |
aTranslatorWith(com.stratelia.webactiv.util.ResourceLocator bundle)
Creates a translator of ODT texts with the specified localized resource bundle. |
void |
translate(org.odftoolkit.simple.TextDocument document)
Translates the specified ODT document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ODTDocumentTextTranslator aTranslatorWith(com.stratelia.webactiv.util.ResourceLocator bundle)
bundle
- the bundle to use for translating texts.
public void translate(org.odftoolkit.simple.TextDocument document)
document
- the document to translate.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |