diff --git a/platform/lang-api/resources/messages/CodeInsightBundle.properties b/platform/lang-api/resources/messages/CodeInsightBundle.properties index 39e60aa32e09..9da25cfc30cd 100644 --- a/platform/lang-api/resources/messages/CodeInsightBundle.properties +++ b/platform/lang-api/resources/messages/CodeInsightBundle.properties @@ -467,7 +467,7 @@ action.text.move=Move dialog.title.create.new.group=Create New Group intention.family.edit.injected.fragment=Edit injected fragment intention.text.edit.0.fragment=Edit {0} Fragment -message.the.file.size.0.exceeds.configured.limit.1.code.insight.features.are.not.available=The file size ({0}) exceeds configured limit ({1}). Code insight features are not available. +message.file.size.0.exceeds.code.insight.limit.1=The file size ({0}) exceeds configured limit ({1}). Code insight features are not available. command.fix.documentation=Fix documentation label.slow.inspections.progress.report.long.line=Slow inspections progress report long line notification.navigation.is.not.available.while.indexing=Navigation is not available while indexing diff --git a/platform/lang-api/resources/messages/ExecutionBundle.properties b/platform/lang-api/resources/messages/ExecutionBundle.properties index 62c0d373652d..3b050f1e3570 100644 --- a/platform/lang-api/resources/messages/ExecutionBundle.properties +++ b/platform/lang-api/resources/messages/ExecutionBundle.properties @@ -500,6 +500,7 @@ empty.text.no.mappings=No mappings this.configuration.cannot.be.edited=This configuration cannot be edited popup.title.choose.target.file=Choose Target File dialog.title.unable.to.open.file=Unable to Open File +dialog.message.unable.to.open.file=Unable to open ''{0}/{1}''\nReason:{2} dialog.title.folding.pattern=Folding Pattern popup.title.script.engine=Script Engine action.text.use.console.input=Use Console Input \ No newline at end of file diff --git a/platform/lang-impl/src/com/intellij/codeInsight/highlighting/LargeFilesAnnotator.java b/platform/lang-impl/src/com/intellij/codeInsight/highlighting/LargeFilesAnnotator.java index f0011683a93f..d46e663267f6 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/highlighting/LargeFilesAnnotator.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/highlighting/LargeFilesAnnotator.java @@ -33,10 +33,9 @@ public class LargeFilesAnnotator implements Annotator { if (element instanceof PsiFile) { VirtualFile file = ((PsiFile)element).getViewProvider().getVirtualFile(); if (SingleRootFileViewProvider.isTooLargeForIntelligence(file)) { - holder.newAnnotation(HighlightSeverity.WARNING, CodeInsightBundle - .message("message.the.file.size.0.exceeds.configured.limit.1.code.insight.features.are.not.available", - StringUtil.formatFileSize(file.getLength()), - StringUtil.formatFileSize(PersistentFSConstants.getMaxIntellisenseFileSize()))) + holder.newAnnotation(HighlightSeverity.WARNING, CodeInsightBundle.message("message.file.size.0.exceeds.code.insight.limit.1", + StringUtil.formatFileSize(file.getLength()), + StringUtil.formatFileSize(PersistentFSConstants.getMaxIntellisenseFileSize()))) .fileLevel() .create(); } diff --git a/platform/lang-impl/src/com/intellij/execution/console/ConsoleHistoryController.java b/platform/lang-impl/src/com/intellij/execution/console/ConsoleHistoryController.java index edf6aec7385f..43ded36f5d73 100644 --- a/platform/lang-impl/src/com/intellij/execution/console/ConsoleHistoryController.java +++ b/platform/lang-impl/src/com/intellij/execution/console/ConsoleHistoryController.java @@ -500,7 +500,7 @@ public class ConsoleHistoryController implements Disposable { catch (final IOException e) { LOG.warn(e); ApplicationManager.getApplication().invokeLater(() -> { - String message = String.format("Unable to open '%s/%s'\nReason: %s", rootType.getId(), pathName, e.getLocalizedMessage()); + String message = ExecutionBundle.message("dialog.message.unable.to.open.file", rootType.getId(), pathName, e.getLocalizedMessage()); Messages.showErrorDialog(message, ExecutionBundle.message("dialog.title.unable.to.open.file")); }); return null;