using System; using umbraco.interfaces; using umbraco.BasePages; namespace umbraco.BusinessLogic.Actions { /// /// This action is invoked when a translation occurs /// public class ActionTranslate : IAction { //create singleton private static readonly ActionTranslate m_instance = new ActionTranslate(); /// /// A public constructor exists ONLY for backwards compatibility in regards to 3rd party add-ons. /// All Umbraco assemblies should use the singleton instantiation (this.Instance) /// When this applicatio is refactored, this constuctor should be made private. /// [Obsolete("Use the singleton instantiation instead of a constructor")] public ActionTranslate() { } public static ActionTranslate Instance { get { return m_instance; } } #region IAction Members public char Letter { get { return '4'; } } public string JsFunctionName { get { return ""; } } public string JsSource { get { return null; } } public string Alias { get { return "translate"; } } public string Icon { get { return "sprTranslate"; } } public bool ShowInNotifier { get { return true; } } public bool CanBePermissionAssigned { get { return true; } } #endregion } }