C# Class Sage.ResourceManagement.Internationalizer

Provides facilities for transforming XML resources into separate, localized versions.
ファイルを表示 Open project: igorfrance/sage Class Usage Examples

Public Methods

Method Description
Internationalize ( XmlResource resource ) : InternationalizationSummary

Internationalizes the specified resource.

Internationalizer ( SageContext context ) : System

Initializes a new instance of the Internationalizer class, using the specified context.

Transform ( XmlDocument input, DictionaryFileCollection collection, string locale, XmlWriter output, InternationalizeType type ) : void

Transforms the specified input.

Private Methods

Method Description
GetTranslationDictionaryCollection ( SageContext context ) : DictionaryFileCollection

Method Details

Internationalize() public method

Internationalizes the specified resource.
/// One of the locales configured for the category being processed doesn't have any dictionary files. ///
public Internationalize ( XmlResource resource ) : InternationalizationSummary
resource XmlResource The resource.
return InternationalizationSummary

Internationalizer() public method

Initializes a new instance of the Internationalizer class, using the specified context.
public Internationalizer ( SageContext context ) : System
context SageContext The context under which the code is being executed.
return System

Transform() public method

Transforms the specified input.
public Transform ( XmlDocument input, DictionaryFileCollection collection, string locale, XmlWriter output, InternationalizeType type ) : void
input System.Xml.XmlDocument The input.
collection DictionaryFileCollection The collection.
locale string The locale.
output System.Xml.XmlWriter The output.
type InternationalizeType The type.
return void