Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Class Localization

OptimaJet.Workflow.Core.Model.Localization

public class Localization : List<Translation>, IList<Translation>, ICollection<Translation>, IReadOnlyList<Translation>, IReadOnlyCollection<Translation>, IEnumerable<Translation>, IList, ICollection, IEnumerable, ILocalizationProvider

Inheritance

  • System.Object
  • System.Collections.Generic.List{OptimaJet.Workflow.Core.Model.Translation}

Implemented Interfaces

Constructors

public Localization() #
public Localization(IEnumerable<Translation> collection) #

Parameters

Name
Type
Description
collection
IEnumerable<Translation>

Methods

public List<Translation> GetAll(string schemeCode = "") #
Get all localized strings for specific scheme. Used in the designer with predefined mark.

Parameters

Name
Type
Description
schemeCode
String
Scheme code

Returns

Type
Description
List<Translation>
public Translation? Get(string name, LocalizeType type, CultureInfo culture) #
Get the localized string.

Parameters

Name
Type
Description
name
String
System name
type
LocalizeType
Localize type of name
culture
CultureInfo
Culture

Returns

Type
Description
Translation
Localized string if exists, else null