2020
2121package com.demonwav.mcdev.creator.buildsystem
2222
23+ import com.demonwav.mcdev.asset.MCDevBundle
2324import com.demonwav.mcdev.creator.storeToData
2425import com.demonwav.mcdev.util.SemanticVersion
2526import com.intellij.ide.wizard.AbstractNewProjectWizardStep
@@ -37,11 +38,11 @@ import com.intellij.ui.dsl.builder.bindText
3738import com.intellij.ui.dsl.builder.columns
3839import com.intellij.ui.dsl.builder.textValidation
3940
40- private val nonExampleValidation = validationErrorIf<String >(" Group ID must be changed from \" org.example \" " ) {
41+ private val nonExampleValidation = validationErrorIf<String >(MCDevBundle .message( " creator.validation.group_id_non_example " ) ) {
4142 it == " org.example"
4243}
4344
44- private val versionValidation = validationErrorIf<String >(" Version must be a valid semantic version " ) {
45+ private val versionValidation = validationErrorIf<String >(MCDevBundle .message( " creator.validation.semantic_version " ) ) {
4546 SemanticVersion .tryParse(it) == null
4647}
4748
@@ -66,22 +67,22 @@ class BuildSystemPropertiesStep<ParentStep>(private val parent: ParentStep) : Ab
6667 private fun suggestArtifactId () = parent.name
6768
6869 override fun setupUI (builder : Panel ) {
69- builder.collapsibleGroup(" Build System Properties " ) {
70- row(" Group ID: " ) {
70+ builder.collapsibleGroup(MCDevBundle .message( " creator.ui.group.title " ) ) {
71+ row(MCDevBundle .message( " creator.ui.group.group_id " ) ) {
7172 textField()
7273 .bindText(groupIdProperty)
7374 .columns(COLUMNS_MEDIUM )
7475 .validationRequestor(AFTER_GRAPH_PROPAGATION (propertyGraph))
7576 .textValidation(CHECK_NON_EMPTY , CHECK_GROUP_ID , nonExampleValidation)
7677 }
77- row(" Artifact ID: " ) {
78+ row(MCDevBundle .message( " creator.ui.group.artifact_id " ) ) {
7879 textField()
7980 .bindText(artifactIdProperty)
8081 .columns(COLUMNS_MEDIUM )
8182 .validationRequestor(AFTER_GRAPH_PROPAGATION (propertyGraph))
8283 .textValidation(CHECK_NON_EMPTY , CHECK_ARTIFACT_ID )
8384 }
84- row(" Version: " ) {
85+ row(MCDevBundle .message( " creator.ui.group.version " ) ) {
8586 textField()
8687 .bindText(versionProperty)
8788 .columns(COLUMNS_MEDIUM )
0 commit comments