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
FieldId
The field id.
public required string FieldId { get; set; }
Property Value
LanguageId
The language Id.
public required string LanguageId { get; set; }
Property Value
Name
The translation name.
public string? Name { get; set; }
Property Value
ValidationErrorMessage
Gets or sets the validation error message.
public string? ValidationErrorMessage { get; set; }
Property Value
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
idintThe translation ID.
GetAllTranslations()
Gets all translations
public static ProductFieldTranslationCollection GetAllTranslations()
Returns
GetTranslatedField(string, string)
Gets the product field translation
public static ProductFieldTranslation? GetTranslatedField(string fieldId, string languageId)
Parameters
Returns
GetTranslatedFieldDescription(ProductField, string)
Gets the product field Description translation
public static string? GetTranslatedFieldDescription(ProductField field, string languageId)
Parameters
fieldProductFieldlanguageIdstring
Returns
GetTranslatedFieldErrorMessage(ProductField, string)
Gets the product field validation error message translation
public static string? GetTranslatedFieldErrorMessage(ProductField field, string languageId)
Parameters
fieldProductFieldlanguageIdstring
Returns
GetTranslatedFieldName(ProductField, string)
Gets the product field Name translation
public static string? GetTranslatedFieldName(ProductField field, string languageId)
Parameters
fieldProductFieldlanguageIdstring
Returns
GetTranslatedFields(string)
Gets the product field translations (all languages)
public static List<ProductFieldTranslation> GetTranslatedFields(string fieldId)
Parameters
fieldIdstring
Returns
IsTranslationExists(string, string)
Is translation exists
public static bool IsTranslationExists(string fieldId, string languageId)
Parameters
Returns
Save()
Saves the translation.
public override void Save()