yavsc/web/Helpers/T.cs

31 lines
634 B
C#
Raw Normal View History

2014-07-16 20:35:03 +02:00
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;
2015-01-02 04:52:48 +01:00
using Yavsc.Model;
2014-07-16 20:35:03 +02:00
2015-01-02 04:52:48 +01:00
namespace Yavsc.Helpers
2014-07-16 20:35:03 +02:00
{
/// <summary>
/// T.
/// </summary>
2014-07-16 20:35:03 +02:00
public class T
{
/// <summary>
/// Gets the string.
/// </summary>
/// <returns>The string.</returns>
/// <param name="msg">Message.</param>
2015-01-02 04:52:48 +01:00
public static string GetString(string msg)
2014-07-16 20:35:03 +02:00
{
2015-01-02 04:52:48 +01:00
string tr = LocalizedText.ResourceManager.GetString (msg.Replace (" ", "_"));
return tr==null?msg:tr;
2014-07-16 20:35:03 +02:00
}
}
}