Search in sources :

Example 1 with IGlossary

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);
        }
    }
}
Also used : Language(org.omegat.util.Language) IGlossary(org.omegat.core.glossaries.IGlossary)

Aggregations

IGlossary (org.omegat.core.glossaries.IGlossary)1 Language (org.omegat.util.Language)1