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
filePathstringThe full path of the file.
originTranslationFileOriginHow the file was found.
localestringThe 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
otherentry.
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
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
ErrorCount
Gets or sets the number of errors found in the file.
public int ErrorCount { get; set; }
Property Value
FilePath
Gets the full path of the file.
public string FilePath { get; }
Property Value
InfoCount
Gets or sets the number of informational messages about the file.
public int InfoCount { get; set; }
Property Value
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
Origin
Gets how the file was found.
public TranslationFileOrigin Origin { get; }
Property Value
WarningCount
Gets or sets the number of warnings about the file.
public int WarningCount { get; set; }