i18n: add bundle for idea/roots

This commit is contained in:
Dmitry Gridin
2020-02-21 16:37:34 +07:00
parent 947cb6c5c8
commit e778a3fe34
3 changed files with 21 additions and 1 deletions
@@ -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
@@ -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)
}
@@ -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)
}