i18n for hector

GitOrigin-RevId: 4ece9c3064a15aa1ad927c8fae9fb0a82f1f7263
This commit is contained in:
Sergey Ignatov
2020-01-24 11:39:30 +00:00
committed by intellij-monorepo-bot
parent e7320e8d21
commit c88177b00d
3 changed files with 6 additions and 3 deletions
@@ -16,6 +16,7 @@
package com.intellij.codeInsight.daemon;
import com.intellij.ide.PowerSaveMode;
import com.intellij.openapi.editor.EditorBundle;
import com.intellij.openapi.editor.HectorComponentPanel;
import com.intellij.openapi.editor.HectorComponentPanelsProvider;
import com.intellij.psi.PsiFile;
@@ -30,7 +31,7 @@ public class PowerSaveHectorProvider implements HectorComponentPanelsProvider {
@Override
public HectorComponentPanel createConfigurable(@NotNull PsiFile file) {
return new HectorComponentPanel() {
private final JCheckBox myCheckBox = new JCheckBox("Power Save Mode");
private final JCheckBox myCheckBox = new JCheckBox(EditorBundle.message("hector.power.save.mode.text"));
@Override
public JComponent createComponent() {
@@ -119,7 +119,7 @@ class HectorComponentImpl extends JPanel implements HectorComponent {
gc.gridy = GridBagConstraints.RELATIVE;
gc.weighty = 0;
final HyperlinkLabel configurator = new HyperlinkLabel("Configure inspections");
final HyperlinkLabel configurator = new HyperlinkLabel(EditorBundle.message("hector.configure.inspections"));
gc.insets.right = 5;
gc.insets.bottom = 10;
gc.weightx = 0;
@@ -19,6 +19,7 @@ hector.highlighting.level.title=Highlighting Level
hector.none.slider.label=None
hector.syntax.slider.label=Syntax
hector.inspections.slider.label=Inspections
hector.power.save.mode.text=Power Save Mode
action.duplicate.selection=&Duplicate Selection
action.duplicate.line=&Duplicate Line
increase.editor.font=Increase Font Size
@@ -34,4 +35,5 @@ editing.viewer.hint=This view is read-only
content.to.paste.too.large.title=Cannot Paste
content.to.paste.too.large.message=Content is too large ({0}), limit is {1}
action.ResourceBundleEditor.Anonymous.text.propagate.value.across.of.resource.bundle=Propagate Value Across of Resource Bundle
action.ResourceBundleEditor.Anonymous.text.propagate.value.across.of.resource.bundle=Propagate Value Across of Resource Bundle
hector.configure.inspections=Configure inspections