AbstractUserControlGetString Method |
Returns the localized string of the control's hierarchically highest parent that has the
ResourcePrefix property and its translation defined.
Namespace: CMS.Base.Web.UIAssembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 10.0.0
Syntax public virtual string GetString(
string stringName,
string culture = null
)
Parameters
- stringName
- Type: SystemString
String to localize. - culture (Optional)
- Type: SystemString
Culture to be used for localization.
Return Value
Type:
StringRemarks
If no parent but the control has the property defined, returns the control's localized string.
If none of them have the ResourcePrefix property defined, returns the default resource string translation.
See Also