Property | Type | Description | |
---|---|---|---|
Empty |
Method | Description | |
---|---|---|
Add ( object>.JsDictionary |
Use to add local text to dictionary Obj is provided in a compact format to keep size as small as possible. |
|
Get ( ) : string |
Converts the
|
|
Get ( string key ) : string |
Returns localized representation which corresponds to the local text key or the key itself if none found in local text registry.
|
|
GetDefault ( string key, string defaultText ) : string |
Tries to get localized text or if not found, default
|
|
InitializeTextClass ( |
Initializes a static class that contains static LocalText objects. These objects actually contains localized texts in default language, but this method adds them to local text dictionary and replaces their values with text keys generated from concatting a prefix and the variable name.
|
|
LocalText ( string key ) : Serenity.Abstractions |
Creates a new LocalText instance that contains the specified local text key
|
|
LocalText ( string key ) : System |
Creates a new local text object containing the given key.
|
|
ToString ( ) : string |
Returns localized representation which corresponds to the local text key or the key itself if none found in local text registry.
|
|
TryGet ( string key ) : string |
Returns localized representation which corresponds to the local text key or NULL if none found in local text registry.
|
Method | Description | |
---|---|---|
LocalText ( ) : Serenity.Abstractions |
public static Add ( object>.JsDictionary |
||
obj | object>.JsDictionary | Object with local text list in a format like Enums:{WeekDays:{Monday: 'Pazartesi', ... }}} to /// "Enums.WeekDays.Monday" = "Pazartesi" |
prefix | string | Prefix to add to all keys |
return | void |
public static GetDefault ( string key, string defaultText ) : string | ||
key | string | Text key |
defaultText | string | Default text |
return | string |
public static InitializeTextClass ( |
||
type | Type to initialize that contains texts | |
prefix | string | Prefix to add text keys (e.g. "Db.SomeCategory.") |
return | void |
public LocalText ( string key ) : Serenity.Abstractions | ||
key | string | Local text key |
return | Serenity.Abstractions |