i18n: add bundle for idea/refactoring/safeDelete

This commit is contained in:
Dmitry Gridin
2020-03-03 15:25:45 +07:00
parent afeff3a6c8
commit a589d8869b
2 changed files with 8 additions and 4 deletions
@@ -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}
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)
@@ -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)
}