Property | Type | Description | |
---|---|---|---|
Areas | String | ||
MainAreas | String[] | ||
ScopeSeparator | String | ||
SlashSeparator | char | ||
ViewScopeKey | String |
Method | Description | |
---|---|---|
Combine ( ) : String |
Generates resource key from chains.
|
|
Combine ( IEnumerable |
Generates resource key from chains.
|
|
GetCommonMessagesScope ( ) : String |
Gets the common error messages localization scope.
|
|
GetControllerScope ( Controller controller ) : String |
Builds controller localization scope by it's namespace and type ([AreaName.]Controllers.{ControllerName}).
|
|
GetControllerScope ( String areaName, String controllerName ) : String |
Gets the controller scope.
|
|
GetModelScope ( |
Builds model localization scope by it's namespace and type ([AreaName.]Models.{Namespace}.{TypeName}).
|
|
GetModelSpecificMessagesScope ( |
Gets the model specific error messages localization scope.
|
|
GetPartialViewScope ( System.Web.Mvc.ViewContext viewContext, String partialViewName ) : String |
Builds partial view localization scope by view path (removes leading Areas directory).
|
|
GetResourceString ( System.Web.HttpContextBase context, String key, String scope, |
Gets resource String using specified scope, key and culture. translationMissing handler will be called if resource can not be found. |
|
GetViewScope ( String viewPath ) : String |
Builds view localization scope by view path (removes leading Areas directory).
|
|
GetViewScope ( System.Web.Mvc.ViewContext viewContext ) : String |
Builds view localization scope by view path (removes leading Areas directory).
|
|
TranslateErrorMessage ( System.Web.HttpContextBase context, |
Translates validation error message.
|
|
TranslateErrorMessage ( System.Web.HttpContextBase context, |
Translates the error message and replace params.
|
|
TranslatePropertyName ( System.Web.HttpContextBase context, |
Translates property name using model scope.
|
Method | Description | |
---|---|---|
GetPartialViewPath ( System.Web.Mvc.ViewContext viewContext, String partialViewName ) : String |
public static Combine ( IEnumerable |
||
chains | IEnumerable |
The chains. |
return | String |
public static GetCommonMessagesScope ( ) : String | ||
return | String |
public static GetControllerScope ( Controller controller ) : String | ||
controller | Controller | The controller. |
return | String |
public static GetControllerScope ( String areaName, String controllerName ) : String | ||
areaName | String | Name of the area. |
controllerName | String | Name of the controller. |
return | String |
public static GetModelScope ( |
||
modelType | Type of the model. | |
return | String |
public static GetModelSpecificMessagesScope ( |
||
modelType | Type of the model. | |
propertyName | String | Name of the property. |
return | String |
public static GetPartialViewScope ( System.Web.Mvc.ViewContext viewContext, String partialViewName ) : String | ||
viewContext | System.Web.Mvc.ViewContext | The view context. |
partialViewName | String | Name of partial view. |
return | String |
public static GetResourceString ( System.Web.HttpContextBase context, String key, String scope, |
||
context | System.Web.HttpContextBase | The http context. |
key | String | The resource key. |
scope | String | The localization scope. |
culture | The culture. | |
translationMissing | Func |
Translation missing fallback. |
return | String |
public static GetViewScope ( String viewPath ) : String | ||
viewPath | String | The view path. |
return | String |
public static GetViewScope ( System.Web.Mvc.ViewContext viewContext ) : String | ||
viewContext | System.Web.Mvc.ViewContext | The view context. |
return | String |
public static TranslateErrorMessage ( System.Web.HttpContextBase context, |
||
context | System.Web.HttpContextBase | The http context. |
modelType | Type of the model. | |
propertyName | String | Name of the property. |
validatorKey | String | The validator key. |
return | String |
public static TranslateErrorMessage ( System.Web.HttpContextBase context, |
||
context | System.Web.HttpContextBase | The context. |
modelType | Type of the model. | |
propertyName | String | Name of the property. |
validatorKey | String | The validator key. |
validationParams | String | The validation params. |
return | String |
public static TranslatePropertyName ( System.Web.HttpContextBase context, |
||
context | System.Web.HttpContextBase | The http context. |
modelType | Type of the model. | |
propertyName | String | Name of the proprty. |
return | String |