Table of Contents

Class BaseXMLParser

Namespace
Tlumach.Base
Assembly
Tlumach.Base.dll
public abstract class BaseXMLParser : BaseParser
Inheritance
BaseXMLParser
Derived
Inherited Members

Fields

CXmlNamespace

protected static readonly XNamespace CXmlNamespace

Field Value

XNamespace

Methods

InternalLoadTranslationEntriesFromXML(XElement, Translation?, string, TextFormat?)

protected abstract Translation InternalLoadTranslationEntriesFromXML(XElement parentNode, Translation? translation, string groupName, TextFormat? textProcessingMode)

Parameters

parentNode XElement
translation Translation
groupName string
textProcessingMode TextFormat?

Returns

Translation

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

translationText string

The text of the file to load.

culture CultureInfo

An 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.

textProcessingMode TextFormat?

The mode of processing of the text of the translation file.

Returns

Translation

The loaded translation or null if loading failed.

ParseConfiguration(string, Assembly?)

public override TranslationConfiguration? ParseConfiguration(string fileContent, Assembly? assembly)

Parameters

fileContent string
assembly Assembly

Returns

TranslationConfiguration