mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
i18n: Process new problems in Python refactorings
GitOrigin-RevId: 3c9f26e592dcd62a50452e99cd53a03be061cbc7
This commit is contained in:
committed by
intellij-monorepo-bot
parent
622e725152
commit
84e8ffb598
@@ -93,6 +93,7 @@ refactoring.inline.label.function=Function {0}
|
||||
refactoring.inline.label.method=Method {0}
|
||||
refactoring.name.label.text={0} has {1} occurrence{2, choice, 0#|1#s}
|
||||
refactoring.inline.function.command.name=Inlining {0}
|
||||
refactoring.inline.function.function.to.inline=Function to inline
|
||||
refactoring.inline.function.invocations.to.be.inlined=Invocations to be inlined in {0} files
|
||||
refactoring.inline.function.is.decorator=Function {0} is used as a decorator and cannot be inlined. Function definition will not be removed
|
||||
refactoring.inline.function.is.reference=Function {0} is used as a reference and cannot be inlined. Function definition will not be removed
|
||||
|
||||
@@ -43,7 +43,7 @@ public class PyPushDownProcessor extends PyMembersRefactoringBaseProcessor {
|
||||
|
||||
@Override
|
||||
public String getProcessedElementsHeader() {
|
||||
return getHeader();
|
||||
return RefactoringBundle.message("push.down.members.elements.header", "");
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@@ -63,8 +63,4 @@ public class PyPushDownProcessor extends PyMembersRefactoringBaseProcessor {
|
||||
protected String getRefactoringId() {
|
||||
return "refactoring.python.push.down";
|
||||
}
|
||||
|
||||
private static String getHeader() {
|
||||
return RefactoringBundle.message("push.down.members.elements.header", "");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -381,7 +381,7 @@ class PyInlineFunctionProcessor(project: Project,
|
||||
|
||||
override fun createUsageViewDescriptor(usages: Array<out UsageInfo>) = object : UsageViewDescriptor {
|
||||
override fun getElements(): Array<PsiElement> = arrayOf(myFunction)
|
||||
override fun getProcessedElementsHeader(): String = "Function to inline "
|
||||
override fun getProcessedElementsHeader(): String = PyBundle.message("refactoring.inline.function.function.to.inline")
|
||||
override fun getCodeReferencesText(usagesCount: Int, filesCount: Int): String = PyBundle.message("refactoring.inline.function.invocations.to.be.inlined", filesCount)
|
||||
override fun getCommentReferencesText(usagesCount: Int, filesCount: Int): String = ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user