return poReader.extractTarget(new InputSource(fileContents));
}
private Resource parsePotFile(InputStream fileContents, String docId,
boolean offlinePo) {
PoReader2 poReader = new PoReader2(offlinePo);
// assume english as source locale
Resource res =
poReader.extractTemplate(new InputSource(fileContents),
new LocaleId("en"), docId);
return res;
}