i18n: fix bundle for idea/findUsages
This commit is contained in:
@@ -2,7 +2,7 @@ kotlin.lang.class=class
|
||||
kotlin.lang.companion.object=companion object
|
||||
kotlin.lang.constructor=constructor
|
||||
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.getter=getter
|
||||
kotlin.lang.import.alias=import alias
|
||||
|
||||
@@ -126,10 +126,13 @@ class KotlinElementDescriptionProvider : ElementDescriptionProvider {
|
||||
else
|
||||
KotlinFindUsagesBundle.message("kotlin.lang.object")
|
||||
is KtNamedFunction -> KotlinFindUsagesBundle.message("kotlin.lang.function")
|
||||
is KtPropertyAccessor -> (if (targetElement.isGetter)
|
||||
KotlinFindUsagesBundle.message("kotlin.lang.getter")
|
||||
else
|
||||
KotlinFindUsagesBundle.message("kotlin.lang.setter")) + " " + KotlinFindUsagesBundle.message("kotlin.lang.for.property") + " "
|
||||
is KtPropertyAccessor -> KotlinFindUsagesBundle.message(
|
||||
"kotlin.lang.for.property",
|
||||
(if (targetElement.isGetter)
|
||||
KotlinFindUsagesBundle.message("kotlin.lang.getter")
|
||||
else
|
||||
KotlinFindUsagesBundle.message("kotlin.lang.setter"))
|
||||
) + " "
|
||||
is KtFunctionLiteral -> KotlinFindUsagesBundle.message("kotlin.lang.lambda")
|
||||
is KtPrimaryConstructor, is KtSecondaryConstructor -> KotlinFindUsagesBundle.message("kotlin.lang.constructor")
|
||||
is KtProperty -> if (targetElement.isLocal)
|
||||
|
||||
Reference in New Issue
Block a user