Web developers wiki ASP.NET Sitecore Sharepoint Kentico by Evident Interactive

In WFM (WebForms for Marketers) every form by default uses the form verification action "Assess Security Risk". This action verifies the information entered in form fields for content that may be malicious. For example, it will reject the characters <, > and & in textboxes.

When validation fails it will return one of the following error messages:

The … field contains content that may present a security risk. Please enter appropriate information
The … fields contains content that may present a security risk. Please enter appropriate information

Unfortunately when your site uses a language other than English, you will still see these English error messages.

To set up texts for these error messages in another language (e.g. in Dutch) follow these steps:
- Go to the Core database.
- Open the content editor.
- Go to "/sitecore/system/Languages".
- Verify that the Dutch language exists. If not, add it in exactly the same as it has been defined in the master (and web) database.
- Go to "/sitecore/system/Dictionary/T".
- Go to the content item "TWFM The 0 field contains content that may present a security risk Please enter appropriate info".
- Create a Dutch version of this content item and enter the proper text in Dutch in the field "Phrase" (e.g. "Het veld {0} bevat inhoud die een beveiligingsrisico kunnen vormen.").
- Go to the content item "TWFM The 0 fields contains content that may present a security risk Please enter appropriate inf".
- Create a Dutch version of this content item and enter the proper text in Dutch in the field "Phrase" (e.g. "De velden {0} bevatten inhoud die een beveiligingsrisico kunnen vormen.").

Now you should see the error messages in the proper language.

It is however possible that you still see English texts. This is probably caused by caching. The content of the Sitecore dictionary is cached in the file <webroot>\temp\dictionary.dat and this cache file may not have been updated. To enforce an update of this cachefile perform these steps:
- Go to the folder \temp\.
- Delete the file dictionary.dat.
- Recycle the application pool of your website.

 © Evident Interactive BV