diff --git a/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/PositionPanel.java b/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/PositionPanel.java index dcdd5e9912cf..7eb2ff2fc307 100644 --- a/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/PositionPanel.java +++ b/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/PositionPanel.java @@ -145,18 +145,19 @@ public class PositionPanel extends EditorBasedWidget implements StatusBarWidget. SelectionModel selectionModel = editor.getSelectionModel(); int caretCount = editor.getCaretModel().getCaretCount(); if (caretCount > 1) { - message.append(caretCount).append(" carets"); + message.append(UIBundle.message("position.panel.caret.count", caretCount)); } else { if (selectionModel.hasSelection()) { int selectionStart = selectionModel.getSelectionStart(); int selectionEnd = selectionModel.getSelectionEnd(); if (selectionEnd > selectionStart) { - message.append(selectionEnd - selectionStart).append(" chars"); + message.append(UIBundle.message("position.panel.selected.chars.count", selectionEnd - selectionStart)); int selectionStartLine = editor.getDocument().getLineNumber(selectionStart); int selectionEndLine = editor.getDocument().getLineNumber(selectionEnd); if (selectionEndLine > selectionStartLine) { - message.append(", ").append(selectionEndLine - selectionStartLine + 1).append(" lines"); + message.append(", "); + message.append(UIBundle.message("position.panel.selected.lines.count", selectionEndLine - selectionStartLine + 1)); } message.append(" "); } diff --git a/platform/platform-resources-en/src/messages/UIBundle.properties b/platform/platform-resources-en/src/messages/UIBundle.properties index 3a2d87ed1a48..6f58d5a60cd3 100644 --- a/platform/platform-resources-en/src/messages/UIBundle.properties +++ b/platform/platform-resources-en/src/messages/UIBundle.properties @@ -72,6 +72,9 @@ memory.usage.panel.statistics.message=Allocated heap size: {0}M Used: {1}M memory.usage.panel.message.text={0,number,####} of {1,number,####}M go.to.line.command.name=Go to Line go.to.line.command.double.click=Click to go to line +position.panel.caret.count={0} carets +position.panel.selected.chars.count={0} chars +position.panel.selected.lines.count={0} lines popup.hints.panel.click.to.configure.highlighting.tooltip.text=Click to configure highlighting for this file popup.hints.panel.click.to.configure.profile.text=Click to configure inspection profiles read.only.attr.panel.double.click.to.toggle.attr.tooltip.text=Click to toggle the read-only attribute