Table of Contents

Class TranslationProvider

Namespace
Dynamicweb.Content.ExternalTranslations
Assembly
Dynamicweb.dll

Represents base class for translation extensibility

public abstract class TranslationProvider : ConfigurableAddIn
Inheritance
TranslationProvider
Inherited Members

Properties

Id

public int Id { get; set; }

Property Value

int

Name

Gets the name of the provider.

public string Name { get; }

Property Value

string

Methods

Translate(CultureInfo, CultureInfo, bool, IEnumerable<string>)

Called for text translation.

public abstract Result<IEnumerable<string>> Translate(CultureInfo sourceLanguageInfo, CultureInfo destinationLanguageInfo, bool htmlText, IEnumerable<string> sourceText)

Parameters

sourceLanguageInfo CultureInfo
destinationLanguageInfo CultureInfo
htmlText bool
sourceText IEnumerable<string>

Returns

Result<IEnumerable<string>>
To top