diff --git a/idea/resources/messages/KotlinRootsBundle.properties b/idea/resources/messages/KotlinRootsBundle.properties new file mode 100644 index 00000000000..427d2fa77e7 --- /dev/null +++ b/idea/resources/messages/KotlinRootsBundle.properties @@ -0,0 +1 @@ +description.text.update.source.roots.for.non.jvm.modules.in.kotlin.project=Update source roots for non-JVM modules in Kotlin project \ No newline at end of file diff --git a/idea/src/org/jetbrains/kotlin/idea/roots/KotlinNonJvmSourceRootConverterProvider.kt b/idea/src/org/jetbrains/kotlin/idea/roots/KotlinNonJvmSourceRootConverterProvider.kt index 4ca67328911..fced0108f06 100644 --- a/idea/src/org/jetbrains/kotlin/idea/roots/KotlinNonJvmSourceRootConverterProvider.kt +++ b/idea/src/org/jetbrains/kotlin/idea/roots/KotlinNonJvmSourceRootConverterProvider.kt @@ -218,7 +218,8 @@ class KotlinNonJvmSourceRootConverterProvider : ConverterProvider("kotlin-non-jv } } - override fun getConversionDescription() = "Update source roots for non-JVM modules in Kotlin project" + override fun getConversionDescription() = + KotlinRootsBundle.message("description.text.update.source.roots.for.non.jvm.modules.in.kotlin.project") override fun createConverter(context: ConversionContext) = ConverterImpl(context) } \ No newline at end of file diff --git a/idea/src/org/jetbrains/kotlin/idea/roots/KotlinRootsBundle.kt b/idea/src/org/jetbrains/kotlin/idea/roots/KotlinRootsBundle.kt new file mode 100644 index 00000000000..f6193edf532 --- /dev/null +++ b/idea/src/org/jetbrains/kotlin/idea/roots/KotlinRootsBundle.kt @@ -0,0 +1,18 @@ +/* + * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.idea.roots + +import org.jetbrains.annotations.NonNls +import org.jetbrains.annotations.PropertyKey +import org.jetbrains.kotlin.util.AbstractKotlinBundle + +@NonNls +private const val BUNDLE = "messages.KotlinRootsBundle" + +object KotlinRootsBundle : AbstractKotlinBundle(BUNDLE) { + @JvmStatic + fun message(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): String = getMessage(key, *params) +}