Table of Contents

Class ProductFieldTranslation

Namespace
Dynamicweb.Ecommerce.Products
Assembly
Dynamicweb.Ecommerce.dll
The class ProductFieldTranslation represents ProductField translation.
[Serializable]
public class ProductFieldTranslation : DbObject
Inheritance
ProductFieldTranslation
Inherited Members

Constructors

ProductFieldTranslation()

Initializes a new instance of the ProductFieldTranslation class.
public ProductFieldTranslation()

Properties

Description

The translation field description.
public string Description { get; set; }

Property Value

string

FieldId

The field id.
public string FieldId { get; set; }

Property Value

string

LanguageId

The language Id.
public string LanguageId { get; set; }

Property Value

string

Name

The translation name.
public string Name { get; set; }

Property Value

string

ValidationErrorMessage

Gets or sets the validation error message.
public string ValidationErrorMessage { get; set; }

Property Value

string

Methods

ClearCache()

Clears the translations cache.
public static void ClearCache()

Delete(int)

Deletes the translation by given id.
public override void Delete(int translationId)

Parameters

translationId int

Fill(IDataReader)

Fills the translation with data from given reader.
public override void Fill(IDataReader reader)

Parameters

reader IDataReader

FillRow(DataRow)

Override the FillRow method to map all the properties values to their respective field on the datarow. Used when the object is being saved.
protected override void FillRow(DataRow row)

Parameters

row DataRow
The datarow to fill with data.

GetAllTranslations()

Gets the all translations
public static ProductFieldTranslationCollection GetAllTranslations()

Returns

ProductFieldTranslationCollection
The all translations

GetTranslatedField(string, string)

Gets the product field translation
public static ProductFieldTranslation GetTranslatedField(string fieldId, string languageId)

Parameters

fieldId string
languageId string

Returns

ProductFieldTranslation
The all translations

GetTranslatedFieldDescription(ProductField, string)

Gets the product field Name translation
public static string GetTranslatedFieldDescription(ProductField field, string languageId)

Parameters

field ProductField
languageId string

Returns

string
The all translations

GetTranslatedFieldErrorMessage(ProductField, string)

Gets the product field Name translation
public static string GetTranslatedFieldErrorMessage(ProductField field, string languageId)

Parameters

field ProductField
languageId string

Returns

string
The all translations

GetTranslatedFieldName(ProductField, string)

Gets the product field Name translation
public static string GetTranslatedFieldName(ProductField field, string languageId)

Parameters

field ProductField
languageId string

Returns

string
The all translations

GetTranslatedFields(string)

Gets the product field translations (all languages)
public static List<ProductFieldTranslation> GetTranslatedFields(string fieldId)

Parameters

fieldId string

Returns

List<ProductFieldTranslation>
The all translations

IsTranslationExists(string, string)

Is translation exists
public static bool IsTranslationExists(string fieldId, string languageId)

Parameters

fieldId string
languageId string

Returns

bool

Save()

Saves the translation.
public override void Save()
To top