You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
621 B
22 lines
621 B
package org.jetbrains.plugins.template
|
|
|
|
import com.intellij.DynamicBundle
|
|
import org.jetbrains.annotations.NonNls
|
|
import org.jetbrains.annotations.PropertyKey
|
|
|
|
@NonNls
|
|
private const val BUNDLE = "messages.MyBundle"
|
|
|
|
object MyBundle : DynamicBundle(BUNDLE) {
|
|
|
|
@Suppress("SpreadOperator")
|
|
@JvmStatic
|
|
fun message(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any) =
|
|
getMessage(key, *params)
|
|
|
|
@Suppress("SpreadOperator", "unused")
|
|
@JvmStatic
|
|
fun messagePointer(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any) =
|
|
getLazyMessage(key, *params)
|
|
}
|