i18n: add bundle for idea/reporter
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
button.text.ignore=Ignore
|
||||||
|
button.text.update=Update
|
||||||
|
message.text.you.re.running.kotlin.plugin.version=You''re running Kotlin plugin version {0}, while the latest version is {1}
|
||||||
|
text.can.t.report.exception.from.patched.plugin=Can''t report exception from patched plugin
|
||||||
|
title.update.kotlin.plugin=Update Kotlin Plugin
|
||||||
@@ -245,7 +245,7 @@ class KotlinReportSubmitter : ITNReporterCompat() {
|
|||||||
ReportMessages.GROUP
|
ReportMessages.GROUP
|
||||||
.createNotification(
|
.createNotification(
|
||||||
ReportMessages.ERROR_REPORT,
|
ReportMessages.ERROR_REPORT,
|
||||||
"Can't report exception from patched plugin",
|
KotlinReporterBundle.message("text.can.t.report.exception.from.patched.plugin"),
|
||||||
NotificationType.INFORMATION,
|
NotificationType.INFORMATION,
|
||||||
null
|
null
|
||||||
)
|
)
|
||||||
@@ -264,10 +264,13 @@ class KotlinReportSubmitter : ITNReporterCompat() {
|
|||||||
|
|
||||||
val rc = showDialog(
|
val rc = showDialog(
|
||||||
parentComponent,
|
parentComponent,
|
||||||
"You're running Kotlin plugin version ${KotlinPluginUtil.getPluginVersion()}, " +
|
KotlinReporterBundle.message(
|
||||||
"while the latest version is ${status.pluginDescriptor.version}",
|
"message.text.you.re.running.kotlin.plugin.version",
|
||||||
"Update Kotlin Plugin",
|
KotlinPluginUtil.getPluginVersion(),
|
||||||
arrayOf("Update", "Ignore"),
|
status.pluginDescriptor.version
|
||||||
|
),
|
||||||
|
KotlinReporterBundle.message("title.update.kotlin.plugin"),
|
||||||
|
arrayOf(KotlinReporterBundle.message("button.text.update"), KotlinReporterBundle.message("button.text.ignore")),
|
||||||
0, Messages.getInformationIcon()
|
0, Messages.getInformationIcon()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -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.reporter
|
||||||
|
|
||||||
|
import org.jetbrains.annotations.NonNls
|
||||||
|
import org.jetbrains.annotations.PropertyKey
|
||||||
|
import org.jetbrains.kotlin.util.AbstractKotlinBundle
|
||||||
|
|
||||||
|
@NonNls
|
||||||
|
private const val BUNDLE = "messages.KotlinReporterBundle"
|
||||||
|
|
||||||
|
object KotlinReporterBundle : AbstractKotlinBundle(BUNDLE) {
|
||||||
|
@JvmStatic
|
||||||
|
fun message(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): String = getMessage(key, *params)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user