C# 클래스 NGettext.Loaders.MoLoader

A catalog loader that loads data from files in the GNU/Gettext MO file format.
상속: ILoader
파일 보기 프로젝트 열기: neris/NGettext

공개 메소드들

메소드 설명
Load ( Catalog catalog ) : void

Loads translations to the specified catalog using catalog's culture info.

MoLoader ( Stream moStream ) : System

Initializes a new instance of the MoLoader class which will try to load a MO file from the specified stream.

MoLoader ( Stream moStream, IPluralRuleGenerator pluralRuleGenerator ) : System

Initializes a new instance of the MoLoader class which will try to load a MO file from the specified stream.

MoLoader ( Stream moStream, IPluralRuleGenerator pluralRuleGenerator, MoFileParser parser ) : System

Initializes a new instance of the MoLoader class which will try to load a MO file from the specified stream.

MoLoader ( 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.

MoLoader ( string filePath ) : System

Initializes a new instance of the MoLoader class which will try to load a MO file from the specified path.

MoLoader ( string filePath, IPluralRuleGenerator pluralRuleGenerator ) : System

Initializes a new instance of the MoLoader class which will try to load a MO file from the specified path.

MoLoader ( string filePath, IPluralRuleGenerator pluralRuleGenerator, MoFileParser parser ) : System

Initializes a new instance of the MoLoader class which will try to load a MO file from the specified path.

MoLoader ( 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.

MoLoader ( 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.

MoLoader ( string domain, string localeDir, IPluralRuleGenerator pluralRuleGenerator ) : 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.

MoLoader ( string domain, string localeDir, IPluralRuleGenerator pluralRuleGenerator, 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.

MoLoader ( 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.

보호된 메소드들

메소드 설명
FindTranslationFile ( CultureInfo cultureInfo, string domain, string localeDir ) : string

Finds corresponding translation file using specified culture info, domain and a locale directory.

GetFileName ( string localeDir, string domain, string locale ) : string

Constructs a standard path to the MO translation file using specified path to the locale directory, domain and locale's TwoLetterISOLanguageName string.

Load ( MoFile parsedMoFile, Catalog catalog ) : void

Loads translations to the specified catalog using specified MO file parser.

Load ( Stream moStream, Catalog catalog ) : void

Loads translations to the specified catalog from specified MO file stream.

Load ( string filePath, Catalog catalog ) : void

Loads translations to the specified catalog from specified MO file path.

Load ( string domain, string localeDir, Catalog catalog ) : void

Loads translations to the specified catalog using catalog's culture info from specified locale directory and specified domain.

메소드 상세

FindTranslationFile() 보호된 메소드

Finds corresponding translation file using specified culture info, domain and a locale directory.
protected FindTranslationFile ( CultureInfo cultureInfo, string domain, string localeDir ) : string
cultureInfo System.Globalization.CultureInfo
domain string
localeDir string
리턴 string

GetFileName() 보호된 메소드

Constructs a standard path to the MO translation file using specified path to the locale directory, domain and locale's TwoLetterISOLanguageName string.
protected GetFileName ( string localeDir, string domain, string locale ) : string
localeDir string
domain string
locale string
리턴 string

Load() 공개 메소드

Loads translations to the specified catalog using catalog's culture info.
public Load ( Catalog catalog ) : void
catalog Catalog A catalog instance to load translations to.
리턴 void

Load() 보호된 메소드

Loads translations to the specified catalog using specified MO file parser.
protected Load ( MoFile parsedMoFile, Catalog catalog ) : void
parsedMoFile MoFile
catalog Catalog
리턴 void

Load() 보호된 메소드

Loads translations to the specified catalog from specified MO file stream.
protected Load ( Stream moStream, Catalog catalog ) : void
moStream Stream
catalog Catalog
리턴 void

Load() 보호된 메소드

Loads translations to the specified catalog from specified MO file path.
protected Load ( string filePath, Catalog catalog ) : void
filePath string
catalog Catalog
리턴 void

Load() 보호된 메소드

Loads translations to the specified catalog using catalog's culture info from specified locale directory and specified domain.
protected Load ( string domain, string localeDir, Catalog catalog ) : void
domain string
localeDir string
catalog Catalog
리턴 void

MoLoader() 공개 메소드

Initializes a new instance of the MoLoader class which will try to load a MO file from the specified stream.
public MoLoader ( Stream moStream ) : System
moStream Stream
리턴 System

MoLoader() 공개 메소드

Initializes a new instance of the MoLoader class which will try to load a MO file from the specified stream.
public MoLoader ( Stream moStream, IPluralRuleGenerator pluralRuleGenerator ) : System
moStream Stream
pluralRuleGenerator IPluralRuleGenerator
리턴 System

MoLoader() 공개 메소드

Initializes a new instance of the MoLoader class which will try to load a MO file from the specified stream.
public MoLoader ( Stream moStream, IPluralRuleGenerator pluralRuleGenerator, MoFileParser parser ) : System
moStream Stream
pluralRuleGenerator IPluralRuleGenerator
parser MoFileParser
리턴 System

MoLoader() 공개 메소드

Initializes a new instance of the MoLoader class which will try to load a MO file from the specified stream.
public MoLoader ( Stream moStream, MoFileParser parser ) : System
moStream Stream
parser MoFileParser
리턴 System

MoLoader() 공개 메소드

Initializes a new instance of the MoLoader class which will try to load a MO file from the specified path.
public MoLoader ( string filePath ) : System
filePath string
리턴 System

MoLoader() 공개 메소드

Initializes a new instance of the MoLoader class which will try to load a MO file from the specified path.
public MoLoader ( string filePath, IPluralRuleGenerator pluralRuleGenerator ) : System
filePath string
pluralRuleGenerator IPluralRuleGenerator
리턴 System

MoLoader() 공개 메소드

Initializes a new instance of the MoLoader class which will try to load a MO file from the specified path.
public MoLoader ( string filePath, IPluralRuleGenerator pluralRuleGenerator, MoFileParser parser ) : System
filePath string
pluralRuleGenerator IPluralRuleGenerator
parser MoFileParser
리턴 System

MoLoader() 공개 메소드

Initializes a new instance of the MoLoader class which will try to load a MO file from the specified path.
public MoLoader ( string filePath, MoFileParser parser ) : System
filePath string
parser MoFileParser
리턴 System

MoLoader() 공개 메소드

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.
public MoLoader ( string domain, string localeDir ) : System
domain string
localeDir string
리턴 System

MoLoader() 공개 메소드

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.
public MoLoader ( string domain, string localeDir, IPluralRuleGenerator pluralRuleGenerator ) : System
domain string
localeDir string
pluralRuleGenerator IPluralRuleGenerator
리턴 System

MoLoader() 공개 메소드

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.
public MoLoader ( string domain, string localeDir, IPluralRuleGenerator pluralRuleGenerator, MoFileParser parser ) : System
domain string
localeDir string
pluralRuleGenerator IPluralRuleGenerator
parser MoFileParser
리턴 System

MoLoader() 공개 메소드

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.
public MoLoader ( string domain, string localeDir, MoFileParser parser ) : System
domain string
localeDir string
parser MoFileParser
리턴 System