use of org.omegat.core.glossaries.IGlossary in project omegat by omegat-org.
the class GlossaryManager method addExternalGlossaryEntries.
private void addExternalGlossaryEntries(List<GlossaryEntry> result, String src) {
Language source = Core.getProject().getProjectProperties().getSourceLanguage();
Language target = Core.getProject().getProjectProperties().getTargetLanguage();
for (IGlossary gl : externalGlossaries) {
try {
result.addAll(gl.search(source, target, src));
} catch (Exception ex) {
Log.log(ex);
}
}
}