|
@@ -1,4 +1,5 @@
|
|
|
-using DevExpress.XtraBars.Docking2010;
|
|
|
+using DevExpress.Data.Localization;
|
|
|
+using DevExpress.XtraBars.Docking2010;
|
|
|
using DevExpress.XtraBars.Localization;
|
|
|
using DevExpress.XtraEditors;
|
|
|
using DevExpress.XtraEditors.Controls;
|
|
@@ -31,6 +32,8 @@ namespace XdCxRhDW
|
|
|
//LayoutControl
|
|
|
LayoutLocalizer.Active = new ChsLayoutLocalizer();
|
|
|
|
|
|
+ //CommonLocalizer.Active = new ChsComBoxLocalizer();
|
|
|
+
|
|
|
//Control
|
|
|
Localizer.Active = new ChsControlLocalizer();
|
|
|
}
|
|
@@ -70,6 +73,10 @@ namespace XdCxRhDW
|
|
|
return "输入搜索文本...";
|
|
|
case StringId.TabHeaderButtonClose:
|
|
|
return "关闭选项卡";
|
|
|
+ case StringId.OK:
|
|
|
+ return "确定";
|
|
|
+ case StringId.Cancel:
|
|
|
+ return "取消";
|
|
|
}
|
|
|
var res = base.GetLocalizedString(id);
|
|
|
return res;
|
|
@@ -332,5 +339,15 @@ namespace XdCxRhDW
|
|
|
return res;
|
|
|
}
|
|
|
}
|
|
|
+ class ChsComBoxLocalizer : EditResLocalizer
|
|
|
+ {
|
|
|
+ //public override string GetLocalizedString(stringid id)
|
|
|
+ //{
|
|
|
+ // switch (id)
|
|
|
+ // {
|
|
|
+ // case ImageEditorLocalizerStringId.all
|
|
|
+ // }
|
|
|
+ //}
|
|
|
+ }
|
|
|
|
|
|
}
|