forked from JetBrains/intellij-community
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitOrigin-RevId: 1fc5b1306140d145eadaa9dd2d5037fae4d814be
- Loading branch information
1 parent
cdc7f54
commit 8eea40a
Showing
13 changed files
with
129 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
xml/xml-psi-api/resources/messages/XmlParserBundle.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
dtd.parser.message.left.paren.or.entityref.or.empty.or.any.expected=( or entity ref or EMPTY or ANY expected | ||
dtd.parser.message.literal.public.system.expected=Literal, PUBLIC or SYSTEM expected | ||
dtd.parser.message.name.expected=XML name expected | ||
dtd.parser.message.name.or.entity.ref.expected=XML name or entity ref expected | ||
dtd.parser.message.rparen.expected=) expected | ||
dtd.parser.message.whitespace.expected=Whitespace expected | ||
dtd.parser.message.expected.prologue.tag.termination.expected='?>' expected | ||
|
||
xml.parsing.absent.root.tag=Valid XML document must have a root tag | ||
xml.parsing.attribute.value.expected=Attribute value expected | ||
xml.parsing.bad.character=Bad character | ||
xml.parsing.closing.tag.is.not.done=Closing tag is not valid | ||
xml.parsing.closing.tag.matches.nothing=Closing tag matches nothing | ||
xml.parsing.closing.tag.name.missing=Closing tag name is missing | ||
xml.parsing.expected.attribute.eq.sign== expected | ||
xml.parsing.named.element.is.not.closed=Element {0} is not closed | ||
xml.parsing.multiple.root.tags=Multiple root tags | ||
xml.parsing.processing.instruction.name.expected=Processing instruction name expected | ||
xml.parsing.tag.name.expected=Tag name expected | ||
xml.parsing.tag.start.is.not.closed=Tag start is not closed | ||
xml.parsing.top.level.element.is.not.completed=Top level element is not completed | ||
xml.parsing.unclosed.attribute.value=Attribute value is not closed | ||
xml.parsing.unescaped.ampersand.or.nonterminated.character.entity.reference=Unescaped \\& or nonterminated character/entity reference | ||
xml.parsing.unexpected.end.of.file=Unexpected end of file | ||
xml.parsing.unexpected.token=Unexpected token | ||
xml.parsing.unexpected.tokens=Unexpected tokens | ||
xml.parsing.unterminated.processing.instruction=Processing instruction not terminated | ||
xml.parsing.way.too.unbalanced=Way too unbalanced. Stopping attempt to balance tags properly at this point |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
xml/xml-psi-api/src/com/intellij/xml/parsing/XmlParserBundle.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.intellij.xml.parsing | ||
|
||
import com.intellij.DynamicBundle | ||
import org.jetbrains.annotations.Nls | ||
import org.jetbrains.annotations.NonNls | ||
import org.jetbrains.annotations.PropertyKey | ||
import java.util.function.Supplier | ||
|
||
object XmlParserBundle { | ||
const val BUNDLE: @NonNls String = "messages.XmlParserBundle" | ||
private val INSTANCE = DynamicBundle(XmlParserBundle::class.java, BUNDLE) | ||
|
||
@JvmStatic | ||
fun message( | ||
@PropertyKey(resourceBundle = BUNDLE) | ||
key: String, | ||
vararg params: Any?, | ||
): @Nls String { | ||
return INSTANCE.getMessage(key = key, params = params) | ||
} | ||
|
||
@JvmStatic | ||
fun messagePointer( | ||
@PropertyKey(resourceBundle = BUNDLE) | ||
key: String, | ||
vararg params: Any?, | ||
): Supplier<String> { | ||
return INSTANCE.getLazyMessage(key = key, params = params) | ||
} | ||
} |
Oops, something went wrong.