C# Class Sage.ResourceManagement.ResourceName

Represents the path of the resource that may be globalized.
Datei anzeigen Open project: igorfrance/sage Class Usage Examples

Public Methods

Method Description
ResourceName ( string filePath, CategoryInfo category ) : System

Initializes a new instance of the ResourceName class.

ToLocale ( string locale ) : string

Returns the locale-specific version of this resource name.

ToLocalePath ( string locale ) : string

Returns the locale-specific version of this resource path.

Private Methods

Method Description
DiscoverLocale ( string fileName, CategoryInfo category ) : string

Method Details

ResourceName() public method

Initializes a new instance of the ResourceName class.
public ResourceName ( string filePath, CategoryInfo category ) : System
filePath string The full path of a file.
category Sage.Configuration.CategoryInfo The resource's category.
return System

ToLocale() public method

Returns the locale-specific version of this resource name.
public ToLocale ( string locale ) : string
locale string The locale to use (e.g. fr).
return string

ToLocalePath() public method

Returns the locale-specific version of this resource path.
public ToLocalePath ( string locale ) : string
locale string The locale to use (e.g. fr).
return string