i18n: fix bundle location
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
intention.suppress.family=Suppress Warnings
|
||||||
|
intention.suppress.text=Suppress ''{0}'' for {1} {2}
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2010-2015 JetBrains s.r.o.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
package org.jetbrains.kotlin.idea
|
|
||||||
|
|
||||||
import org.jetbrains.annotations.NonNls
|
|
||||||
import org.jetbrains.annotations.PropertyKey
|
|
||||||
import org.jetbrains.kotlin.util.AbstractKotlinBundle
|
|
||||||
|
|
||||||
@NonNls
|
|
||||||
private const val BUNDLE = "messages.KotlinBundle"
|
|
||||||
|
|
||||||
object KotlinBundle : AbstractKotlinBundle(BUNDLE) {
|
|
||||||
@JvmStatic
|
|
||||||
fun message(@NonNls @PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): String = getMessage(key, *params)
|
|
||||||
|
|
||||||
@JvmStatic
|
|
||||||
fun lazyMessage(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): () -> String = { getMessage(key, *params) }
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* 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
|
||||||
|
|
||||||
|
import org.jetbrains.annotations.NonNls
|
||||||
|
import org.jetbrains.annotations.PropertyKey
|
||||||
|
import org.jetbrains.kotlin.util.AbstractKotlinBundle
|
||||||
|
|
||||||
|
@NonNls
|
||||||
|
private const val BUNDLE = "messages.KotlinIdeaAnalysisBundle"
|
||||||
|
|
||||||
|
object KotlinIdeaAnalysisBundle : AbstractKotlinBundle(BUNDLE) {
|
||||||
|
@JvmStatic
|
||||||
|
fun message(@NonNls @PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): String = getMessage(key, *params)
|
||||||
|
|
||||||
|
@JvmStatic
|
||||||
|
fun lazyMessage(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): () -> String = { getMessage(key, *params) }
|
||||||
|
}
|
||||||
+3
-3
@@ -22,7 +22,7 @@ import com.intellij.openapi.editor.Editor
|
|||||||
import com.intellij.openapi.project.Project
|
import com.intellij.openapi.project.Project
|
||||||
import com.intellij.psi.PsiElement
|
import com.intellij.psi.PsiElement
|
||||||
import org.jetbrains.kotlin.builtins.KotlinBuiltIns
|
import org.jetbrains.kotlin.builtins.KotlinBuiltIns
|
||||||
import org.jetbrains.kotlin.idea.KotlinBundle
|
import org.jetbrains.kotlin.idea.KotlinIdeaAnalysisBundle
|
||||||
import org.jetbrains.kotlin.idea.caches.resolve.analyze
|
import org.jetbrains.kotlin.idea.caches.resolve.analyze
|
||||||
import org.jetbrains.kotlin.idea.util.addAnnotation
|
import org.jetbrains.kotlin.idea.util.addAnnotation
|
||||||
import org.jetbrains.kotlin.psi.*
|
import org.jetbrains.kotlin.psi.*
|
||||||
@@ -50,8 +50,8 @@ class KotlinSuppressIntentionAction private constructor(
|
|||||||
kind: AnnotationHostKind
|
kind: AnnotationHostKind
|
||||||
) : this(suppressAt as PsiElement, suppressKey, kind)
|
) : this(suppressAt as PsiElement, suppressKey, kind)
|
||||||
|
|
||||||
override fun getFamilyName() = KotlinBundle.message("intention.suppress.family")
|
override fun getFamilyName() = KotlinIdeaAnalysisBundle.message("intention.suppress.family")
|
||||||
override fun getText() = KotlinBundle.message("intention.suppress.text", suppressKey, kind.kind, kind.name)
|
override fun getText() = KotlinIdeaAnalysisBundle.message("intention.suppress.text", suppressKey, kind.kind, kind.name)
|
||||||
|
|
||||||
override fun isAvailable(project: Project, editor: Editor?, element: PsiElement) = element.isValid
|
override fun isAvailable(project: Project, editor: Editor?, element: PsiElement) = element.isValid
|
||||||
|
|
||||||
|
|||||||
-3
@@ -236,9 +236,6 @@ intention.change.package.text=Change package
|
|||||||
intention.extract.declarations.from.file.text=Extract declaration from current file
|
intention.extract.declarations.from.file.text=Extract declaration from current file
|
||||||
intention.extract.declarations.from.file.text.details=Extract ''{0}'' {1, choice, 0#|1#and subclasses }from current file
|
intention.extract.declarations.from.file.text.details=Extract ''{0}'' {1, choice, 0#|1#and subclasses }from current file
|
||||||
|
|
||||||
intention.suppress.family=Suppress Warnings
|
|
||||||
intention.suppress.text=Suppress ''{0}'' for {1} {2}
|
|
||||||
|
|
||||||
kotlin.compiler.option.generate.no.warnings=Report compiler &warnings
|
kotlin.compiler.option.generate.no.warnings=Report compiler &warnings
|
||||||
kotlin.compiler.option.additional.command.line.parameters=&Additional command line parameters:
|
kotlin.compiler.option.additional.command.line.parameters=&Additional command line parameters:
|
||||||
kotlin.compiler.option.enable.new.inference.in.ide=Enable new type inference algorithm for IDE analysis
|
kotlin.compiler.option.enable.new.inference.in.ide=Enable new type inference algorithm for IDE analysis
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* 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
|
||||||
|
|
||||||
|
import org.jetbrains.annotations.NonNls
|
||||||
|
import org.jetbrains.annotations.PropertyKey
|
||||||
|
import org.jetbrains.kotlin.util.AbstractKotlinBundle
|
||||||
|
|
||||||
|
@NonNls
|
||||||
|
private const val BUNDLE = "messages.KotlinBundle"
|
||||||
|
|
||||||
|
object KotlinBundle : AbstractKotlinBundle(BUNDLE) {
|
||||||
|
@JvmStatic
|
||||||
|
fun message(@NonNls @PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): String = getMessage(key, *params)
|
||||||
|
|
||||||
|
@JvmStatic
|
||||||
|
fun lazyMessage(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): () -> String = { getMessage(key, *params) }
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user