C# Class LocalizedObject, SmartLocalization

Afficher le fichier Open project: NiklasBorglund/SmartLocalization Class Usage Examples

Méthodes publiques

Свойство Type Description
keyTypeIdentifier string

Méthodes publiques

Méthode 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 méthode

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 ///
Résultat string

GetCleanKey() public static méthode

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 ///
Résultat string

GetFullKey() public méthode

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

GetFullKey() public static méthode

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
Résultat string

GetLocalizedObjectType() public static méthode

Gets the LocalizedObjectType of the localized object.
public static GetLocalizedObjectType ( string key ) : LocalizedObjectType
key string /// The language key from the .resx file ///
Résultat 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
Résultat string