Feedback Form Email Notification Localization

Topics: General, Standard packages, Troubleshooting
Coordinator
Jan 29, 2011 at 9:50 AM
Edited Jan 29, 2011 at 9:51 AM

Hi @tvn. Something like that

using System.Threading;
using System.Globalization;

....

public string Translate(string text, CultureInfo cultureInfo) 
{

	var currentCulture = Thread.CurrentThread.CurrentCulture;

	try
	{
		Thread.CurrentThread.CurrentCulture = cultureInfo;
		return Composite.Core.ResourceSystem.StringResourceSystemFacade.ParseString(text);
	}
	finally
	{
		Thread.CurrentThread.CurrentCulture = currentCulture;
	}
}
Coordinator
Feb 2, 2011 at 5:13 PM

You need to find the code that sends the e-mail and with the help of the  Translate(...) method translate the e-mail's body. 

This feedback form, are you using, is it build by the FormBuilder module?