[i18n] Compilation finished message better i18n

GitOrigin-RevId: 5d883ab3d81d9f5c1e5261b067e33231ef709cd0
This commit is contained in:
Tagir Valeev
2020-08-10 12:41:05 +07:00
committed by intellij-monorepo-bot
parent c4144fd203
commit b8d808ca0d
2 changed files with 8 additions and 7 deletions

View File

@@ -555,15 +555,16 @@ public final class CompileDriver {
message = JavaCompilerBundle.message("status.all.up.to.date");
}
else {
String durationString = StringUtil.formatDurationApproximate(duration);
if (status == ExitStatus.SUCCESS) {
message = warningCount > 0
? JavaCompilerBundle.message("status.compilation.completed.successfully.with.warnings", warningCount)
: JavaCompilerBundle.message("status.compilation.completed.successfully");
? JavaCompilerBundle.message("status.compilation.completed.successfully.with.warnings", warningCount, durationString)
: JavaCompilerBundle.message("status.compilation.completed.successfully", durationString);
}
else {
message = JavaCompilerBundle.message("status.compilation.completed.successfully.with.warnings.and.errors", errorCount, warningCount);
message = JavaCompilerBundle.message("status.compilation.completed.successfully.with.warnings.and.errors",
errorCount, warningCount, durationString);
}
message = message + " in " + StringUtil.formatDurationApproximate(duration);
}
return message;
}

View File

@@ -26,9 +26,9 @@ compiler.content.name.rebuild=Rebuild
compiler.content.name.recompile=Recompile
compiler.content.name.make=Build
modules.classpath.title=Dependencies
status.compilation.completed.successfully.with.warnings=Build completed successfully with {0} {0,choice, 0#warnings|1#warning|2#warnings}
status.compilation.completed.successfully=Build completed successfully
status.compilation.completed.successfully.with.warnings.and.errors=Build completed with {0} {0,choice, 0#errors|1#error|2#errors} and {1} {1,choice, 0#warnings|1#warning|2#warnings}
status.compilation.completed.successfully.with.warnings=Build completed successfully with {0} {0,choice, 0#warnings|1#warning|2#warnings} in {1}
status.compilation.completed.successfully=Build completed successfully in {0}
status.compilation.completed.successfully.with.warnings.and.errors=Build completed with {0} {0,choice, 0#errors|1#error|2#errors} and {1} {1,choice, 0#warnings|1#warning|2#warnings} in {2}
progress.executing.precompile.tasks=Executing pre-compile tasks...
progress.executing.postcompile.tasks=Executing post-compile tasks...
error.chunk.modules.must.have.same.jdk=The following modules must have the same JDK assigned because of cyclic dependencies between them:\n{0}\nPlease update modules configuration