using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Configuration; using System.Web.Mvc; using System.Web.Mvc.Ajax; using System.Net.Mail; using Yavsc; using System.Globalization; using Yavsc.Model; namespace Yavsc.Helpers { /// /// T. /// public static class T { /// /// Gets the string. /// /// The string. /// Message. public static string GetString(string msg) { string tr = LocalizedText.ResourceManager.GetString (msg.Replace (" ", "_")); return tr==null?msg:tr; } /// /// Translate the specified helper and text. /// /// Helper. /// Text. public static string Translate(this HtmlHelper helper, string text) { // Just call the other one, to avoid having two copies (we don't use the HtmlHelper). return GetString(text); } } }