Dxperience 7.1.3 简体中文本地化




download


This is for Visual Studio 2005


使用方法:

 

在项目中加入附件中DevExpress.LocalizationCHS.dll引用

在MDI的MainForm加入:using DevExpress.LocalizationCHS;

在MDI MainForm 的FormLoad事件中加入:

DevExpressXtraBarsLocalizationCHS XtraBarsLocalizer = new DevExpressXtraBarsLocalizationCHS();

DevExpress.XtraBars.Localization.BarLocalizer.Active = XtraBarsLocalizer;

 

DevExpressXtraChartsLocalizationCHS XtraChartsLocalizer = new DevExpressXtraChartsLocalizationCHS();

DevExpress.XtraCharts.Localization.ChartLocalizer.Active = XtraChartsLocalizer;

 

DevExpressXtraEditorsLocalizationCHS XtraEditorsLocalizer = new DevExpressXtraEditorsLocalizationCHS();

DevExpress.XtraEditors.Controls.Localizer.Active = XtraEditorsLocalizer;

 

DevExpressXtraGridLocalizationCHS XtraGridLocalizer = new DevExpressXtraGridLocalizationCHS();

DevExpress.XtraGrid.Localization.GridLocalizer.Active = XtraGridLocalizer;

 

DevExpressXtraLayoutLocalizationCHS XtraLayoutLocalizer = new DevExpressXtraLayoutLocalizationCHS();

DevExpress.XtraLayout.Localization.LayoutLocalizer.Active = XtraLayoutLocalizer;

 

DevExpressXtraNavBarLocalizationCHS XtraNavBarLocalizer = new DevExpressXtraNavBarLocalizationCHS();

DevExpress.XtraNavBar.NavBarLocalizer.Active = XtraNavBarLocalizer;

 

DevExpressXtraPivotGridLocalizationCHS XtraPivotGridLocalizer = new DevExpressXtraPivotGridLocalizationCHS();

DevExpress.XtraPivotGrid.Localization.PivotGridLocalizer.Active = XtraPivotGridLocalizer;

 

DevExpressXtraPrintingLocalizationCHS XtraPrintingLocalizer = new DevExpressXtraPrintingLocalizationCHS();

DevExpress.XtraPrinting.Localization.PreviewLocalizer.Active = XtraPrintingLocalizer;

 

DevExpressXtraReportsLocalizationCHS XtraReportsLocalizer = new DevExpressXtraReportsLocalizationCHS();

DevExpress.XtraReports.Localization.ReportLocalizer.Active = XtraReportsLocalizer;

 

DevExpressXtraRichTextEditLocalizationCHS XtraRichTextEditLocalizer = new DevExpressXtraRichTextEditLocalizationCHS();

DevExpress.XtraRichTextEdit.Localization.XtraRichTextEditLocalizer.Active = XtraRichTextEditLocalizer;

 

DevExpressXtraSchedulerLocalizationCHS XtraSchedulerLocalizer = new DevExpressXtraSchedulerLocalizationCHS();

DevExpress.XtraScheduler.Localization.SchedulerLocalizer.Active = XtraSchedulerLocalizer;

 

DevExpressXtraSpellCheckerLocalizationCHS XtraSpellCheckerLocalizer = new DevExpressXtraSpellCheckerLocalizationCHS();

DevExpress.XtraSpellChecker.Localization.SpellCheckerLocalizer.Active = XtraSpellCheckerLocalizer;

 

DevExpressXtraTreeListLocalizationCHS XtraTreeListLocalizer = new DevExpressXtraTreeListLocalizationCHS();

DevExpress.XtraTreeList.Localization.TreeListLocalizer.Active = XtraTreeListLocalizer;

 

DevExpressXtraVerticalGridLocalizationCHS XtraVerticalGridLocalizer = new DevExpressXtraVerticalGridLocalizationCHS();

DevExpress.XtraVerticalGrid.Localization.VGridLocalizer.Active = XtraVerticalGridLocalizer;

 

注:若在项目中没有用到相关控件,则不需要创建类的实例。例如:没有使用到XtraScheduler控件就不需要

DevExpressXtraSchedulerLocalizationCHS XtraSchedulerLocalizer = new DevExpressXtraSchedulerLocalizationCHS();

DevExpress.XtraScheduler.Localization.SchedulerLocalizer.Active = XtraSchedulerLocalizer;

 

你可能感兴趣的:(本地化)