From eb9351eedc88cf6adcdad97d25d4020bc69c9094 Mon Sep 17 00:00:00 2001 From: UNV Date: Thu, 9 Oct 2025 12:00:00 +0300 Subject: [PATCH] Inspection localizing. --- .../codeInsight/PropertyIsNotValidInspection.java | 10 +++++----- .../codeInsight/PropertyValueIsNotValidInspection.java | 9 +++++---- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/consulo-xstylesheet/src/main/java/consulo/xstylesheet/codeInsight/PropertyIsNotValidInspection.java b/consulo-xstylesheet/src/main/java/consulo/xstylesheet/codeInsight/PropertyIsNotValidInspection.java index 1ef97ba..2cb9ac6 100644 --- a/consulo-xstylesheet/src/main/java/consulo/xstylesheet/codeInsight/PropertyIsNotValidInspection.java +++ b/consulo-xstylesheet/src/main/java/consulo/xstylesheet/codeInsight/PropertyIsNotValidInspection.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package consulo.xstylesheet.codeInsight; import consulo.annotation.access.RequiredReadAction; @@ -24,6 +23,7 @@ import consulo.language.editor.rawHighlight.HighlightDisplayLevel; import consulo.language.psi.PsiElement; import consulo.language.psi.PsiElementVisitor; +import consulo.localize.LocalizeValue; import consulo.xstylesheet.definition.XStyleSheetProperty; import consulo.xstylesheet.psi.PsiXStyleSheetProperty; import consulo.xstylesheet.psi.PsiXStyleSheetVariable; @@ -67,14 +67,14 @@ public void visitElement(PsiElement element) { @Nonnull @Override - public String getGroupDisplayName() { - return "CSS"; + public LocalizeValue getGroupDisplayName() { + return LocalizeValue.localizeTODO("CSS"); } @Nonnull @Override - public String getDisplayName() { - return "Invalid property name"; + public LocalizeValue getDisplayName() { + return LocalizeValue.localizeTODO("Invalid property name"); } @Nonnull diff --git a/consulo-xstylesheet/src/main/java/consulo/xstylesheet/codeInsight/PropertyValueIsNotValidInspection.java b/consulo-xstylesheet/src/main/java/consulo/xstylesheet/codeInsight/PropertyValueIsNotValidInspection.java index e2bafb2..b6f0271 100644 --- a/consulo-xstylesheet/src/main/java/consulo/xstylesheet/codeInsight/PropertyValueIsNotValidInspection.java +++ b/consulo-xstylesheet/src/main/java/consulo/xstylesheet/codeInsight/PropertyValueIsNotValidInspection.java @@ -24,6 +24,7 @@ import consulo.language.editor.rawHighlight.HighlightDisplayLevel; import consulo.language.psi.PsiElement; import consulo.language.psi.PsiElementVisitor; +import consulo.localize.LocalizeValue; import consulo.xstylesheet.definition.XStyleSheetProperty; import consulo.xstylesheet.psi.PsiXStyleSheetProperty; import consulo.xstylesheet.psi.PsiXStyleSheetPropertyValuePart; @@ -70,14 +71,14 @@ public void visitElement(PsiElement element) { @Nonnull @Override - public String getGroupDisplayName() { - return "CSS"; + public LocalizeValue getGroupDisplayName() { + return LocalizeValue.localizeTODO("CSS"); } @Nonnull @Override - public String getDisplayName() { - return "Invalid property value"; + public LocalizeValue getDisplayName() { + return LocalizeValue.localizeTODO("Invalid property value"); } @Nonnull