Table of Contents

Class ValidatedFile

Namespace
Tlumach.Validation
Assembly
Tlumach.dll

A translation file checked by TranslationValidator.

public sealed class ValidatedFile
Inheritance
ValidatedFile
Inherited Members

Constructors

ValidatedFile(string, TranslationFileOrigin, string)

Initializes a new instance of the ValidatedFile class.

public ValidatedFile(string filePath, TranslationFileOrigin origin, string locale)

Parameters

filePath string

The full path of the file.

origin TranslationFileOrigin

How the file was found.

locale string

The locale for which the file is meant (the culture in its name, or the locale given in the configuration), or an empty string for the default file and for the other entry.

Properties

CheckedLocales

Gets the locales whose translations were loaded from the file (several for the formats that keep many locales in one file).

public IList<string> CheckedLocales { get; }

Property Value

IList<string>

EntryCount

Gets or sets the number of entries loaded from the file (for a file with several locales, the largest number among them).

public int EntryCount { get; set; }

Property Value

int

ErrorCount

Gets or sets the number of errors found in the file.

public int ErrorCount { get; set; }

Property Value

int

FilePath

Gets the full path of the file.

public string FilePath { get; }

Property Value

string

InfoCount

Gets or sets the number of informational messages about the file.

public int InfoCount { get; set; }

Property Value

int

Locale

Gets the locale for which the file is meant, or an empty string for the default file and for the other entry of the configuration.

public string Locale { get; }

Property Value

string

Origin

Gets how the file was found.

public TranslationFileOrigin Origin { get; }

Property Value

TranslationFileOrigin

WarningCount

Gets or sets the number of warnings about the file.

public int WarningCount { get; set; }

Property Value

int