how to display error message according to current culture
Hi all,
I have my website in 2 languages, for login I am using
SurfaceConrtoller. To render validation message regarding text box of password / username is empty I am using -
In order to show different messages depending on the language of the website you should be using the dictionary items, which you can setup in the "Settings -> Dictionary item" folder.
Then you should be able to use something like umbraco.library.GetDictionaryItem('TheNameOfMyDictionaryItem') - Not sure what to inherit from though...but perhaps intellisense can guide you? :)
how to display error message according to current culture
Hi all,
I have my website in 2 languages, for login I am using SurfaceConrtoller. To render validation message regarding text box of password / username is empty I am using -
I want to show validation message according to current selected language. How can i do that?
I am using Umbraco 6.0
Hi Leena
In order to show different messages depending on the language of the website you should be using the dictionary items, which you can setup in the "Settings -> Dictionary item" folder.
Then you should be able to use something like umbraco.library.GetDictionaryItem('TheNameOfMyDictionaryItem') - Not sure what to inherit from though...but perhaps intellisense can guide you? :)
Hope this helps.
/Jan
Hi Jan,
I think you got me wrong .. I am putting
"Required" tag of asp.net so by default it is mandatory field and giving validation message "the USER NAME field is required" if left blank
I want to localize that validation message too.
is working on a reply...