Class BaseXMLParser
public abstract class BaseXMLParser : BaseParser
- Inheritance
-
BaseXMLParser
- Derived
- Inherited Members
Fields
CXmlNamespace
protected static readonly XNamespace CXmlNamespace
Field Value
Methods
InternalLoadTranslationEntriesFromXML(XElement, CultureInfo?, Translation?, string, TextFormat?)
protected abstract Translation InternalLoadTranslationEntriesFromXML(XElement parentNode, CultureInfo? culture, Translation? translation, string groupName, TextFormat? textProcessingMode)
Parameters
parentNodeXElementcultureCultureInfotranslationTranslationgroupNamestringtextProcessingModeTextFormat?
Returns
LoadTranslation(string, CultureInfo?, TextFormat?)
Loads the translation information from the file and returns a translation.
public override Translation? LoadTranslation(string translationText, CultureInfo? culture, TextFormat? textProcessingMode)
Parameters
translationTextstringThe text of the file to load.
cultureCultureInfoAn optional reference to the locale, whose translation is to be loaded. Makes sense for CSV and TSV formats that may contain multiple translations in one file.
textProcessingModeTextFormat?The mode of processing of the text of the translation file.
Returns
- Translation
The loaded translation or null if loading failed.
LoadTranslationWithLocations(string, CultureInfo?, TextFormat?)
Parses the translation using a streaming XML reader that captures exact key positions. Called when PopulateKeyLocations is true.
protected virtual Translation? LoadTranslationWithLocations(string translationText, CultureInfo? culture, TextFormat? textProcessingMode)
Parameters
translationTextstringcultureCultureInfotextProcessingModeTextFormat?
Returns
ParseConfiguration(string, Assembly?)
public override TranslationConfiguration? ParseConfiguration(string fileContent, Assembly? assembly)