C# Class NGettext.PluralCompile.MoCompilingPluralLoader

A catalog loader that loads data from files in the GNU/Gettext MO file format and generates a plural form rule using CompiledPluralRuleGenerator.
Inheritance: NGettext.Loaders.MoLoader
显示文件 Open project: neris/NGettext

Public Methods

Method Description
MoCompilingPluralLoader ( Stream moStream ) : System

Initializes a new instance of the MoLoader class which will try to load a MO file from the specified stream. CompiledPluralRuleGenerator will be used to generate a plural form rule.

MoCompilingPluralLoader ( Stream moStream, MoFileParser parser ) : System

Initializes a new instance of the MoLoader class which will try to load a MO file from the specified stream. CompiledPluralRuleGenerator will be used to generate a plural form rule.

MoCompilingPluralLoader ( string filePath ) : System

Initializes a new instance of the MoLoader class which will try to load a MO file from the specified path. CompiledPluralRuleGenerator will be used to generate a plural form rule.

MoCompilingPluralLoader ( string filePath, MoFileParser parser ) : System

Initializes a new instance of the MoLoader class which will try to load a MO file from the specified path. CompiledPluralRuleGenerator will be used to generate a plural form rule.

MoCompilingPluralLoader ( string domain, string localeDir ) : System

Initializes a new instance of the MoLoader class which will try to load a MO file that will be located in the localeDir using the domain name and catalog's culture info. CompiledPluralRuleGenerator will be used to generate a plural form rule.

MoCompilingPluralLoader ( string domain, string localeDir, MoFileParser parser ) : System

Initializes a new instance of the MoLoader class which will try to load a MO file that will be located in the localeDir using the domain name and catalog's culture info. CompiledPluralRuleGenerator will be used to generate a plural form rule.

Method Details

MoCompilingPluralLoader() public method

Initializes a new instance of the MoLoader class which will try to load a MO file from the specified stream. CompiledPluralRuleGenerator will be used to generate a plural form rule.
public MoCompilingPluralLoader ( Stream moStream ) : System
moStream Stream
return System

MoCompilingPluralLoader() public method

Initializes a new instance of the MoLoader class which will try to load a MO file from the specified stream. CompiledPluralRuleGenerator will be used to generate a plural form rule.
public MoCompilingPluralLoader ( Stream moStream, MoFileParser parser ) : System
moStream Stream
parser NGettext.Loaders.MoFileParser
return System

MoCompilingPluralLoader() public method

Initializes a new instance of the MoLoader class which will try to load a MO file from the specified path. CompiledPluralRuleGenerator will be used to generate a plural form rule.
public MoCompilingPluralLoader ( string filePath ) : System
filePath string
return System

MoCompilingPluralLoader() public method

Initializes a new instance of the MoLoader class which will try to load a MO file from the specified path. CompiledPluralRuleGenerator will be used to generate a plural form rule.
public MoCompilingPluralLoader ( string filePath, MoFileParser parser ) : System
filePath string
parser NGettext.Loaders.MoFileParser
return System

MoCompilingPluralLoader() public method

Initializes a new instance of the MoLoader class which will try to load a MO file that will be located in the localeDir using the domain name and catalog's culture info. CompiledPluralRuleGenerator will be used to generate a plural form rule.
public MoCompilingPluralLoader ( string domain, string localeDir ) : System
domain string
localeDir string
return System

MoCompilingPluralLoader() public method

Initializes a new instance of the MoLoader class which will try to load a MO file that will be located in the localeDir using the domain name and catalog's culture info. CompiledPluralRuleGenerator will be used to generate a plural form rule.
public MoCompilingPluralLoader ( string domain, string localeDir, MoFileParser parser ) : System
domain string
localeDir string
parser NGettext.Loaders.MoFileParser
return System