C# Class LocalizedObject, SmartLocalization

Mostrar archivo Open project: NiklasBorglund/SmartLocalization Class Usage Examples

Public Properties

Property Type Description
keyTypeIdentifier string

Public Methods

Method Description
GetCleanKey ( string key ) : string

Gets the clean key. i.e the key without a type identifier "" etc.

GetCleanKey ( string key, LocalizedObjectType objectType ) : string

Gets the clean key. i.e the key without a type identifier "" etc.

GetFullKey ( string parsedKey ) : string

Gets the full key value with identifiers and everything

GetFullKey ( string parsedKey, LocalizedObjectType objectType ) : string

Gets the full key value with identifiers and everything

GetLocalizedObjectType ( string key ) : LocalizedObjectType

Gets the LocalizedObjectType of the localized object.

Method Details

GetCleanKey() public static method

Gets the clean key. i.e the key without a type identifier "" etc.
public static GetCleanKey ( string key ) : string
key string /// The full key with the type identifier ///
return string

GetCleanKey() public static method

Gets the clean key. i.e the key without a type identifier "" etc.
public static GetCleanKey ( string key, LocalizedObjectType objectType ) : string
key string /// The key language value ///
objectType LocalizedObjectType /// The LocalizedObjectType of the key ///
return string

GetFullKey() public method

Gets the full key value with identifiers and everything
public GetFullKey ( string parsedKey ) : string
parsedKey string /// Parsed key. (Clean key originally from GetCleanKey) ///
return string

GetFullKey() public static method

Gets the full key value with identifiers and everything
public static GetFullKey ( string parsedKey, LocalizedObjectType objectType ) : string
parsedKey string /// Parsed key. (Clean key originally from GetCleanKey) ///
objectType LocalizedObjectType
return string

GetLocalizedObjectType() public static method

Gets the LocalizedObjectType of the localized object.
public static GetLocalizedObjectType ( string key ) : LocalizedObjectType
key string /// The language key from the .resx file ///
return LocalizedObjectType

Property Details

keyTypeIdentifier public_oe static_oe property

All keys that are not a string will begin with this identifier for example - if the localized object is an audio file, the key will begin with regular text strings will not begin with any type of identifier
public static string keyTypeIdentifier
return string