boolean treatSourceCommentsAsTarget) throws IOException {
if (sourceLang == null || transLang == null) {
throw new ZanataServiceException(
"Mandatory fields for PO file format: Source Language and Target Language");
}
GlossaryPoReader poReader =
new GlossaryPoReader(sourceLang, transLang,
treatSourceCommentsAsTarget, BATCH_SIZE);
return poReader.extractGlossary(new InputStreamReader(fileContents));
}