C# 클래스 Sage.ResourceManagement.XmlResource

Represents an XML resource that may be globalized.
파일 보기 프로젝트 열기: igorfrance/sage 1 사용 예제들

공개 메소드들

메소드 설명
GetDateFirstGlobalized ( List locales ) : DateTime?

Gets the earliest modification date of all versions generated from this resource file.

GetInternationalizedName ( string locale, bool appendPath ) : string

Gets the globalized locale name of this resource file.

GetSourcePath ( string locale ) : string

Gets the path to the locale-specific version of this resource if it exists, or the path to the non-specific version if it doesn't.

Globalize ( ) : InternationalizationSummary

Globalizes this instance.

IsGlobalizable ( XmlDocument document ) : bool

Gets a value indicating whether the specified document is globalizable.

In order for an xml resources to be considered globalizable, it needs to reference the XmlNamespaces.InternationalizationNamespace.

Load ( string locale ) : CacheableXmlDocument

Loads this resource (optionally) localized into the specified locale.

ToString ( ) : string
XmlResource ( string path, SageContext context ) : System

Initializes a new instance of the XmlResource class, using the specified resource path and context.

비공개 메소드들

메소드 설명
LoadGlobalizedDocument ( string locale ) : CacheableXmlDocument
LoadLocalizedSourceDocument ( string locale ) : CacheableXmlDocument
LoadSourceDocument ( string locale ) : CacheableXmlDocument

메소드 상세

GetDateFirstGlobalized() 공개 메소드

Gets the earliest modification date of all versions generated from this resource file.
public GetDateFirstGlobalized ( List locales ) : DateTime?
locales List The locales to check for.
리턴 DateTime?

GetInternationalizedName() 공개 메소드

Gets the globalized locale name of this resource file.
public GetInternationalizedName ( string locale, bool appendPath ) : string
locale string The locale for which to get the name.
appendPath bool If set to true the resulting value will be the full path to the file.
리턴 string

GetSourcePath() 공개 메소드

Gets the path to the locale-specific version of this resource if it exists, or the path to the non-specific version if it doesn't.
public GetSourcePath ( string locale ) : string
locale string The locale for which to get the path.
리턴 string

Globalize() 공개 메소드

Globalizes this instance.
public Globalize ( ) : InternationalizationSummary
리턴 InternationalizationSummary

IsGlobalizable() 공개 메소드

Gets a value indicating whether the specified document is globalizable.
In order for an xml resources to be considered globalizable, it needs to reference the XmlNamespaces.InternationalizationNamespace.
public IsGlobalizable ( XmlDocument document ) : bool
document System.Xml.XmlDocument The document to check.
리턴 bool

Load() 공개 메소드

Loads this resource (optionally) localized into the specified locale.
public Load ( string locale ) : CacheableXmlDocument
locale string The locale into which to localize this resource.
리턴 CacheableXmlDocument

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

XmlResource() 공개 메소드

Initializes a new instance of the XmlResource class, using the specified resource path and context.
/// is null or is null. ///
public XmlResource ( string path, SageContext context ) : System
path string The path to the XML resource.
context SageContext The current under which this class is being created.
리턴 System