i18n: add bundle for idea/roots
This commit is contained in:
@@ -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)
|
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)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user