PropertyItemsLocalTextRegistration class
namespace: Serenity.Localization assembly: Serenity.Net.Core
Contains initialization methods for adding local text keys implicitly defined by DisplayNameAttribute, TabAttribute, PlaceholderAttribute, HintAttribute, SelectItemAttribute, etc. attributes used in Form definitions.
public static class PropertyItemsLocalTextRegistration
Public Members
| name | description |
|---|---|
| static AddPropertyItemsTexts(…) | Adds local text translations defined implicitly by DisplayNameAttribute, TabAttribute, PlaceholderAttribute, HintAttribute, etc. attributes used in Column/Form definitions. |
| static GetPropertyItemsTextPrefix(…) | Gets the local text key prefix of the property items of the given type, which one of its attributes that implement IPropertyItemsTextPrefixProvider tells, e.g. a FormScriptAttribute (Forms.Northwind.Customer.) or a ColumnsScriptAttribute. When a type has several, the one of a form comes first, then the one of columns, as before, and then the others. |
| static IsLocalTextKeyCandidate(…) | Returns true if the text value can be a local text key that could be passed to the client side. |