i18n: fix bundle for idea/findUsages

This commit is contained in:
Dmitry Gridin
2020-02-21 14:27:53 +07:00
parent 20ec600e2d
commit 4c9e7773ad
2 changed files with 8 additions and 5 deletions
@@ -2,7 +2,7 @@ kotlin.lang.class=class
kotlin.lang.companion.object=companion object kotlin.lang.companion.object=companion object
kotlin.lang.constructor=constructor kotlin.lang.constructor=constructor
kotlin.lang.facade.class=facade class kotlin.lang.facade.class=facade class
kotlin.lang.for.property=for property kotlin.lang.for.property={0} for property
kotlin.lang.function=function kotlin.lang.function=function
kotlin.lang.getter=getter kotlin.lang.getter=getter
kotlin.lang.import.alias=import alias kotlin.lang.import.alias=import alias
@@ -126,10 +126,13 @@ class KotlinElementDescriptionProvider : ElementDescriptionProvider {
else else
KotlinFindUsagesBundle.message("kotlin.lang.object") KotlinFindUsagesBundle.message("kotlin.lang.object")
is KtNamedFunction -> KotlinFindUsagesBundle.message("kotlin.lang.function") is KtNamedFunction -> KotlinFindUsagesBundle.message("kotlin.lang.function")
is KtPropertyAccessor -> (if (targetElement.isGetter) is KtPropertyAccessor -> KotlinFindUsagesBundle.message(
KotlinFindUsagesBundle.message("kotlin.lang.getter") "kotlin.lang.for.property",
else (if (targetElement.isGetter)
KotlinFindUsagesBundle.message("kotlin.lang.setter")) + " " + KotlinFindUsagesBundle.message("kotlin.lang.for.property") + " " KotlinFindUsagesBundle.message("kotlin.lang.getter")
else
KotlinFindUsagesBundle.message("kotlin.lang.setter"))
) + " "
is KtFunctionLiteral -> KotlinFindUsagesBundle.message("kotlin.lang.lambda") is KtFunctionLiteral -> KotlinFindUsagesBundle.message("kotlin.lang.lambda")
is KtPrimaryConstructor, is KtSecondaryConstructor -> KotlinFindUsagesBundle.message("kotlin.lang.constructor") is KtPrimaryConstructor, is KtSecondaryConstructor -> KotlinFindUsagesBundle.message("kotlin.lang.constructor")
is KtProperty -> if (targetElement.isLocal) is KtProperty -> if (targetElement.isLocal)