mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
Internatinalization
GitOrigin-RevId: 54277418c48c95ac8065d4e18a65dd78f930bb3a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
79b69afe58
commit
e512fa3c6a
@@ -1,6 +1,7 @@
|
||||
// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.codeInspection;
|
||||
|
||||
import com.intellij.codeInsight.daemon.QuickFixBundle;
|
||||
import com.intellij.codeInsight.intention.LowPriorityAction;
|
||||
import com.intellij.codeInspection.ex.InspectionProfileModifiableModelKt;
|
||||
import com.intellij.codeInspection.ex.InspectionToolWrapper;
|
||||
@@ -14,6 +15,7 @@ import com.intellij.psi.PsiFile;
|
||||
import com.intellij.psi.PsiManager;
|
||||
import com.intellij.util.ReflectionUtil;
|
||||
import org.jetbrains.annotations.Nls;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
@@ -24,7 +26,7 @@ public class SetInspectionOptionFix implements LocalQuickFix, LowPriorityAction,
|
||||
private final String myMessage;
|
||||
private final boolean myValue;
|
||||
|
||||
public SetInspectionOptionFix(LocalInspectionTool inspection, String property, String message, boolean value) {
|
||||
public SetInspectionOptionFix(LocalInspectionTool inspection, @NonNls String property, @Nls String message, boolean value) {
|
||||
myID = inspection.getID();
|
||||
myProperty = property;
|
||||
myMessage = message;
|
||||
@@ -42,7 +44,7 @@ public class SetInspectionOptionFix implements LocalQuickFix, LowPriorityAction,
|
||||
@NotNull
|
||||
@Override
|
||||
public String getFamilyName() {
|
||||
return "Set inspection option";
|
||||
return QuickFixBundle.message("set.inspection.option.fix");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -61,7 +61,7 @@ public class UseCompareMethodInspection extends AbstractBaseJavaLocalInspectionT
|
||||
}
|
||||
|
||||
private void register(CompareInfo info, PsiElement nameElement) {
|
||||
holder.registerProblem(nameElement, "Can be replaced with '" + info.myClass.getClassName() + ".compare'",
|
||||
holder.registerProblem(nameElement, InspectionsBundle.message("inspection.can.be.replaced.with.message", info.myClass.getClassName() + ".compare"),
|
||||
new ReplaceWithPrimitiveCompareFix(info.getReplacementText()));
|
||||
}
|
||||
};
|
||||
@@ -338,7 +338,7 @@ public class UseCompareMethodInspection extends AbstractBaseJavaLocalInspectionT
|
||||
@NotNull
|
||||
@Override
|
||||
public String getFamilyName() {
|
||||
return "Replace with single comparison method";
|
||||
return InspectionsBundle.message("inspection.use.compare.method.fix.family.name");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user