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 required string FieldId { get; set; }

Property Value

string

LanguageId

The language Id.

public required 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 id)

Parameters

id int

The translation ID.

GetAllTranslations()

Gets all translations

public static ProductFieldTranslationCollection GetAllTranslations()

Returns

ProductFieldTranslationCollection

GetTranslatedField(string, string)

Gets the product field translation

public static ProductFieldTranslation? GetTranslatedField(string fieldId, string languageId)

Parameters

fieldId string
languageId string

Returns

ProductFieldTranslation

GetTranslatedFieldDescription(ProductField, string)

Gets the product field Description translation

public static string? GetTranslatedFieldDescription(ProductField field, string languageId)

Parameters

field ProductField
languageId string

Returns

string

GetTranslatedFieldErrorMessage(ProductField, string)

Gets the product field validation error message translation

public static string? GetTranslatedFieldErrorMessage(ProductField field, string languageId)

Parameters

field ProductField
languageId string

Returns

string

GetTranslatedFieldName(ProductField, string)

Gets the product field Name translation

public static string? GetTranslatedFieldName(ProductField field, string languageId)

Parameters

field ProductField
languageId string

Returns

string

GetTranslatedFields(string)

Gets the product field translations (all languages)

public static List<ProductFieldTranslation> GetTranslatedFields(string fieldId)

Parameters

fieldId string

Returns

List<ProductFieldTranslation>

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