Class ResxParser
Assembly: Tlumach.Base.dll
Syntax
public class ResxParser : BaseXMLParser
Properties
LocaleSeparatorChar
Gets or sets the character that is used to separate the locale name from the base name in the names of locale-specific translation files.
Declaration
public static char LocaleSeparatorChar { get; set; }
Property Value
Methods
CanHandleExtension(string)
Checks whether this parser can handle a translation file with the given extension.
This method is not used for configuration files.
Declaration
public override bool CanHandleExtension(string fileExtension)
Parameters
| Type |
Name |
Description |
| string |
fileExtension |
The extension to check.
|
Returns
| Type |
Description |
| bool |
true if the extension is supported and false otherwise.
|
Overrides
GetLocaleSeparatorChar()
Declaration
public override char GetLocaleSeparatorChar()
Returns
Overrides
GetTextProcessingMode()
Declaration
protected override TextFormat GetTextProcessingMode()
Returns
Overrides
InternalLoadTranslationEntriesFromXML(XElement, Translation?, string)
Declaration
protected override Translation InternalLoadTranslationEntriesFromXML(XElement parentNode, Translation? translation, string groupName)
Parameters
Returns
Overrides
InternalLoadTranslationStructure(string)
Loads the keys from the default translation file and builds a tree of keys.
Declaration
protected override TranslationTree? InternalLoadTranslationStructure(string content)
Parameters
| Type |
Name |
Description |
| string |
content |
The content to parse.
|
Returns
Overrides
Exceptions
| Type |
Condition |
| TextParseException |
Gets thrown when parsing of a default translation file fails.
|
Use()
Initializes the parser class, making it available for use.
Declaration