From abcc22c75a46749ae8bba99bdd3739b6ec4d787c Mon Sep 17 00:00:00 2001 From: Bas Leijdekkers Date: Fri, 22 May 2026 14:41:34 +0200 Subject: [PATCH] IJPL-245533 [regexp] internationalize Explain RegExp family name GitOrigin-RevId: 640d7d44a1ffdb5d605495db1357139112f3f351 --- RegExpSupport/resources/messages/RegExpBundle.properties | 1 + .../intellij/lang/regexp/intention/ExplainRegExpIntention.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RegExpSupport/resources/messages/RegExpBundle.properties b/RegExpSupport/resources/messages/RegExpBundle.properties index 134492e4ecfc..b285ac2a80ce 100644 --- a/RegExpSupport/resources/messages/RegExpBundle.properties +++ b/RegExpSupport/resources/messages/RegExpBundle.properties @@ -128,6 +128,7 @@ inspection.tree.create.inspection=Using a RegExp\u2026 inspection.tree.group.description=Use the + button in the toolbar to create a new RegExp inspection.
\ RegExp inspections highlight code snippets matching the specified regular expression. A quick-fix can be provided by adding a string template which may contain group references (e.g. $1).

\ Add Custom RegExp Inspection\u2026 +intention.family.name.explain.regular.expression=Explain regular expression intention.family.name.flip.elements=Flip elements intention.family.name.replace=Replace intention.name.check.regexp=Check RegExp diff --git a/RegExpSupport/src/org/intellij/lang/regexp/intention/ExplainRegExpIntention.java b/RegExpSupport/src/org/intellij/lang/regexp/intention/ExplainRegExpIntention.java index a0111bb7ad5c..f740712543aa 100644 --- a/RegExpSupport/src/org/intellij/lang/regexp/intention/ExplainRegExpIntention.java +++ b/RegExpSupport/src/org/intellij/lang/regexp/intention/ExplainRegExpIntention.java @@ -33,6 +33,7 @@ import com.intellij.util.SmartList; import com.intellij.util.ui.JBUI; import com.intellij.util.ui.UIUtil; import com.intellij.util.ui.tree.TreeUtil; +import org.intellij.lang.regexp.RegExpBundle; import org.intellij.lang.regexp.RegExpFile; import org.intellij.lang.regexp.RegExpLanguage; import org.intellij.lang.regexp.RegExpLanguageHosts; @@ -247,7 +248,7 @@ public final class ExplainRegExpIntention implements IntentionAction, Iconable, @Override public @NotNull String getFamilyName() { - return "Explain regular expression"; + return RegExpBundle.message("intention.family.name.explain.regular.expression"); } @Override