Wizard: minor, move message to bundle

This commit is contained in:
Ilya Kirillov
2020-04-24 21:32:13 +03:00
parent 1a68e40ebd
commit ccb8a93ee3
2 changed files with 2 additions and 1 deletions
@@ -1,6 +1,7 @@
generator.title=Kotlin (Experimental Wizard) generator.title=Kotlin (Experimental Wizard)
error.nothing.selected=Select a module to configure error.nothing.selected=Select a module to configure
error.generation=Project generation error
project.preview=Project Structure project.preview=Project Structure
additional.buildsystem.settings.kotlin.runtime=Kotlin Runtime additional.buildsystem.settings.kotlin.runtime=Kotlin Runtime
@@ -100,7 +100,7 @@ class NewProjectWizardModuleBuilder : EmptyModuleBuilder() {
phases = GenerationPhase.startingFrom(GenerationPhase.FIRST_STEP) phases = GenerationPhase.startingFrom(GenerationPhase.FIRST_STEP)
).onFailure { errors -> ).onFailure { errors ->
val errorMessages = errors.joinToString(separator = "\n") { it.message } val errorMessages = errors.joinToString(separator = "\n") { it.message }
Messages.showErrorDialog(project, errorMessages, "The following errors arose during project generation") Messages.showErrorDialog(project, errorMessages, KotlinNewProjectWizardUIBundle.message("error.generation"))
}.isSuccess }.isSuccess
if (success) { if (success) {
val projectCreationStats = ProjectCreationStats( val projectCreationStats = ProjectCreationStats(