if (translations.length % 2 != 0) {
throw new AssertionError(
"Translation parameters should be given in pairs.");
}
MessageStreamParser messageParser =
new MessageStreamParser(new StringReader(poFileContents));
List<String> found = new ArrayList<String>(translations.length);
// Assert that all the given translations are present
while (messageParser.hasNext()) {
Message message = messageParser.next();
if (!message.isHeader()) {
// Find the message id in the array given to check
int foundAt = 0;
while (foundAt < translations.length) {