I still can not find a way to use the U5 embedded dictionary to localize forms ErrorMessage texts...
Here is the actual version, from a Model cs file.
class myFormModel { [Required(ErrorMessage="First Name Required")]
[StringLength(50, ErrorMessage = "First Name Too Long")]
publicstring FirstName { get; set; } }
I managed to gain access to Umbraco.GetDictionaryItem from here
(Model file) but I can not use it directly in the decoration, in place
of the hard-coded text. It should result in an compilation error
(instanciation needed on a non-static blah blah) though I can use the
'GetDictionaryItem' in any get function (or, at least, no compilation
error so far).
Do I have to wait for Contour v5 or is there a way to get it work so I don't have to use MVC resources file ?
Forms Localization
Hi there,
I still can not find a way to use the U5 embedded dictionary to localize forms ErrorMessage texts...
Here is the actual version, from a Model cs file.
I managed to gain access to Umbraco.GetDictionaryItem from here (Model file) but I can not use it directly in the decoration, in place of the hard-coded text. It should result in an compilation error (instanciation needed on a non-static blah blah) though I can use the 'GetDictionaryItem' in any get function (or, at least, no compilation error so far).
Do I have to wait for Contour v5 or is there a way to get it work so I don't have to use MVC resources file ?
Thanks,
Nicolas.
is working on a reply...