Revision 61c51c84
Added by Patrick Plitzner about 7 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/container/EditorAnnotation.java | ||
---|---|---|
13 | 13 |
import org.eclipse.swt.widgets.Canvas; |
14 | 14 |
|
15 | 15 |
import eu.etaxonomy.cdm.strategy.parser.ParserProblem; |
16 |
import eu.etaxonomy.taxeditor.editor.Messages; |
|
16 | 17 |
import eu.etaxonomy.taxeditor.model.ImageResources; |
17 | 18 |
|
18 | 19 |
/** |
... | ... | |
137 | 138 |
@Override |
138 | 139 |
public String getText() { |
139 | 140 |
if (EditorAnnotationType.ERROR.name().equals(getType())) { |
140 |
return "Error: " + text;
|
|
141 |
return Messages.EditorAnnotation_ERROR + text;
|
|
141 | 142 |
} |
142 | 143 |
if (EditorAnnotationType.WARNING.name().equals(getType())) { |
143 |
return "Warning: " + text;
|
|
144 |
return Messages.EditorAnnotation_WARNING + text;
|
|
144 | 145 |
} |
145 | 146 |
return super.getText(); |
146 | 147 |
} |
Also available in: Unified diff
ref #4611 i18n for taxeditor.editor plugin