public class Translator
extends java.lang.Object
Constructor and Description |
---|
Translator(Engine engine)
Create a new translator for the given Engine.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
listLabels(boolean useParagraph)
Returns all strings that can be translated (i.e. labels, prompts and report title).
|
void |
translate(java.util.ResourceBundle languageResource,
boolean useParagraph)
Translate all labels and the report title of the engine.
|
public Translator(Engine engine)
engine
- the Engine, the instance must not be null and the instance must not have been executed and must hold a loaded
reportpublic java.util.Set<java.lang.String> listLabels(boolean useParagraph) throws ReportException
useParagraph
- true, then a paragraph is translated in one step.ReportException
- if Engine is finished or no report is set.Translations.setUseParagraph(boolean)
public void translate(java.util.ResourceBundle languageResource, boolean useParagraph) throws ReportException
languageResource
- the translation resourceuseParagraph
- true, then a paragraph is translated in one step.ReportException
- if Engine is finished or no report is set.Translations.setUseParagraph(boolean)
Copyright © 1999-2020 by i-net software GmbH