using System; using System.Globalization; namespace Abp.Localization { /// /// A class that gets the same string on every localization. /// [Serializable] public class FixedLocalizableString : ILocalizableString { /// /// The fixed string. /// Whenever Localize methods called, this string is returned. /// public virtual string FixedString { get; private set; } /// /// Needed for serialization. /// private FixedLocalizableString() { } /// /// Creates a new instance of . /// /// /// The fixed string. /// Whenever Localize methods called, this string is returned. /// public FixedLocalizableString(string fixedString) { FixedString = fixedString; } public string Localize(ILocalizationContext context) { return FixedString; } public string Localize(ILocalizationContext context, CultureInfo culture) { return FixedString; } public override string ToString() { return FixedString; } } }