Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: messages of missing/incorrect locale cannot be translated #915

Merged
merged 1 commit into from
Nov 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/com/adobe/epubcheck/tool/EpubChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ else if (args[i].equals("--locale"))
{
if(args[i + 1].startsWith("-"))
{
System.err.println(String.format(messages.get("incorrect_locale"), args[i + 1], "incorrect"));
System.err.println(String.format(messages.get("incorrect_locale"), args[i + 1]));
displayHelp();
return false;
}
Expand All @@ -839,7 +839,7 @@ else if (args[i].equals("--locale"))
}
else
{
System.err.println(String.format(messages.get("incorrect_locale"), "", "missing"));
System.err.println(String.format(messages.get("missing_locale")));
displayHelp();
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ error_creating_config_file=Error creating config file '%1$s'.
expected_message_filename=Expected the Custom message file name, but found '%1$s'
unrecognized_argument=Unrecognized argument: '%1$s'
epubcheck_version_text=EPUBCheck v%1$s
incorrect_locale=Argument '%1$s' to the --locale option is %2$s.
incorrect_locale=Argument '%1$s' to the --locale option is incorrect.
missing_locale=Argument to the --locale option is missing.

help_text = \
EPUBCheck v%1$s\n\n\
Expand Down