Message file verifier: allow to simply enter the language code instead of full path

- To check a single file just enter the language file, e.g. "es"
- Pass File object to MessageFileVerifier instead of String path that will be constructed to a File again...
This commit is contained in:
ljacqu
2016-10-01 11:02:24 +02:00
parent 8d64c0e5bf
commit 113a3f346c
5 changed files with 31 additions and 34 deletions
@@ -89,7 +89,7 @@ public class ImportMessagesTask implements ToolTask {
throw new IllegalStateException(e);
}
MessageFileVerifier verifier = new MessageFileVerifier(fileName);
MessageFileVerifier verifier = new MessageFileVerifier(file);
VerifyMessagesTask.verifyFileAndAddKeys(verifier, YamlConfiguration.loadConfiguration(
new File(MESSAGES_FOLDER + "messages_en.yml")));
}