Table of Contents

Class BaseTableWriter

Namespace
Tlumach.Writers
Assembly
Tlumach.Writers.dll
public abstract class BaseTableWriter : BaseWriter
Inheritance
BaseTableWriter
Derived
Inherited Members

Methods

EndRow(StringBuilder)

protected abstract void EndRow(StringBuilder sb)

Parameters

sb StringBuilder

InternalWriteTranslations(TranslationManager, IReadOnlyCollection<CultureInfo>, Stream)

Writes translations.

protected override void InternalWriteTranslations(TranslationManager translationManager, IReadOnlyCollection<CultureInfo> cultures, Stream stream)

Parameters

translationManager TranslationManager

The translation translationManager from which the translations should be picked.

cultures IReadOnlyCollection<CultureInfo>

The list of cultures to write.

stream Stream

The stream to write the resulting file to.

WriteCell(string, StringBuilder)

protected abstract void WriteCell(string value, StringBuilder sb)

Parameters

value string
sb StringBuilder

WriteConfiguration(TranslationManager, Stream)

public override void WriteConfiguration(TranslationManager translationManager, Stream stream)

Parameters

translationManager TranslationManager
stream Stream

WriteTranslation(TranslationManager, CultureInfo, Stream)

Writes translations in the format that supports one language in one file.

public override void WriteTranslation(TranslationManager translationManager, CultureInfo culture, Stream stream)

Parameters

translationManager TranslationManager

The translation translationManager from which the translations should be picked.

culture CultureInfo

The culture to write.

Set this parameter to InvariantCulture to signal that the default translation should be written.

stream Stream

The stream to write the resulting file to.

WriteTranslations(TranslationManager, IReadOnlyCollection<CultureInfo>, Stream)

Writes translations in the format that supports multiple languages in one file.

public override void WriteTranslations(TranslationManager translationManager, IReadOnlyCollection<CultureInfo> cultures, Stream stream)

Parameters

translationManager TranslationManager

The translation translationManager from which the translations should be picked.

cultures IReadOnlyCollection<CultureInfo>

The list of cultures to write.

stream Stream

The stream to write the resulting file to.