i18n: update bundle in `idea-maven

#KT-37483
This commit is contained in:
Dmitry Gridin
2020-03-27 14:31:39 +07:00
parent ab07fa5f6c
commit c642ca45de
7 changed files with 34 additions and 40 deletions
@@ -5,9 +5,9 @@ configure.javascript.with.maven=JavaScript with Maven
version.different.maven.ide=Kotlin version that is used for building with Maven ({0}) differs from the one bundled into the IDE plugin ({1})
version.different.plugin.library=Plugin version ({0}) is not the same as library version ({1})
change.version=Change version
change.version.to=Change version to {0}
change.version.to.resolved=Change version to {0} ({1})
fix.set.version.family=Change version
fix.set.version.name=Change version to {0}
fix.set.version.name1=Change version to {0} ({1})
error.cant.find.pom.for.module=Cannot find pom.xml for module ''{0}''
@@ -31,24 +31,24 @@ inspection.javascript.no.stdlib.dependency=Kotlin/JavaScript compiler configured
inspection.configured.no.execution=You have {0} configured but no corresponding plugin execution
inspection.same.execution.compile.test=It is not recommended to have both 'compile' and 'test' goals in the same execution
fix.create.execution.name="Create {0} execution
fix.create.execution.family="Create Kotlin execution
fix.add.execution.name="Create {0} execution
fix.add.execution.family="Create Kotlin execution
fix.change.phase.name=Change phase to {0}
fix.change.phase.family=Change phase
fix.execution.phase.name=Change phase to {0}
fix.execution.phase.family=Change phase
fix.configure.right.order=Configure maven-compiler-plugin executions in the right order
fix.add.java.executions.name=Configure maven-compiler-plugin executions in the right order
fix.add.dependency.name=Add ''{0}'' dependency
fix.add.dependency.family=Add dependency
fix.add.stdlib.name=Add ''{0}'' dependency
fix.add.stdlib.family=Add dependency
fix.create.execution.compiler.name=Create ''{0}'' execution of kotlin-maven-compiler
fix.create.execution.compiler.family=Create Kotlin execution
fix.configure.plugin.execution.name=Create ''{0}'' execution of kotlin-maven-compiler
fix.configure.plugin.execution.family=Create Kotlin execution
fix.add.maven.dependency.name=Add Maven dependency…
fix.kotlin.test.junit.is.recommended='kotlin-test-junit' is recommended
fix.kotlin.test.junit.replace=Replace with 'kotlin-test-junit'
fix.replace.to.kotlin.test.name=Replace with 'kotlin-test-junit'
fix.move.to.compile.execution=Move to 'compile' execution
fix.move.to.build.sourceDirectory.tag=Move to 'build' > 'sourceDirectory' tag
fix.move.to.execution.family=Move to 'compile' execution
fix.move.to.build.family=Move to 'build' > 'sourceDirectory' tag
@@ -34,7 +34,7 @@ import org.jetbrains.kotlin.psi.psiUtil.getParentOfType
import org.jetbrains.kotlin.psi.psiUtil.parentsWithSelf
class MavenPluginSourcesMoveToExecutionIntention : PsiElementBaseIntentionAction() {
override fun getFamilyName() = KotlinMavenBundle.message("fix.move.to.compile.execution")
override fun getFamilyName() = KotlinMavenBundle.message("fix.move.to.execution.family")
override fun getText() = familyName
override fun isAvailable(project: Project, editor: Editor, element: PsiElement): Boolean {
@@ -96,7 +96,7 @@ class MavenPluginSourcesMoveToExecutionIntention : PsiElementBaseIntentionAction
}
class MavenPluginSourcesMoveToBuild : PsiElementBaseIntentionAction() {
override fun getFamilyName() = KotlinMavenBundle.message("fix.move.to.build.sourceDirectory.tag")
override fun getFamilyName() = KotlinMavenBundle.message("fix.move.to.build.family")
override fun getText() = familyName
override fun isAvailable(project: Project, editor: Editor, element: PsiElement): Boolean {
@@ -30,12 +30,7 @@ import org.jetbrains.kotlin.idea.versions.getStdlibArtifactId
import org.jetbrains.kotlin.platform.TargetPlatform
import org.jetbrains.kotlin.platform.jvm.JvmPlatforms
class KotlinJavaMavenConfigurator : KotlinMavenConfigurator(
TEST_LIB_ID,
false,
NAME,
PRESENTABLE_TEXT
) {
class KotlinJavaMavenConfigurator : KotlinMavenConfigurator(TEST_LIB_ID, false, NAME, PRESENTABLE_TEXT) {
override fun isKotlinModule(module: Module) =
hasKotlinJvmRuntimeInScope(module)
@@ -77,6 +72,6 @@ class KotlinJavaMavenConfigurator : KotlinMavenConfigurator(
companion object {
private const val NAME = "maven"
const val TEST_LIB_ID = "kotlin-test"
private val PRESENTABLE_TEXT = KotlinMavenBundle.message("configure.java.with.maven")
private val PRESENTABLE_TEXT get() = KotlinMavenBundle.message("configure.java.with.maven")
}
}
@@ -25,8 +25,7 @@ import org.jetbrains.kotlin.idea.versions.MAVEN_JS_STDLIB_ID
import org.jetbrains.kotlin.platform.TargetPlatform
import org.jetbrains.kotlin.platform.js.JsPlatforms
class KotlinJavascriptMavenConfigurator :
KotlinMavenConfigurator(null, false, NAME, PRESENTABLE_TEXT) {
class KotlinJavascriptMavenConfigurator : KotlinMavenConfigurator(null, false, NAME, PRESENTABLE_TEXT) {
override fun getStdlibArtifactId(module: Module, version: String) = MAVEN_JS_STDLIB_ID
@@ -53,6 +52,6 @@ class KotlinJavascriptMavenConfigurator :
companion object {
private const val NAME = "js maven"
private val PRESENTABLE_TEXT = KotlinMavenBundle.message("configure.javascript.with.maven")
private val PRESENTABLE_TEXT get() = KotlinMavenBundle.message("configure.javascript.with.maven")
}
}
@@ -87,11 +87,11 @@ class DifferentMavenStdlibVersionInspection : DomElementsInspection<MavenDomProj
private class SetVersionQuickFix(val versionElement: GenericDomValue<*>, val newVersion: String, val versionResolved: String?) :
LocalQuickFix {
override fun getName() = when (versionResolved) {
null -> KotlinMavenBundle.message("change.version.to", newVersion)
else -> KotlinMavenBundle.message("change.version.to.resolved", newVersion, versionResolved)
null -> KotlinMavenBundle.message("fix.set.version.name", newVersion)
else -> KotlinMavenBundle.message("fix.set.version.name1", newVersion, versionResolved)
}
override fun getFamilyName() = KotlinMavenBundle.message("change.version")
override fun getFamilyName() = KotlinMavenBundle.message("fix.set.version.family")
override fun applyFix(project: Project, descriptor: ProblemDescriptor) {
versionElement.value = newVersion
@@ -194,9 +194,9 @@ class KotlinMavenPluginPhaseInspection : DomElementsInspection<MavenDomProjectMo
) : LocalQuickFix {
private val pointer = file.createSmartPointer()
override fun getName() = KotlinMavenBundle.message("fix.create.execution.name", goal)
override fun getName() = KotlinMavenBundle.message("fix.add.execution.name", goal)
override fun getFamilyName() = KotlinMavenBundle.message("fix.create.execution.family")
override fun getFamilyName() = KotlinMavenBundle.message("fix.add.execution.family")
override fun applyFix(project: Project, descriptor: ProblemDescriptor) {
val file = pointer.element ?: return
@@ -206,9 +206,9 @@ class KotlinMavenPluginPhaseInspection : DomElementsInspection<MavenDomProjectMo
}
private class FixExecutionPhaseLocalFix(val execution: MavenDomPluginExecution, val newPhase: String) : LocalQuickFix {
override fun getName() = KotlinMavenBundle.message("fix.change.phase.name", newPhase)
override fun getName() = KotlinMavenBundle.message("fix.execution.phase.name", newPhase)
override fun getFamilyName() = KotlinMavenBundle.message("fix.change.phase.family")
override fun getFamilyName() = KotlinMavenBundle.message("fix.execution.phase.family")
override fun applyFix(project: Project, descriptor: ProblemDescriptor) {
execution.phase.value = newPhase
@@ -218,7 +218,7 @@ class KotlinMavenPluginPhaseInspection : DomElementsInspection<MavenDomProjectMo
private class AddJavaExecutionsLocalFix(val module: Module, file: XmlFile, val kotlinPlugin: MavenDomPlugin) : LocalQuickFix {
private val pointer = file.createSmartPointer()
override fun getName() = KotlinMavenBundle.message("fix.configure.right.order")
override fun getName() = KotlinMavenBundle.message("fix.add.java.executions.name")
override fun getFamilyName() = name
override fun applyFix(project: Project, descriptor: ProblemDescriptor) {
@@ -230,8 +230,8 @@ class KotlinMavenPluginPhaseInspection : DomElementsInspection<MavenDomProjectMo
private class FixAddStdlibLocalFix(pomFile: XmlFile, val id: String, val version: String?) : LocalQuickFix {
private val pointer = pomFile.createSmartPointer()
override fun getName() = KotlinMavenBundle.message("fix.add.dependency.name", id)
override fun getFamilyName() = KotlinMavenBundle.message("fix.add.dependency.family")
override fun getName() = KotlinMavenBundle.message("fix.add.stdlib.name", id)
override fun getFamilyName() = KotlinMavenBundle.message("fix.add.stdlib.family")
override fun applyFix(project: Project, descriptor: ProblemDescriptor) {
val file = pointer.element ?: return
@@ -247,8 +247,8 @@ class KotlinMavenPluginPhaseInspection : DomElementsInspection<MavenDomProjectMo
) : LocalQuickFix {
private val pointer = xmlFile.createSmartPointer()
override fun getName() = KotlinMavenBundle.message("fix.create.execution.compiler.name", goal)
override fun getFamilyName() = KotlinMavenBundle.message("fix.create.execution.compiler.family")
override fun getName() = KotlinMavenBundle.message("fix.configure.plugin.execution.name", goal)
override fun getFamilyName() = KotlinMavenBundle.message("fix.configure.plugin.execution.family")
override fun applyFix(project: Project, descriptor: ProblemDescriptor) {
val file = pointer.element ?: return
@@ -49,7 +49,7 @@ class KotlinTestJUnitInspection : DomElementsInspection<MavenDomProjectModel>(Ma
}
private class ReplaceToKotlinTest(val dependency: MavenDomDependency) : LocalQuickFix {
override fun getName() = KotlinMavenBundle.message("fix.kotlin.test.junit.replace")
override fun getName() = KotlinMavenBundle.message("fix.replace.to.kotlin.test.name")
override fun getFamilyName() = name
override fun applyFix(project: Project, descriptor: ProblemDescriptor) {