Hello :)
I've been using the DNN localization features to localize any ASP.NET validator controls on my forms. One thing I noticed is that the localization doesn't seem to distinguish between the .Text and .ErrorMessage properties of validator controls.
What I'd like to have is an asterisk for an ErrorMessage, and a full descriptive text for the Text property. This way I can have a full validationsummary at the top of the form, and not clutter the form with a lot of text. In other words, only the .Text property needs to be localized.
When I add a resourcekey attribute to my validator controls, and add a ctlMyValidator.Text key to my local resource file, DotNetNuke sets both the .Text and .ErrorMessage properties to the same string. It does not appear to listen to any .ErrorMessage resource keys that I put in my local resource file.
However, the Localization Architecture documentation says the following:
.Text – used for the text properties of controls (default
.Help – used for help text (see more below)
.Header – used for the headertext properties of DataGrid columns
.EditText – used for the edittext properties of DataGrids
.ErrorMessage – used for the ErrorMessage property of Validator controls
This seems to indicate that the localization is supposed to support different values for the Text and ErrorMessage properties of a validator control.
The Module Localization Guide doesn't say much more about this and some extended Googling turned up nothin. I was hoping anybody could shed some light on this. I could work around this by setting all validator Text properties in code, but if possible I'd like to make use of the resourcekey attribute.
Thanks in advance.