regexp: internationalize regexp checker default sample text

GitOrigin-RevId: a8b76b48c442b66626e4e1f347846112ed10076f
This commit is contained in:
Bas Leijdekkers
2020-08-03 09:06:48 +02:00
committed by intellij-monorepo-bot
parent 77fd895afb
commit e700183f6f
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -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() {