From a589d8869b41a526bab5ef9b6ccd54131f12b7a6 Mon Sep 17 00:00:00 2001 From: Dmitry Gridin Date: Tue, 3 Mar 2020 15:25:45 +0700 Subject: [PATCH] i18n: add bundle for idea/refactoring/safeDelete --- .../resources/messages/KotlinBundle.properties | 6 +++++- .../refactoring/safeDelete/KotlinSafeDeleteProcessor.kt | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/idea/idea-analysis/resources/messages/KotlinBundle.properties b/idea/idea-analysis/resources/messages/KotlinBundle.properties index 16201958537..4a8cbeb04d7 100644 --- a/idea/idea-analysis/resources/messages/KotlinBundle.properties +++ b/idea/idea-analysis/resources/messages/KotlinBundle.properties @@ -1007,4 +1007,8 @@ title.inline.function=Inline Function title.introduce.parameter.to.declaration=Introduce parameter to declaration title.move.nested.classes.to.upper.level=Move Nested Classes to Upper Level title.select.target.code.block=Select target code block -unsupported.usage.0=Unsupported usage: {0} \ No newline at end of file +unsupported.usage.0=Unsupported usage: {0} + +do.you.want.to.delete.this.parameter.in.expected.declaration.and.all.related.actual.ones=Do you want to delete this parameter in expected declaration and all related actual ones? +do.you.want.to.delete.expected.declaration.together.with.all.related.actual.ones=Do you want to delete expected declaration together with all related actual ones? +delete.with.usage.search=delete (with usage search) \ No newline at end of file diff --git a/idea/src/org/jetbrains/kotlin/idea/refactoring/safeDelete/KotlinSafeDeleteProcessor.kt b/idea/src/org/jetbrains/kotlin/idea/refactoring/safeDelete/KotlinSafeDeleteProcessor.kt index 335152f32d3..2ba2883a205 100644 --- a/idea/src/org/jetbrains/kotlin/idea/refactoring/safeDelete/KotlinSafeDeleteProcessor.kt +++ b/idea/src/org/jetbrains/kotlin/idea/refactoring/safeDelete/KotlinSafeDeleteProcessor.kt @@ -437,7 +437,7 @@ class KotlinSafeDeleteProcessor : JavaSafeDeleteProcessor() { if (ApplicationManager.getApplication().isUnitTestMode) return parameter.project.ALLOW_LIFTING_ACTUAL_PARAMETER_TO_EXPECTED return Messages.showYesNoDialog( - "Do you want to delete this parameter in expected declaration and all related actual ones?", + KotlinBundle.message("do.you.want.to.delete.this.parameter.in.expected.declaration.and.all.related.actual.ones"), RefactoringBundle.message("safe.delete.title"), Messages.getQuestionIcon() ) == Messages.YES @@ -447,7 +447,7 @@ class KotlinSafeDeleteProcessor : JavaSafeDeleteProcessor() { if (ApplicationManager.getApplication().isUnitTestMode) return true return Messages.showYesNoDialog( - "Do you want to delete expected declaration together with all related actual ones?", + KotlinBundle.message("do.you.want.to.delete.expected.declaration.together.with.all.related.actual.ones"), RefactoringBundle.message("safe.delete.title"), Messages.getQuestionIcon() ) == Messages.YES @@ -489,7 +489,7 @@ class KotlinSafeDeleteProcessor : JavaSafeDeleteProcessor() { return when (element) { is KtNamedFunction, is KtProperty -> - checkSuperMethods(element as KtDeclaration, allElementsToDelete, "delete (with usage search)") + checkSuperMethods(element as KtDeclaration, allElementsToDelete, KotlinBundle.message("delete.with.usage.search")) else -> super.getElementsToSearch(element, module, allElementsToDelete) }