From d64421425107d5e18e22d904b7547e235bb500f9 Mon Sep 17 00:00:00 2001 From: Dmitry Gridin Date: Tue, 18 Feb 2020 18:14:23 +0700 Subject: [PATCH] i18n: add bundle for ide-common --- .../messages/KotlinIdeCommonBundle.properties | 0 .../kotlin/util/KotlinIdeCommonBundle.kt | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 idea/ide-common/resources/messages/KotlinIdeCommonBundle.properties create mode 100644 idea/ide-common/src/org/jetbrains/kotlin/util/KotlinIdeCommonBundle.kt diff --git a/idea/ide-common/resources/messages/KotlinIdeCommonBundle.properties b/idea/ide-common/resources/messages/KotlinIdeCommonBundle.properties new file mode 100644 index 00000000000..e69de29bb2d diff --git a/idea/ide-common/src/org/jetbrains/kotlin/util/KotlinIdeCommonBundle.kt b/idea/ide-common/src/org/jetbrains/kotlin/util/KotlinIdeCommonBundle.kt new file mode 100644 index 00000000000..503a0fccddd --- /dev/null +++ b/idea/ide-common/src/org/jetbrains/kotlin/util/KotlinIdeCommonBundle.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.util + +import com.intellij.AbstractBundle +import org.jetbrains.annotations.NonNls +import org.jetbrains.annotations.PropertyKey + +@NonNls +private const val BUNDLE = "messages.KotlinIdeCommonBundle" + +object KotlinIdeCommonBundle : AbstractBundle(BUNDLE) { + @JvmStatic + fun message(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): String = getMessage(key, *params) +}