i18n: fix text in AbstractKotlinInlineDialog

#KT-37822 Fixed
This commit is contained in:
Dmitry Gridin
2020-04-20 13:57:20 +07:00
parent d8b4ff9eab
commit 2d64ded3c7
3 changed files with 5 additions and 3 deletions
@@ -915,7 +915,7 @@ text.incorrect.target.path.directory.0.does.not.belong.to.current.project=Incorr
text.indirect.outer.instances.will.not.be.extracted.0=Indirect outer instances won''t be extracted: {0} text.indirect.outer.instances.will.not.be.extracted.0=Indirect outer instances won''t be extracted: {0}
text.inline.0.1.2=Inline {0} ''{1}''? {2} text.inline.0.1.2=Inline {0} ''{1}''? {2}
text.inline.0=Inline {0} text.inline.0=Inline {0}
text.inline.all.references.and.0.the.1=Inline all references and {0} the kind {1} text.inline.all.references.and.verb.0.the.kind.1.occurrences.2=Inline all references and {0} the {1} {2}
text.inline.recursive.function.is.supported.only.on.references=Inline recursive function is supported only on references text.inline.recursive.function.is.supported.only.on.references=Inline recursive function is supported only on references
text.inline.this.reference.and.keep.the.0=Inline this reference and keep the {0} text.inline.this.reference.and.keep.the.0=Inline this reference and keep the {0}
text.inlining.0.1=Inlining {0} {1} text.inlining.0.1=Inlining {0} {1}
@@ -55,8 +55,10 @@ abstract class AbstractKotlinInlineDialog(
return "${kind.capitalize()} ${callable.nameAsSafeName} $occurrencesString" return "${kind.capitalize()} ${callable.nameAsSafeName} $occurrencesString"
} }
private fun getInlineText(verb: String) = KotlinBundle.message("text.inline.all.references.and.0.the.1", private fun getInlineText(verb: String) = KotlinBundle.message(
"text.inline.all.references.and.verb.0.the.kind.1.occurrences.2",
verb, verb,
kind,
(occurrencesString?.let { "($it)" } ?: "") (occurrencesString?.let { "($it)" } ?: "")
) )
@@ -40,7 +40,7 @@ import org.jetbrains.kotlin.types.Variance
class KotlinInlineTypeAliasHandler : InlineActionHandler() { class KotlinInlineTypeAliasHandler : InlineActionHandler() {
companion object { companion object {
val REFACTORING_NAME = KotlinBundle.message("name.inline.type.alias") val REFACTORING_NAME get() = KotlinBundle.message("name.inline.type.alias")
} }
private fun showErrorHint(project: Project, editor: Editor?, message: String) { private fun showErrorHint(project: Project, editor: Editor?, message: String) {