i18n: add bundle for idea/framework
This commit is contained in:
@@ -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
|
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
|
override fun getIcon() = KotlinIcons.SMALL_LOGO
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user