xpath: lost in i18n
authorBas Leijdekkers <basleijdekkers@gmail.com>
Mon, 10 Aug 2020 15:47:53 +0000 (17:47 +0200)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Mon, 10 Aug 2020 19:49:01 +0000 (19:49 +0000)
GitOrigin-RevId: 95bcae3ec282ff5017ecfa5462c3010754dfc12e

plugins/xpath/xpath-lang/resources/messages/XPathBundle.properties
plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/xslt/run/HighlightingOutputConsole.java
plugins/xpath/xpath-view/src/org/intellij/plugins/xpathView/XPathEvalAction.java

index 00719e5fca3c8c47a61161ab13cbbe6ddac10ee9..fb52eae41b18fb62821525d89430c4f6d2fe0abb 100644 (file)
@@ -316,4 +316,6 @@ tooltip.duplicate.variable=Duplicate Variable
 tooltip.empty.expression.variable.will.evaluate.to.empty.nodeset=Empty expression. Variable will evaluate to empty nodeset.
 tooltip.no.value.set.for.parameter.0=No value set for parameter ''{0}''
 variable.place.local=local
-variable.place.outer=outer
\ No newline at end of file
+variable.place.outer=outer
+status.bar.text.xpath.choice.match.matches.found.press.escape.to.remove.highlighting={0} XPath {1, choice, 0#match|1#matches} found (press Escape to remove the highlighting)
+tab.title.xslt.output=XSLT Output
\ No newline at end of file
index 9703d9d3b8734d427d406645eb2cab821c931fa5..f860d84b20a7b82bfb1d3480b868b24381bf9a37 100644 (file)
@@ -28,6 +28,7 @@ import com.intellij.openapi.fileTypes.FileType;
 import com.intellij.openapi.fileTypes.FileTypeEditorHighlighterProviders;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.util.Disposer;
+import org.intellij.plugins.xpathView.XPathBundle;
 import org.jetbrains.annotations.NonNls;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
@@ -36,7 +37,6 @@ import javax.swing.*;
 import java.awt.*;
 
 public class HighlightingOutputConsole extends AdditionalTabComponent implements DataProvider {
-    public static final String TAB_TITLE = "XSLT Output";
 
     private final ConsoleView myConsole;
     private final JComponent myConsoleComponent;
@@ -118,7 +118,7 @@ public class HighlightingOutputConsole extends AdditionalTabComponent implements
     @Override
     @NotNull
     public String getTabTitle() {
-        return TAB_TITLE;
+        return XPathBundle.message("tab.title.xslt.output");
     }
 
     @Override
index 11ec08687f389fe47f95ce67c6a587cb049ec26a..1a218f95b3c7a216a317cf50464b301af0861aad 100644 (file)
@@ -392,9 +392,9 @@ public class XPathEvalAction extends XPathAction {
         }
 
         SwingUtilities.invokeLater(() -> {
-            final StatusBar statusBar = WindowManager.getInstance().getStatusBar(editor.getProject());
-            final String s = StringUtil.pluralize("match", list.size());
-            statusBar.setInfo(list.size() + " XPath " + s + " found (press Escape to remove the highlighting)");
+          final StatusBar statusBar = WindowManager.getInstance().getStatusBar(editor.getProject());
+          statusBar.setInfo(XPathBundle.message("status.bar.text.xpath.choice.match.matches.found.press.escape.to.remove.highlighting",
+                                                list.size(), list.size() == 1 ? 0 : 1));
         });
     }