diff --git a/python/src/com/jetbrains/python/PyBundle.properties b/python/src/com/jetbrains/python/PyBundle.properties index 8c61df0c584c..c3ceddc7c2c6 100644 --- a/python/src/com/jetbrains/python/PyBundle.properties +++ b/python/src/com/jetbrains/python/PyBundle.properties @@ -364,6 +364,7 @@ INSP.unresolved.ref.$0=Unresolved reference ''{0}'' INSP.unresolved.ref.$0.for.class.$1=Unresolved attribute reference ''{0}'' for class ''{1}'' INSP.cannot.find.$0.in.$1=Cannot find reference ''{0}'' in ''{1}'' INSP.try.except.import.error=''{0}'' in try block with ''except ImportError'' should also be defined in except block +INSP.unused.import.statement=Unused import statement #ref INSP.unresolved.operator.ref=Class ''{0}'' does not define ''{1}'', so the ''{2}'' operator cannot be used on its instances # PyInterpreterInspection diff --git a/python/src/com/jetbrains/python/inspections/unresolvedReference/PyUnresolvedReferencesInspection.java b/python/src/com/jetbrains/python/inspections/unresolvedReference/PyUnresolvedReferencesInspection.java index c50d23788103..6c494fb055ac 100644 --- a/python/src/com/jetbrains/python/inspections/unresolvedReference/PyUnresolvedReferencesInspection.java +++ b/python/src/com/jetbrains/python/inspections/unresolvedReference/PyUnresolvedReferencesInspection.java @@ -1045,7 +1045,7 @@ public class PyUnresolvedReferencesInspection extends PyInspection { continue; } if (element.getTextLength() > 0) { - registerProblem(element, "Unused import statement", ProblemHighlightType.LIKE_UNUSED_SYMBOL, null, new OptimizeImportsQuickFix()); + registerProblem(element, PyBundle.message("INSP.unused.import.statement"), ProblemHighlightType.LIKE_UNUSED_SYMBOL, null, new OptimizeImportsQuickFix()); } } }