From e700183f6f41b0641c1bca634e7e5e37497a605b Mon Sep 17 00:00:00 2001 From: Bas Leijdekkers Date: Mon, 3 Aug 2020 09:06:48 +0200 Subject: [PATCH] regexp: internationalize regexp checker default sample text GitOrigin-RevId: a8b76b48c442b66626e4e1f347846112ed10076f --- RegExpSupport/resources/messages/RegExpBundle.properties | 1 + .../org/intellij/lang/regexp/intention/CheckRegExpForm.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RegExpSupport/resources/messages/RegExpBundle.properties b/RegExpSupport/resources/messages/RegExpBundle.properties index 50c4454912bc..e3a07eaa1b83 100644 --- a/RegExpSupport/resources/messages/RegExpBundle.properties +++ b/RegExpSupport/resources/messages/RegExpBundle.properties @@ -148,3 +148,4 @@ warning.duplicate.predefined.character.class.0.inside.character.class=Duplicate weak.warning.fixed.repetition.range=Fixed repetition range weak.warning.repetition.range.replaceable.by.0=Repetition range replaceable by ''{0}'' weak.warning.single.repetition=Single repetition +checker.sample.text=Sample Text diff --git a/RegExpSupport/src/org/intellij/lang/regexp/intention/CheckRegExpForm.java b/RegExpSupport/src/org/intellij/lang/regexp/intention/CheckRegExpForm.java index 5c5b239f0357..ce57647a7407 100644 --- a/RegExpSupport/src/org/intellij/lang/regexp/intention/CheckRegExpForm.java +++ b/RegExpSupport/src/org/intellij/lang/regexp/intention/CheckRegExpForm.java @@ -102,7 +102,8 @@ public class CheckRegExpForm { }; setupIcon(myRegExp, myRegExpIcon); - final String sampleText = PropertiesComponent.getInstance(project).getValue(LAST_EDITED_REGEXP, "Sample Text"); + final String sampleText = PropertiesComponent.getInstance(project).getValue(LAST_EDITED_REGEXP, + RegExpBundle.message("checker.sample.text")); mySampleText = new EditorTextField(sampleText, project, PlainTextFileType.INSTANCE) { @Override protected EditorEx createEditor() {