Dxperience 7.3.4 繁体中文本地化

注意:使用本地址的DXperience 7.3.4 http://www.cnblogs.com/fosoyo/archive/2007/12/04/982952.html ),否则会出现key不同。


之前我的代碼公佈到7.1,在網上看到很多所謂最新版的最全的本地化都還是7.1的,然而後續版本增加了很多,比如:XtraRichTextEdit,XtraSpellChecker,XtraScheduler,XtraCharts,XtraPrinting,XtraReports的Ribbon菜單等等,以及WEB的,本來以為Web.ASPxScheduler會在此次的版本官方會加入到資源,可是還是只有小部分,在這裡WEB也本地化了。




download



This is for  for Visual Studio 2005, 2008

webform:
在專案中加入附件中fosoyo.cnblogs.com.Localization.dll參考
Default.aspx.cs加入:using fosoyo.cnblogs.com.LocalizationCHT;
Default.aspx的Page_Load事件中加入:

fosoyoWebASPxClassesLocalizationCHT WebASPxClassesLocalization = new fosoyoWebASPxClassesLocalizationCHT();
DevExpress.Web.ASPxClasses.Localization.ASPxperienceLocalizer.Active = WebASPxClassesLocalization;

fosoyoWebASPxEditorsLocalizationCHT WebASPxEditorsLocalization = new fosoyoWebASPxEditorsLocalizationCHT();
DevExpress.Web.ASPxEditors.Localization.ASPxEditorsLocalizer.Active = WebASPxEditorsLocalization;

fosoyoWebASPxGridViewLocalizationCHT WebASPxGridViewLocalization = new fosoyoWebASPxGridViewLocalizationCHT();
DevExpress.Web.ASPxGridView.Localization.ASPxGridViewLocalizer.Active = WebASPxGridViewLocalization;

fosoyoWebASPxSchedulerLocalizationCHT WebASPxSchedulerLocalization = new fosoyoWebASPxSchedulerLocalizationCHT();
DevExpress.Web.ASPxScheduler.Localization.ASPxSchedulerLocalizer.Active = WebASPxSchedulerLocalization;




winform:
在專案中加入附件中fosoyo.cnblogs.com.Localization.dll參考
在MDI的MainForm加入:using fosoyo.cnblogs.com.LocalizationCHT;
在MDI MainForm 的FormLoad事件中加入:

fosoyoXtraBarsLocalizationCHT XtraBarsLocalizer = new fosoyoXtraBarsLocalizationCHT();
DevExpress.XtraBars.Localization.BarLocalizer.Active = XtraBarsLocalizer;

fosoyoXtraChartsLocalizationCHT XtraChartsLocalizer = new fosoyoXtraChartsLocalizationCHT();
DevExpress.XtraCharts.Localization.ChartLocalizer.Active = XtraChartsLocalizer;
 
fosoyoXtraEditorsLocalizationCHT XtraEditorsLocalizer = new fosoyoXtraEditorsLocalizationCHT();
DevExpress.XtraEditors.Controls.Localizer.Active = XtraEditorsLocalizer;
          
fosoyoXtraGridLocalizationCHT XtraGridLocalizer = new fosoyoXtraGridLocalizationCHT();
DevExpress.XtraGrid.Localization.GridLocalizer.Active = XtraGridLocalizer;

fosoyoXtraLayoutLocalizationCHT XtraLayoutLocalizer = new fosoyoXtraLayoutLocalizationCHT();
DevExpress.XtraLayout.Localization.LayoutLocalizer.Active = XtraLayoutLocalizer;
 
fosoyoXtraNavBarLocalizationCHT XtraNavBarLocalizer = new fosoyoXtraNavBarLocalizationCHT();
DevExpress.XtraNavBar.NavBarLocalizer.Active = XtraNavBarLocalizer;
 
fosoyoXtraPivotGridLocalizationCHT XtraPivotGridLocalizer = new fosoyoXtraPivotGridLocalizationCHT();
DevExpress.XtraPivotGrid.Localization.PivotGridLocalizer.Active = XtraPivotGridLocalizer;
 
fosoyoXtraPrintingLocalizationCHT XtraPrintingLocalizer = new fosoyoXtraPrintingLocalizationCHT();
DevExpress.XtraPrinting.Localization.PreviewLocalizer.Active = XtraPrintingLocalizer;
 
fosoyoXtraReportsLocalizationCHT XtraReportsLocalizer = new fosoyoXtraReportsLocalizationCHT();
DevExpress.XtraReports.Localization.ReportLocalizer.Active = XtraReportsLocalizer;
 
fosoyoXtraRichTextEditLocalizationCHT XtraRichTextEditLocalizer = new fosoyoXtraRichTextEditLocalizationCHT();
DevExpress.XtraRichTextEdit.Localization.XtraRichTextEditLocalizer.Active = XtraRichTextEditLocalizer;

fosoyoXtraSchedulerLocalizationCHT XtraSchedulerLocalizer = new fosoyoXtraSchedulerLocalizationCHT();
DevExpress.XtraScheduler.Localization.SchedulerLocalizer.Active = XtraSchedulerLocalizer;

fosoyoXtraSpellCheckerLocalizationCHT XtraSpellCheckerLocalizer = new fosoyoXtraSpellCheckerLocalizationCHT();
DevExpress.XtraSpellChecker.Localization.SpellCheckerLocalizer.Active = XtraSpellCheckerLocalizer;
 
fosoyoXtraTreeListLocalizationCHT XtraTreeListLocalizer = new fosoyoXtraTreeListLocalizationCHT();
DevExpress.XtraTreeList.Localization.TreeListLocalizer.Active = XtraTreeListLocalizer;            
 
fosoyoXtraVerticalGridLocalizationCHT XtraVerticalGridLocalizer = new fosoyoXtraVerticalGridLocalizationCHT();
DevExpress.XtraVerticalGrid.Localization.VGridLocalizer.Active = XtraVerticalGridLocalizer;
 
注:若在專案中沒有用到相關控件,則不需要創建類的實例。例如:沒有使用到XtraScheduler控件就不需要
fosoyoXtraSchedulerLocalizationCHT XtraSchedulerLocalizer = new fosoyoXtraSchedulerLocalizationCHT();
DevExpress.XtraScheduler.Localization.SchedulerLocalizer.Active = XtraSchedulerLocalizer;

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