public override string GetLocalizedString(XtraRichEditStringId ID) { return(BaseLocalizer.GetLocalizedString <XtraRichEditStringId>((int)ID, base.GetLocalizedString(ID), base.GetType().Name)); //string enumName = Enum.GetName(typeof(XtraRichEditStringId), ID); //List<Sys_Globalization> sys_Globalizations = (List<Sys_Globalization>)Provider["Sys_Globalization"]; //Sys_Globalization sys_Globalization = sys_Globalizations.Find(l => l.Globalization_Cultural == ((Sys_User)Provider["Sys_User"]).User_Cultural // && l.Globalization_Partition.ToLower() == "devexpress" // && l.Globalization_Localizer.ToLower() == base.GetType().Name.ToLower() // && l.Globalization_Name.ToLower() == enumName.ToLower()); //if (sys_Globalization != null) //{ // return sys_Globalization.Globalization_Nick; //} //List<MyParameter> myParameters = new List<MyParameter>(); //myParameters.Add("@Globalization_Cultural", SqlDbType.Int, ((Sys_User)Provider["Sys_User"]).User_Cultural, null); //myParameters.Add("@Globalization_Partition", SqlDbType.NVarChar, "Devexpress", null); //myParameters.Add("@Globalization_Localizer", SqlDbType.NVarChar, base.GetType().Name, null); //myParameters.Add("@Globalization_Name", SqlDbType.NVarChar, enumName, null); //myParameters.Add("@Globalization_Nick", SqlDbType.NVarChar, base.GetLocalizedString(ID), null); //myParameters.Add("@Globalization_StringId", SqlDbType.Int, (int)ID, null); //BaseService.Open_Sys_WorkSet("Save_Sys_Globalization", myParameters); //return base.GetLocalizedString(ID); }
public override string GetLocalizedString(StringId ID) { return(BaseLocalizer.GetLocalizedString <StringId>((int)ID, base.GetLocalizedString(ID), base.GetType().Name)); }
public virtual string GetLocalizedString(MyCommonStringId ID) { return(BaseLocalizer.GetLocalizedString <MyCommonStringId>((int)ID, string.Empty, base.GetType().Name)); }