XML: follow quick-fix/intention text convention

GitOrigin-RevId: dfd4b04ca3f207dc3a32791e4f995c259abc8b91
This commit is contained in:
Bas Leijdekkers
2022-01-03 16:11:56 +01:00
committed by intellij-monorepo-bot
parent d717fcaf9c
commit b1bc54681e
4 changed files with 4 additions and 9 deletions

View File

@@ -30,11 +30,7 @@ public class CheckValidXmlInScriptBodyInspection extends CheckValidXmlInScriptBo
@Override
@NotNull
public String getText() {
final String character = getXmlCharacter();
return character.equals("&")
? XmlBundle.message("xml.quickfix.unescaped.xml.character.ampersand")
: XmlBundle.message("xml.quickfix.unescaped.xml.character.text", character);
return XmlBundle.message("xml.quickfix.unescaped.xml.character.text", getXmlCharacter());
}
@Override

View File

@@ -120,8 +120,7 @@ xml.options.border.title.bem=BEM
xml.progress.changing.to.default.namespace=Changing to default namespace
xml.quickfix.unescaped.xml.character.family=Escape char
xml.quickfix.unescaped.xml.character.text=Escape {0}
xml.quickfix.unescaped.xml.character.ampersand=Escape ampersand
xml.quickfix.unescaped.xml.character.text=Escape ''{0}''
xml.schemas.border.title.default.html.language.level=Default HTML language level
xml.schemas.radio.button.html.4.http.www.w3.org.tr.html4.loose.dtd=HTML 4 ("http://www.w3.org/TR/html4/loose.dtd")

View File

@@ -57,7 +57,7 @@ xml.intention.rename.start.tag=Rename start tag ''{0}'' to ''{1}''
xml.intention.replace.tag.empty.body.with.empty.end=Collapse empty tag
xml.intention.remove.unused.namespace.location=Remove unused namespace location
xml.quickfix.escape.ampersand=Escape ampersand
xml.quickfix.escape.ampersand=Escape '\\&'
xml.quickfix.change.root.element.to=Change root tag name to {0}
xml.quickfix.declare.id.in.comment=Declare invalid id in comment annotation
xml.quickfix.remove.attribute.family=Remove attribute

View File

@@ -63,7 +63,7 @@ xml.terms.namespace.alias=namespace
xml.find.usages.presentable.name.of.containing.file={0} of file {1}
xml.quickfix.insert.required.attribute.text=Insert required attribute {0}
xml.quickfix.insert.required.attribute.text=Insert required attribute ''{0}''
xml.quickfix.insert.required.attribute.family=Insert required attribute
xml.quickfix.add.attribute.value.text=Add attribute value
xml.quickfix.create.namespace.declaration.text=Create {0} declaration