i18n: add bundle for idea/framework

This commit is contained in:
Dmitry Gridin
2020-02-21 12:55:39 +07:00
parent 6ad1a9224c
commit a3f1dde413
4 changed files with 21 additions and 2 deletions
@@ -0,0 +1 @@
name.kotlin.sdk=Kotlin SDK
@@ -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.framework
import org.jetbrains.annotations.NonNls
import org.jetbrains.annotations.PropertyKey
import org.jetbrains.kotlin.util.AbstractKotlinBundle
@NonNls
private const val BUNDLE = "messages.KotlinFrameworkBundle"
object KotlinFrameworkBundle : AbstractKotlinBundle(BUNDLE) {
@JvmStatic
fun message(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): String = getMessage(key, *params)
}
@@ -45,7 +45,7 @@ class KotlinSdkType : SdkType("KotlinSDK") {
}
}
override fun getPresentableName() = "Kotlin SDK"
override fun getPresentableName() = KotlinFrameworkBundle.message("name.kotlin.sdk")
override fun getIcon() = KotlinIcons.SMALL_LOGO
@@ -45,7 +45,7 @@ class KotlinSdkType : SdkType("KotlinSDK") {
}
}
override fun getPresentableName() = "Kotlin SDK"
override fun getPresentableName() = KotlinFrameworkBundle.message("name.kotlin.sdk")
override fun getIcon() = KotlinIcons.SMALL_LOGO